:root {
  /* color */
  --primary: #59653d;
  --secondary: #e7e8c0;
  --tertiary: #fcf7f4;
  --quaternary: #053e7a;

  /* font */
  --mainFont: "Poppins", sans-serif;
  --secondaryFont: "Poltawski Nowy", sans-serif;
  --tertiaryFont: "Lora", sans-serif;
}
* {
  font-family: var(--mainFont);
  margin: 0; /* Remove default margin */
  padding: 0;
}
html {
  scroll-padding-top: 80px;
}

.home {
  margin-top: 80px;
  background-image: linear-gradient(to right, #e7e8c0, #d9d9d9);
  border-bottom: 2px dashed var(--primary);
}

.navbar {
  background-image: linear-gradient(to right, #e7e8c0, #ffffff5c);
  font-size: 14px;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 25px;
  font-family: var(--secondaryFont);
}
.nav-link:hover {
  color: var(--secondary) !important;
  background-color: var(--primary);
  border-radius: 10px;
}
.nav-link {
  color: #000000 !important;
}

.btn-custom {
  background-color: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 14px;
}

.highlight {
  color: var(--primary);
}

.home .btn-custom {
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.criteria {
  background-color: var(--tertiary);
  font-family: var(--mainFont);
  border-bottom: 2px dashed var(--primary);
}

.criteria h1 {
  font-size: 24px;
}

.criteria img {
  width: 120%;
  max-width: 600px;
  height: 90%;
  display: block;
  margin: 50px auto;
}

.product {
  padding: 5rem 0; /* Match the padding of other sections */
  background-color: var(--secondary);
  border-bottom: 2px dashed var(--primary);
}

.calculator h2,
.shape h2,
.product h2 {
  font-size: 36px;
  font-weight: bold;
  color: #2f2f2f;
}

.product .row {
  align-items: start; /* Align items at the top */
}

.product img {
  width: 100%; /* Ensure images are responsive */
  height: auto; /* Maintain aspect ratio */
  max-width: 500px; /* Set a maximum width for images */
  margin-bottom: 1rem; /* Add spacing below images */
}

.product h3 {
  font-size: 32px;
  font-family: var(--tertiaryFont);
  color: #2f2f2f;
  margin-bottom: 1rem; /* Add spacing below the heading */
}

.product p {
  font-size: 16px;
  color: #595959;
  margin-bottom: 1rem; /* Add spacing below the paragraph */
}

.product ul {
  padding-left: 0; /* Remove left padding */
  list-style: none; /* Remove default list styling */
}

.product li {
  font-size: 16px;
  margin-bottom: 1rem; /* Add spacing between list items */
  display: flex;
  align-items: center; /* Align icons and text */
}

.product li i {
  font-size: 24px; /* Adjust icon size */
  margin-right: 0.5rem; /* Add spacing between icon and text */
}

@media (max-width: 768px) {
  .product .row {
    flex-direction: column; /* Stack columns vertically on smaller screens */
    text-align: center; /* Center-align text */
  }

  .product img {
    max-width: 300px; /* Reduce image size for smaller screens */
    margin: 0 auto 1rem; /* Center the image and add spacing below */
  }

  .product h3 {
    font-size: 24px; /* Adjust heading size for smaller screens */
  }

  .product p {
    font-size: 14px; /* Adjust paragraph size for smaller screens */
  }

  .product li {
    font-size: 14px; /* Adjust list item size for smaller screens */
  }
}

@media (max-width: 480px) {
  .product img {
    max-width: 250px; /* Further reduce image size for very small screens */
  }

  .product h3 {
    font-size: 20px; /* Further reduce heading size */
  }

  .product p {
    font-size: 12px; /* Further reduce paragraph size */
  }

  .product li {
    font-size: 12px; /* Further reduce list item size */
  }
}

.product img {
  width: 85%;
  border-radius: 10px;
  border: 2px solid var(--primary);
}

.product h3 {
  font-family: var(--tertiaryFont);
  font-size: 32px;
  color: #2f2f2f;
}

.product p {
  font-size: 16px;
  color: #595959;
}

.product ul {
  padding-left: 0;
}

.product li {
  font-size: 16px;
}

.product i {
  font-size: 24px; /* Increase the icon size */
}

.product .highlight {
  color: #053e7a;
}

.shape {
  background-image: url("/assets/themes/landing_page/images/background.png");
  padding: 5rem 0; /* Match the padding of other sections */
  border-bottom: 2px dashed var(--primary);
}
.shape p {
  font-size: 16px;
  color: var(--primary);
  font-weight: bold;
}

.shape .card {
  border: none;
  background-image: linear-gradient(to top, #eec23140, #e7e8c0, #ffff);
  box-shadow: 0 4px 8px #eec23140;
  transition: transform 0.3s ease;
  width: 100%;
  height: 315px; /* Set a fixed height for all cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* Ensure no content overflows */
  align-items: center; /* Ensure the content is centered */
}

.shape .card img {
  width: 250px; /* Ensure images take full width of their container */
  height: 250px; /* Set a fixed height for the images */
  object-fit: cover; /* Ensure images cover the entire card without distortion */
  margin-top: 10px; /* Add margin to separate image from text */
  margin-bottom: 10px; /* Add margin to separate image from text */
}

.shape .card-body {
  background-color: var(--tertiary);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.shape .card p {
  font-size: 16px;
  color: #2f2f2f;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

.shape .card:hover {
  transform: translateY(-10px);
  border: 1px solid var(--primary);
  radius: 8px;
}
.calculator {
  background-color: var(--tertiary);
}
.calculator .btn-custom {
  width: 100%;
  padding: 15px 10px; /* Adjust top/bottom padding for height */
  color: white;
  border: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.calculator .card {
  border: 2px solid #ddd; /* Add border */
  border-radius: 15px; /* Rounded corners */
  padding: 30px; /* Increase padding to make the card larger */
  box-shadow: 0 4px 8px var(--primary); /* Optional: add shadow for better aesthetics */
}

.calculator .card-body {
  padding: 20px; /* Adjust padding inside the card */
}
.calculator label {
  font-size: 20px;
  color: #2f2f2f;
  font-weight: bold;
}
.calculator input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 18px;
}
.calculator h3 {
  margin-top: 20px;
  font-size: 20px;
  color: #595959;
}

.custom-separator {
  width: 40%; /* Adjust the width of the line */
  margin: 20px auto; /* Center the separator */
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.custom-separator::before,
.custom-separator::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

.custom-separator::before {
  margin-right: 10px;
}

.custom-separator::after {
  margin-left: 10px;
}

.custom-separator span {
  font-family: var(--tertiaryFont);
  color: var(--primary);
  font-size: 18px;
  position: relative;
  padding: 0 10px; /* Add padding to separate the text from the lines */
}

.custom-separator span::before,
.custom-separator span::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg); /* Rotate to create diamond shape */
  width: 10px; /* Diamond size */
  height: 10px;
  background-color: var(--primary);
}

.custom-separator span::before {
  left: -15px; /* Adjust to align with the left line */
}

.custom-separator span::after {
  right: -15px; /* Adjust to align with the right line */
}

.custom-separator::before::after,
.custom-separator::after::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg); /* Rotate to create diamond shape */
  width: 10px; /* Diamond size */
  height: 10px;
  background-color: var(--primary);
}

@media (max-width: 480px) {
  .custom-separator {
    width: 80%; /* Adjust the width for smaller screens */
  }

  .custom-separator span::before,
  .custom-separator span::after {
    width: 6%; /* Further reduce diamond size for very small screens */
    height: 6%;
  }

  .custom-separator span::before {
    left: -8%; /* Adjust position for very small screens */
  }

  .custom-separator span::after {
    right: -8%; /* Adjust position for very small screens */
  }
}

@media (max-width: 768px) {
  .custom-separator {
    width: 80%; /* Adjust the width for smaller screens */
  }

  .custom-separator span::before,
  .custom-separator span::after {
    width: 8px; /* Reduce diamond size for smaller screens */
    height: 8px;
  }

  .custom-separator span::before {
    left: -10px; /* Adjust position for smaller screens */
  }

  .custom-separator span::after {
    right: -10px; /* Adjust position for smaller screens */
  }
}

.footer {
  background-color: var(--secondary);
  padding: 2rem 0;
  color: #2f2f2f;
}

.footer .footer-logo {
  font-family: var(--secondaryFont);
  font-size: 36px;
  margin-bottom: 1rem;
  color: #000000;
}

.footer-logo-container {
  display: flex;
  align-items: center;
}

.footer-logo-container img {
  margin-right: 10px; /* Add some space between the logo and the text */
}

.footer p {
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #2f2f2f;
  margin-right: 1rem;
}

.footer a:hover {
  color: var(--primary);
}

.footer .social-icons a {
  font-size: 24px;
  margin-right: 1rem;
}

.footer .social-icons a:hover {
  color: var(--primary);
}

.footer .footer-divider {
  border-left: 1px solid var(--primary);
  height: 100%;
  margin: 0 2rem;
}

@media (max-width: 768px) {
  .footer .footer-divider {
    border-left: none;
    border-top: 1px solid var(--primary);
    width: 100%;
    height: auto;
    margin: 2rem 0;
  }

  .footer .footer-logo-container {
    justify-content: center;
    text-align: center;
  }

  .footer .footer-logo-container img {
    margin-bottom: 1rem;
  }

  .footer .social-icons {
    justify-content: center;
  }

  .footer .social-icons a {
    margin-bottom: 1rem;
  }

  .footer .col-md-4,
  .footer .col-md-3,
  .footer .col-md-1 {
    text-align: center;
    margin-bottom: 2rem;
  }
}

/* Calculator Result Styling */
#resultSection {
  transition: all 0.3s ease;
}

#resultSection .card-header {
  background-color: #6d8547; /* Match your theme color */
  color: white;
}

#resultSection .table {
  margin-bottom: 0;
}

#resultSection .table td {
  padding: 8px 0;
  border: none;
}

#resultSection .bg-light {
  background-color: #f8f9fa;
  border-radius: 4px;
}

#resultSection .btn-custom {
  background-color: #6d8547;
  color: white;
}

#resultSection .btn-custom:hover {
  background-color: #5a7039;
}

#resultSection .alert-info {
  background-color: #e8f4f8;
  border-color: #d1e7f0;
  color: #0c5460;
}

/* Print styling */
@media print {
  #resultSection {
    box-shadow: none !important;
  }

  .btn,
  nav,
  footer,
  form,
  section:not(#calculator) {
    display: none !important;
  }

  #calculator .container {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Price comparison styles */
.table-responsive {
  overflow-x: auto;
}

.table-bordered {
  border: 1px solid #dee2e6;
}

.table-success {
  background-color: #d1e7dd;
}

.text-success {
  color: #198754 !important;
}

.text-danger {
  color: #dc3545 !important;
}

@media print {
  .comparison-section {
    break-inside: avoid;
  }

  .table {
    font-size: 12px;
  }
}
