/* ===== MAIN CONTAINER ===== */
.documents-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===== TWO-COLUMN GRID ===== */
.documents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ===== COLUMN HEADINGS (left: yearly reports, right: regulations) ===== */
.yearly-reports h2,
.static-regulations h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

/* ===== LEFT COLUMN: YEARLY REPORTS (ACCORDION) ===== */
/* Year accordion item */
.accordion-year {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

/* Accordion header (year button) */
.accordion-header {
  background-color: #f5f5f5;
  border: none;
  padding: 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: var(--font-family-heading);
}

.accordion-header:hover {
  background-color: #e8e8e8;
  color: var(--color-accent);
}

/* Accordion toggle indicator */
.accordion-toggle {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

/* Accordion content (documents for that year) */
.accordion-content {
  background-color: #ffffff;
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  padding: 1rem;
  max-height: 2000px;
}

/* ===== RIGHT COLUMN: STATIC CONTENT ===== */
/* Regulation section (Laws, Regulations, Guides, etc) */
.regulation-section {
  margin-bottom: 2rem;
}

.regulation-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== DOCUMENT ROWS (shared by both columns) ===== */
.document-item,
.static-document {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.document-item:last-child,
.static-document:last-child {
  border-bottom: none;
}

.document-icon,
.static-document-icon {
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.document-icon svg,
.static-document-icon svg {
  width: 24px;
  height: 24px;
}

.document-title,
.static-document-title {
  font-size: 1rem;
  color: var(--color-text-dark);
  line-height: 1.3;
}

/* Document title links styling */
a.document-title,
a.static-document-title {
  cursor: pointer;
  transition: color 0.2s ease;
}

a.document-title:hover,
a.static-document-title:hover {
  color: var(--color-accent);
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .yearly-reports h2,
  .static-regulations h2 {
    font-size: 1.3rem;
  }

  .accordion-header {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .document-icon,
  .static-document-icon {
    width: 36px;
    height: 36px;
  }
}
