.nicobay-guide {
  padding-bottom: 100px;
  background-color: #f5f5f5;
}

/* Container Layout */
.nicobay-guide__container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Navigation Styles */
.nicobay-guide__nav {
  position: sticky;
  top: 250px;
  flex-shrink: 0;
  width: 260px;
  background-color: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navigation Toggle Button */
.nicobay-guide__nav-toggle {
  display: none;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.nicobay-guide__nav-toggle .nicobay-guide__nav-title {
  margin: 0;
  padding: 0;
  border: none;
}

.nicobay-guide__nav-arrow {
  transition: transform 0.3s ease;
  color: #666;
}

.nicobay-guide__nav-toggle.is-active .nicobay-guide__nav-arrow {
  transform: rotate(180deg);
}

.nicobay-guide__nav-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.nicobay-guide__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nicobay-guide__nav-list li {
  margin-bottom: 12px;
}

.nicobay-guide__nav-list li:last-child {
  margin-bottom: 0;
}

.nicobay-guide__nav-link {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nicobay-guide__nav-link:hover {
  background-color: #f5f5f5;
  color: var(--nicobay-blue);
  padding-left: 18px;
}

.nicobay-guide__nav-link.active {
  background-color: rgba(37, 0, 193, 0.1);
  color: #2500c1;
  font-weight: 600;
}

/* Content Area */
.nicobay-guide__content {
  flex: 1;
  min-width: 0;
}

.nicobay-guide__section {
  margin-bottom: 80px;
  scroll-margin-top: 80px;
}

.nicobay-guide__section:last-child {
  margin-bottom: 0;
}

/* Title Styles */
.nicobay-guide__title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.nicobay-guide__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: rgb(var(--nicobay-green));
}

/* Box Styles */
.nicobay-guide__box {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.nicobay-guide__box:last-child {
  margin-bottom: 0;
}

/* Subsection Styles */
.nicobay-guide__subsection {
  margin-bottom: 60px;
}

.nicobay-guide__subsection:last-child {
  margin-bottom: 0;
}

.nicobay-guide__subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.nicobay-guide__text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 12px;
}

.nicobay-guide__text:last-child {
  margin-bottom: 0;
}

/* Link Styles */
.nicobay-guide__link {
  color: var(--nicobay-blue);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.nicobay-guide__link:hover {
  opacity: 0.8;
}

/* Question/Answer Styles */
.nicobay-guide__question {
  margin-bottom: 40px;
}

.nicobay-guide__question:last-child {
  margin-bottom: 0;
}

.nicobay-guide__question-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.nicobay-guide__answer {
  padding-left: 20px;
}

/* Type Styles */
.nicobay-guide__type {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid rgb(var(--nicobay-green));
}

.nicobay-guide__type:last-child {
  margin-bottom: 0;
}

.nicobay-guide__type-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.nicobay-guide__type-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Shipping Info Styles */
.nicobay-guide__shipping-info {
  margin-bottom: 30px;
}

.nicobay-guide__shipping-info:last-child {
  margin-bottom: 0;
}

.nicobay-guide__info-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* List Styles */
.nicobay-guide__list {
  list-style-type: disc;
  padding-left: 30px;
  margin-bottom: 20px;
}

.nicobay-guide__list li {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 8px;
}

.nicobay-guide__list li:last-child {
  margin-bottom: 0;
}

/* FAQ Styles */
.nicobay-guide__faq-category {
  margin-bottom: 50px;
}

.nicobay-guide__faq-category:last-child {
  margin-bottom: 0;
}

.nicobay-guide__faq-item {
  margin-bottom: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}
.nicobay-guide__faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nicobay-guide__faq-item:last-child {
  margin-bottom: 0;
}

.nicobay-guide__faq-question {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
}
.nicobay-guide__faq-question:hover {
  background-color: #f5f5f5;
}
.nicobay-guide__faq-question::after {
  flex-shrink: 0;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.nicobay-guide__faq-item.active .nicobay-guide__faq-question::after {
  transform: rotate(135deg);
}

.nicobay-guide__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  line-height: 1.5;
  color: #666;
}
.nicobay-guide__faq-item.active .nicobay-guide__faq-answer {
  padding: 15px 25px 15px 25px;
  max-height: 1000px;
}

.nicobay-guide__faq-answer .metafield-rich_text_field :first-child {
  margin-top: 0;
}

.nicobay-guide__faq-answer .metafield-rich_text_field :last-child {
  margin-bottom: 0;
}

/* Strong text */
.nicobay-guide__text strong {
  font-weight: 600;
  color: #333;
}

/* Table Styles */
.nicobay-guide__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.nicobay-guide__table th,
.nicobay-guide__table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.nicobay-guide__table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
  width: 30%;
  word-break: keep-all;
}

.nicobay-guide__table td {
  color: #666;
}

.nicobay-guide__table tr:last-child th,
.nicobay-guide__table tr:last-child td {
  border-bottom: none;
}

#company .nicobay-guide__list {
  padding-left: 0;
}

#company .nicobay-guide__list li {
  list-style: none;
  padding-left: 0;
}

