/* Rank Math FAQ - Style giống GreenShift Accordion */

.rank-math-block {
  margin: 20px 0;
}

.rank-math-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-math-list-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rank-math-list-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rank-math-question {
  margin: 0;
  padding: 15px 50px 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  position: relative;
  background: #f8f9fa;
  transition: background 0.3s ease;
  user-select: none;
}

.rank-math-question:hover {
  background: #e9ecef;
}

.rank-math-list-item.gsopen .rank-math-question {
  background: #e7f3ff;
  color: #0066cc;
}

/* Icon toggle */
.rank-math-question::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.rank-math-question::before {
  content: '';
  position: absolute;
  right: 29px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 12px;
  background: #666;
  transition: all 0.3s ease;
}

.rank-math-question::after {
  right: 24px;
  width: 12px;
  height: 2px;
  background: #666;
}

.rank-math-list-item.gsopen .rank-math-question::before {
  opacity: 0;
  transform: translateY(-50%) rotate(90deg);
}

.rank-math-list-item.gsopen .rank-math-question::after {
  background: #0066cc;
}

/* Answer content */
.rank-math-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
  background: #fff;
}

.rank-math-list-item.gsopen .rank-math-answer {
  max-height: 1000px;
  padding: 15px 20px 20px;
}

.rank-math-answer p {
  margin: 0 0 10px 0;
  line-height: 1.6;
  color: #555;
}

.rank-math-answer p:last-child {
  margin-bottom: 0;
}

.rank-math-answer ul,
.rank-math-answer ol {
  margin: 10px 0;
  padding-left: 25px;
}

.rank-math-answer li {
  margin: 5px 0;
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .rank-math-question {
    font-size: 15px;
    padding: 12px 45px 12px 15px;
  }

  .rank-math-answer {
    padding: 0 15px;
  }

  .rank-math-list-item.gsopen .rank-math-answer {
    padding: 12px 15px 15px;
  }
}
