
/* Override any fixed widths on all elements */
.article-content * {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Images - force responsive and center */
.article-content img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Tables - force responsive */
.article-content table {
  width: 100% !important;
  table-layout: auto !important;
  display: block;
  overflow-x: auto;
}

.article-content td,
.article-content th {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Videos/iframes - responsive wrapper */
.article-content iframe,
.article-content video {
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
}

/* Buttons - responsive text */
.article-content .bee-button,
.article-content .bee-button-content,
.article-content a[style*="background"] {
  font-size: clamp(12px, 3vw, 16px) !important;
  padding: 10px 20px !important;
  white-space: normal !important;
}

/* Headings - responsive font size */
.article-content h1 {
  font-size: clamp(20px, 5vw, 38px) !important;
  line-height: 1.2 !important;
}

.article-content h2 {
  font-size: clamp(18px, 4vw, 30px) !important;
}

.article-content h3 {
  font-size: clamp(16px, 3.5vw, 24px) !important;
}

/* Paragraphs - responsive text */
.article-content p,
.article-content div {
  font-size: clamp(14px, 3vw, 18px) !important;
  line-height: 1.6 !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Containers - remove fixed widths */
.article-content .bee-row,
.article-content .bee-row-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 15px;
  padding-right: 15px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .article-page {
    padding: 1rem 0;
  }

  .article-card {
    padding: 1rem;
  }

  .article-title {
    font-size: 24px;
  }

  .article-meta {
    font-size: 14px;
  }

  .article-text {
    font-size: 16px;
  }

  .article-content {
    padding: 1rem !important;
  }
  
  .article-content .bee-row,
  .article-content .bee-row-content {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Reduce spacers on mobile */
  .article-content .spacer,
  .article-content [style*="height"] {
    height: 15px !important;
    min-height: 15px !important;
  }
  
  /* Stack columns on mobile */
  .article-content .bee-row-content {
    flex-direction: column !important;
  }
}