/* Reasons Grid for About Section */
.nicobay-guide__reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.nicobay-guide__reason {
  background-color: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nicobay-guide__reason:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.nicobay-guide__reason-number {
  font-size: 36px;
  font-weight: 700;
  color: rgb(var(--nicobay-green));
  margin-bottom: 15px;
  opacity: 0.3;
}

.nicobay-guide__reason-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.nicobay-guide__reason-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  text-align: left;
}

/* Ordered List Styles */
.nicobay-guide__ordered-list {
  padding-left: 25px;
  margin-bottom: 20px;
}

.nicobay-guide__ordered-list li {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 10px;
}

.nicobay-guide__ordered-list li:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .nicobay-guide__nav {
    width: 220px;
  }
}

@media screen and (max-width: 768px) {
  .nicobay-guide {
    padding-bottom: 80px;
  }

  .nicobay-guide__container {
    flex-direction: column;
  }

  /* Show nav toggle button on mobile */
  .nicobay-guide__nav-toggle {
    display: flex;
  }

  .nicobay-guide__nav-toggle:not(.is-active) {
    margin: 0;
    padding: 0;
    border-color: transparent;
  }

  /* Hide nav list by default on mobile */
  .nicobay-guide__nav-list {
    max-height: 0;
    margin-top: 0;
  }

  /* Show nav list when accordion is open */
  .nicobay-guide__nav-list.is-open {
    max-height: 500px;
    margin-top: 20px;
  }

  .nicobay-guide__nav {
    position: static;
    width: 100%;
    margin-bottom: 40px;
  }

  .nicobay-guide__section {
    scroll-margin-top: 60px;
  }
  .nicobay-guide__section {
    margin-bottom: 60px;
  }

  .nicobay-guide__title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .nicobay-guide__box {
    padding: 30px 20px;
  }

  .nicobay-guide__subsection {
    margin-bottom: 40px;
  }

  .nicobay-guide__subtitle {
    font-size: 20px;
  }

  .nicobay-guide__text {
    font-size: 15px;
  }

  .nicobay-guide__question-title {
    font-size: 16px;
  }

  .nicobay-guide__type {
    padding: 15px;
    margin-bottom: 20px;
  }

  .nicobay-guide__type-title {
    font-size: 15px;
  }

  .nicobay-guide__type-text {
    font-size: 13px;
  }

  .nicobay-guide__info-title {
    font-size: 16px;
  }

  .nicobay-guide__list {
    padding-left: 20px;
  }

  .nicobay-guide__list li {
    font-size: 15px;
  }

  .nicobay-guide__faq-item {
    margin-bottom: 10px;
  }

  .nicobay-guide__faq-question {
    font-size: 16px;
    padding: 20px;
  }

  .nicobay-guide__faq-question::after {
    font-size: 20px;
  }

  .nicobay-guide__faq-answer {
    padding: 0 20px;
  }

  .nicobay-guide__faq-item.active .nicobay-guide__faq-answer {
    padding: 0 20px 20px 20px;
  }
}
