body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #829795;
  width: 100%; /* Ensure body takes up full width */
  box-sizing: border-box; /* Includes padding/border in the element's total width/height */
}

nav {
  background-color: #79928F;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  max-width: 100%; /* Maintain max width */
  margin: 0 auto; /* Ensure the content is centered */
  width: 100%; /* Ensure it takes full width on smaller screens */
}

h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

#download-options {
  margin-bottom: 40px;
}

.custom-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #829795;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-button:hover {
  background-color: #6e7f77;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

/* General navigation styles */
nav ul {
  padding: 0;
  margin: 0;
}

nav li {
  position: relative; /* Required for dropdown positioning */
  display: inline-block; /* Use inline-block for dropdown */
  margin-right: 20px;
}

.description {
  max-height: 100px; /* Limits the height of the description */
  overflow: hidden; /* Hides the content that exceeds the max-height */
  text-overflow: ellipsis; /* Shows ellipsis (...) when the text overflows */
  transition: max-height 0.3s ease; /* Smooth transition for expanding */
}

.read-more {
  background-color: transparent;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 16px;
  text-decoration: underline;
  margin-top: 10px;
}

/* Dropdown styles */
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #79928F;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  width: 800px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-radius: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

nav li:hover .dropdown {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown > div {
  flex: 1;
  padding: 0 20px;
}

.dropdown p {
  font-weight: bold;
  margin: 0 0 10px;
  color: #f0f0f0;
}

.dropdown li {
  display: block;
  padding: 5px 0;
  min-width: 150px;
}

.dropdown li a {
  text-decoration: none;
  color: #e1f1f2;
  transition: color 0.3s ease, background-color 0.3s ease;
  display: block;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 5px;
}

.dropdown li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown > div p {
  margin-left: 20px;
}

.dropdown li {
  padding-left: 20px;
}

.header-logo {
  width: 100%;
  height: 353px;
  object-fit: cover;
}

.logo {
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

nav ul li {
  color: #ecf0f1;
  font-weight: bold;
}

nav ul li a {
  text-decoration: none;
  color: #ecf0f1;
  padding: 8px 12px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  color: #ffffff;
}

footer {
  background-color: #79928F;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-links ul li {
  margin: 5px 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #eeeeee;
}

footer p {
  margin-top: 20px;
  font-size: 0.9rem;
}

section {
  margin: 0; /* Remove margin from section */
  padding: 15px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2rem;
  margin: 0 0 15px 0;
  color: #829795;
  text-align: center;
}

.subhead {
  background-color: #79928F;
  text-align: center;
  padding: 10px 0;
  margin: 0;
}

.subhead ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.subhead ul li {
  margin: 0 10px;
}

.subhead ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.subhead ul li a:hover {
  color: #eeeeee;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 15px 0;
}

.card {
  background-color: #fff; /* Card background color */
  border: 1px solid #ccc; /* Card border */
  border-radius: 8px; /* Rounded corners */
  padding: 20px; /* Padding inside the card */
  text-align: center; /* Center text inside the card */
  width: 300px; /* Fixed width for cards */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  margin: 0 10px; /* Space between cards */
}

.card img {
  width: 100%; /* Ensures the image takes up the full width of the card */
  height: 200px; /* Set a fixed height for the images */
  object-fit: cover; /* Ensures the image covers the entire area, maintaining aspect ratio */
}

.card:hover {
  transform: translateY(-5px);
}

.card h4 {
  margin: 10px 0;
  font-size: 1.5rem;
  color: #829795;
}

.card .sku {
  font-size: 0.9rem;
  color: #666;
}

.card .description {
  font-size: 0.9rem; /* Ensure consistent font size */
  color: #444; /* Slightly darker for readability */
  line-height: 1.5; /* Add spacing for readability */
  height: 130px; /* Set a fixed height for uniform description length */
  overflow: hidden; /* Hide overflow content */
  text-overflow: ellipsis; /* Add ellipsis for truncated text */
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.card .look-button {
  display: block;
  width: calc(100% - 20px);
  margin: 5px auto;
  padding: 10px;
  background-color: #ffffff;
  color: #829795;
  border: 1px solid #829795;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.custom-button {
  margin: 5px auto; /* Center the button with auto margin */
  padding: 10px; /* Padding inside the button */
  background-color: #ffffff; /* White background */
  color: #829795; /* Text color */
  border: 1px solid #829795; /* Border with same color as text */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
  text-align: left;
}

.custom-button:hover {
  background-color: #829795; /* Background color on hover */
  color: #ffffff; /* Text color changes to white on hover */
}

.card .look-button:hover {
  background-color: #829795;
  color: #ffffff;
}

.card .order-button {
  display: block;
  width: calc(100% - 20px);
  margin: 5px auto;
  padding: 10px;
  background-color: #829795;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card .order-button:hover {
  background-color: #6b8e8d;
}

.contact-link .find-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #829795;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;
}

.contact-link .find-more-button:hover {
  background-color: #6b8e8d;
  color: #ffffff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2,
p {
  margin-bottom: 30px;
  color: #829795;
}

.row {
  padding: 10px 0;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.pagination span {
  color: #829795;
  font-weight: bold;
}

.pagination-links {
  display: flex;
}

.pagination a {
  text-decoration: none;
  color: #829795;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #829795;
  color: white;
  border: 1px solid #829795;
}

.pagination span {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #333;
}

input.form-control,
textarea.form-control {
  padding: 5px;
  font-size: 16px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #000;
  border: none;
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  color: #fff;
}

.btn-primary:hover {
  background-color: #829795;
}

textarea {
  resize: none;
}

.invalid-feedback {
  font-size: 14px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Form Grid Styles */
.modal-body form {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Two columns, labels take 1/3 width and inputs take 2/3 */
  gap: 10px;
}

.modal-body label {
  text-align: right;
  padding-right: 10px;
  align-self: center; /* Vertically align labels with inputs */
}

.modal-body .form-control {
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* Form styles */
.form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.product-container {
  display: flex;
  align-items: center;
  margin: 20px; /* Margin around the product container */
}
.product-image {
  flex: 1; /* Allows the image to take up proportional space */
  max-width: 50%; /* Sets the maximum width of the image */
}
.product-details {
  flex: 1;
  display: flex; /* Enables flexbox */
  flex-direction: column; /* Stack the list items vertically */
  align-items: center; /* Horizontally center the list items */
  text-align: center; /* Center the text inside each <li> */
  margin-left: 20px;
}


.video-wrapper {
  width: 100%;
  max-width: 700px;        
  margin: 20px 0;        
  aspect-ratio: 16 / 9;    
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}


@media (max-width: 768px) {
  .dropdown {
    display: none;
  }

  nav ul li:hover .dropdown {
    display: block;
  }
  
  .video-wrapper {
    width: 90%; 
    
  }
}

.product-details li {
  margin-bottom: 10px; /* Optional, for spacing between the list items */
}

.product-image img {
  width: 100%; /* Makes the image responsive */
  height: auto; /* Maintains aspect ratio */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Add styles for dropdown FAQ */
.faq-section {
  margin: 20px 0;
}

.faq {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-header {
  background-color: #f7f7f7;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-content {
  display: none;
  padding: 10px;
}

.arrow {
  transition: transform 0.3s;
}

.arrow.up {
  transform: rotate(180deg);
}

#related-products {
  margin-top: 40px; /* Space above the section */
}

.gallery-container {
  position: relative;
  overflow: hidden;
  width: 100%; /* Full width of the container */
  height: auto; /* Adjust height as needed */
}

.gallery {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-item {
  min-width: 100%; /* Each item takes full width */
  height: auto; /* Auto height based on content */
  display: flex;
  justify-content: center; /* Center the card */
}

.look-button,
.order-button {
  margin-top: 10px; /* Space above buttons */
  padding: 10px 15px; /* Padding for buttons */
  border: none; /* Remove border */
  border-radius: 5px; /* Rounded corners for buttons */
  cursor: pointer; /* Change cursor to pointer */
}

.look-button {
  background-color: #007bff; /* Button color */
  color: #fff; /* Text color */
}

.order-button {
  background-color: #28a745; /* Button color */
  color: #fff; /* Text color */
}

.bullet-points {
  text-align: center;
  margin-top: 10px; /* Space above bullet points */
}

.bullet {
  display: inline-block;
  width: 10px; /* Bullet width */
  height: 10px; /* Bullet height */
  background-color: #ccc; /* Inactive bullet color */
  border-radius: 50%; /* Circular shape */
  margin: 0 5px; /* Space between bullets */
  cursor: pointer;
}

.bullet.active {
  background-color: #333; /* Active bullet color */
}

.modal-body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.modal-body form {
  grid-template-columns: 1fr;
}

.order-sample-form input:not(textarea) {
  height: 20px;
}

.order-sample-form button {
  height: 28px;
}

.order-sample-form button:hover {
  background-color: #829795;
  border: 2px solid #829795;
  color: white;
}

.sample-summary .sample-sku span {
  font-size: 16px;
  color: #555;
  font-weight: 700;
}

.modal-header h5 {
  margin: 0;
}

#image-id {
  width: 200px;
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow ONLY on mobile */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  /* Ensure all sections and containers fit within the viewport */
  section,
  .center-content,
  .container,
  .product-grid,
  .gallery,
  .card-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fix flexbox elements from expanding too wide */
  nav ul,
  .footer-links ul,
  .subhead ul {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Ensure no extra margin or padding is pushing elements out */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* Adjusting product grid for smaller screens */
  .product-grid {
    grid-template-columns: 1fr; /* Stack items in a single column */
    padding: 0 10px; /* Add some padding to the grid */
  }

  /* Stack navigation items vertically */
  nav ul {
    flex-direction: column; /* Stack navigation items in a column */
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove margins */
    align-items: center; /* Center the nav items */
  }

  /* Adjust navigation item spacing */
  nav li {
    margin-bottom: 10px; /* Add spacing between nav items */
  }

  /* Adjust section padding and margin for mobile */
  section {
    margin: 10px 0; /* Reduce vertical margin */
    padding: 15px; /* Adjust padding for better spacing */
    width: 100%; /* Ensure section takes full width */
    box-sizing: border-box; /* Include padding/border in width */
  }

  /* Logo adjustments for smaller screens */
  .header-logo {
    width: 100%; /* Ensure the logo takes full width */
    height: auto; /* Allow logo to adjust height proportionally */
    object-fit: contain; /* Maintain aspect ratio */
  }

  /* Make buttons responsive */
  .custom-button,
  .look-button,
  .order-button,
  .find-more-button {
    width: 100%; /* Make buttons take full width */
    padding: 12px; /* Adjust padding for better touch targets */
    margin: 10px 0; /* Add space around buttons */
    box-sizing: border-box; /* Include padding in the width calculation */
  }

  /* Adjust card layout for mobile */
  .card-container {
    display: flex;
    flex-direction: row; /* Keep cards in a row */
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    justify-content: space-between; /* Distribute cards evenly */
    margin: 0; /* Remove margins */
    padding: 0 15px; /* Add some padding */
  }

  /* Adjust card size for mobile */
  .card {
    width: 100%; /* Ensure cards take full width on small screens */
    max-width: 300px; /* Limit card width on mobile */
    margin: 15px 0; /* Add spacing between cards */
    box-sizing: border-box;
  }

  /* Adjust gallery layout for mobile */
  .gallery {
    grid-template-columns: 1fr; /* Stack gallery items in a single column */
    padding: 0 15px; /* Add padding to gallery */
  }

  /* Responsive text sizes */
  h2 {
    font-size: 1.8rem; /* Adjust font size for better readability on mobile */
  }

  .subhead ul {
    display: flex;
    flex-direction: column; /* Stack the subhead list items vertically */
    padding: 0;
    margin: 0;
    gap: 10px; /* Add spacing between items */
  }

  .footer-links ul {
    flex-direction: column; /* Stack footer links vertically */
    gap: 10px; /* Add spacing between links */
  }

  .modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
  }
  .order-sample-form {
    max-width: 300px;
    margin: auto;
  }
  .order-sample-form form {
    max-width: 300px;
    margin: auto;
  }
  .sample-summary {
    margin: auto;
  }

  .order-sample-form input:not(textarea) {
    height: 25px;
  }

  .modal-header h5 {
    margin: auto;
  }

  .sample-summary .sample-sku {
    margin-top: 10px;
    text-align: center;
  }

  #image-id {
    width: 300px;
  }

  .g-recaptcha {
    transform: scale(0.8);
    -webkit-transform: scale(0.8);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }

  .g-recaptcha iframe {
    height: auto !important;
    width: auto !important;
  }
}

@media (max-width: 450px) {
  .sample-summary,
  .order-sample-form form,
  .modal-content {
    width: 100%;
  }

  #image-id {
    margin: auto;
  }
}


.day {
  border: 1px solid #ccc;
  padding: 4px;
  display: flex;
  flex-direction: column;
}

.day-number {
  font-weight: bold;
  margin-bottom: 3px;
}

.booking-line {
  font-size: 12px;
  background: #eef;
  margin: 1px 0;
  padding: 2px;
  border-radius: 3px;
}
