.faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  font-family: inherit;
  background: #f8f7f0;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Remove any borders that might appear */
.faq-section,
.faq-section .container,
.faq-container {
  border: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

/* Ensure full width layout without sidebar borders */
body.page-template-page-kalkulator .container {
  border-right: none !important;
}

.page-template-page-kalkulator .content-wrapper {
  border-right: none !important;
}

/* Fix page builder content width issues */
.page-template-page-kalkulator .container,
.page-template-page-kalkulator .container-wrapper,
.page-template-page-kalkulator .post-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* Fix page builder blocks that might be too wide */
.page-template-page-kalkulator .tie-block,
.page-template-page-kalkulator .builder-block {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Ensure text content stays within bounds */
.page-template-page-kalkulator p,
.page-template-page-kalkulator .post-content p {
  max-width: 100% !important;
  word-wrap: break-word !important;
}

/* Fix calculator shortcode container issues */
.page-template-page-kalkulator .calorie-calculator {
  max-width: 800px !important;
  margin: 30px auto !important;
  clear: both !important;
  overflow: hidden !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Ensure content after calculator is properly contained */
.page-template-page-kalkulator .calorie-calculator + *,
.page-template-page-kalkulator .calorie-calculator ~ * {
  clear: both !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Fix any floating issues from calculator */
.page-template-page-kalkulator .calorie-calculator::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.faq-title {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 20px;
}

.faq-container {
  max-width: 100%;
}

.faq-section .faq-item,
.post-faq-section .faq-item {
  background: none;
  margin-bottom: 0;
  border-radius: 0;
  padding: 15px 0;
  box-shadow: none;
  border-bottom: 1px solid #ddd;
}

.faq-section .faq-item:hover,
.post-faq-section .faq-item:hover {
  background: none !important;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.faq-question .icon,
.faq-question .faq-icon {
  transition: transform 0.3s ease;
  font-weight: bold;
  font-size: 1.2rem;
  display: inline-block;
  width: 20px;
  text-align: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out, padding 0.4s ease-in-out;
  padding: 0 0;
}

.faq-answer p {
  margin: 10px 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 15px 0;
}

.faq-item.active .faq-question .icon,
.faq-item.active .faq-question .faq-icon {
  /* No transform - JavaScript handles the icon change */
}

/* Clean FAQ Section Styling - No borders, simple design */
.faq-section,
.post-faq-section {
  margin: 40px 0;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  border-top: 3px solid #0073aa;
}

.faq-section .faq-title,
.post-faq-section .faq-title {
  color: #333;
  border: none;
  padding-bottom: 20px;
  margin-bottom: 25px;
  font-size: 2rem;
  font-weight: bold;
}

.faq-section .faq-item,
.post-faq-section .faq-item {
  background: none;
  margin-bottom: 0;
  border-radius: 0;
  padding: 15px 0;
  box-shadow: none;
  border-bottom: 1px solid #ddd;
}

.faq-section .faq-question,
.post-faq-section .faq-question {
  padding: 10px 0;
}

.faq-section .faq-answer,
.post-faq-section .faq-answer {
  padding: 0;
}

.faq-section .faq-item.active .faq-answer,
.post-faq-section .faq-item.active .faq-answer {
  padding: 15px 0;
}

/* Admin styles */
.faq-item-admin {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  background: #f9f9f9;
  border-radius: 5px;
}

.faq-item-admin label {
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
}

.faq-item-admin input[type="text"],
.faq-item-admin textarea {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px;
}

.faq-item-admin .remove-faq {
  background: #dc3232;
  border-color: #dc3232;
  color: white;
}

.faq-item-admin .remove-faq:hover {
  background: #a00;
  border-color: #a00;
}

/* Responsive design */
@media (max-width: 768px) {
  .faq-section {
    margin: 30px auto;
    padding: 15px;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 12px 0;
  }

  .post-faq-section {
    padding: 20px;
    margin: 30px 0;
  }
}