/* =====================================================================
   CONTENT FORMATTING STYLES
   ===================================================================== */

/* INTRODUCTION & CONCLUSION SECTIONS */
.post-introduction,
.post-conclusion {
  background: #F5F5F5;
  border-left: 4px solid #FF6B35;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-introduction {
  background: #FFF5F0;
  border-left-color: #FF6B35;
}

.post-conclusion {
  background: #F5F5F5;
  border-left-color: #2C2C2C;
}

/* PULLQUOTES */
.pullquote {
  border-left: 4px solid #FF6B35;
  padding: 1.5rem 0 1.5rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.25rem;
  font-style: italic;
  color: #FF6B35;
  font-weight: 600;
}

/* CALLOUT BOXES */
.callout {
  background: #FFFFFF;
  border: 2px solid #FF6B35;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FF6B35;
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.callout-content {
  color: #2C2C2C;
  margin: 0;
}

/* TIPS BOXES */
.tips-box,
.tip {
  background: #E8F5E9;
  border-left: 4px solid #27AE60;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tips-box-title,
.tip-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #27AE60;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.tips-box-title::before,
.tip-title::before {
  content: "💡";
  font-size: 1.25rem;
}

.tips-box-content,
.tip-content {
  color: #2C2C2C;
  margin: 0;
  line-height: 1.6;
}

/* WARNING BOXES */
.warning-box {
  background: #FADBD8;
  border-left: 4px solid #E74C3C;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.warning-box-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #E74C3C;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.warning-box-title::before {
  content: "⚠️";
  font-size: 1.25rem;
}

.warning-box-content {
  color: #2C2C2C;
  margin: 0;
  line-height: 1.6;
}

/* FAQ SECTION */
.faq-section {
  margin: 3rem 0;
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C2C2C;
  margin: 0 0 2rem 0;
  text-align: center;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.faq-question {
  background: #F5F5F5;
  padding: 1.25rem;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #FF6B35;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #2C2C2C;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 500px;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: #FF6B35;
  color: #FFFFFF;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #DDDDDD;
  color: #2C2C2C;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #F5F5F5;
}

tbody tr:hover {
  background: #FFF5F0;
}

/* LISTS */
ul, ol {
  line-height: 1.8;
  color: #2C2C2C;
}

ul li,
ol li {
  margin-bottom: 0.75rem;
}

ul li strong,
ol li strong {
  color: #FF6B35;
}

/* NESTED LISTS */
ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* DEFINITION LIST */
dl {
  margin: 2rem 0;
}

dt {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FF6B35;
  margin-top: 1rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.5rem 0 0 1.5rem;
  color: #2C2C2C;
  line-height: 1.6;
}

/* BLOCKQUOTES */
blockquote {
  border-left: 4px solid #FF6B35;
  padding: 1.5rem 0 1.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666666;
  background: #F5F5F5;
  border-radius: 8px;
}

blockquote p {
  margin: 0.5rem 0;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: #999999;
  font-size: 0.9rem;
}

/* CODE */
code {
  background: #F5F5F5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #E74C3C;
  font-size: 0.9em;
}

pre {
  background: #2C2C2C;
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  line-height: 1.5;
}

pre code {
  background: transparent;
  padding: 0;
  color: #FFFFFF;
}

/* RESPONSIVE TABLES */
@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }

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