/* Minimal PDF CSS with Smaller Button Row */

/* Main container styling */
.node-documents {
  max-width: 1000px;
  margin: 0 auto 30px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0;
  overflow: hidden;
}

/* Hide header as it contains only metadata */
.node-documents header {
  display: none;
}

/* Publication date styling - with inline calendar icon */
.node-documents .field-name-field-publication-date {
  background-color: #f5f7fa;
  padding: 10px 25px;
  color: #444;
  font-size: 14px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

/* Remove the default display for field-label and field-items */
.node-documents .field-name-field-publication-date .field-label,
.node-documents .field-name-field-publication-date .field-items {
  float: none !important;
  display: inline-block;
}

/* Hide the "Publication Date:" label text */
.node-documents .field-name-field-publication-date .field-label {
  display: none;
}

/* Create the icon */
.node-documents .field-name-field-publication-date .field-items:before {
  content: '\f073'; /* FontAwesome calendar icon */
  font-family: 'FontAwesome', sans-serif;
  color: #006b30;
  margin-right: 8px;
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
}

.node-documents .date-display-single {
  font-weight: 500;
  display: inline-block;
  vertical-align: middle;
}

/* Main content area */
.node-documents .field-name-body {
  padding: 25px;
  border-bottom: 1px solid #e9ecef;
}

/* Reset text color to original */
.node-documents .field-name-body p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;

}
.node-documents .field-name-body {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f6f7fa;
}
.node-documents .field-name-body{
padding:1em;
}
.node-documents .field-name-body li {
    list-style: square;
}

.node-documents .field-name-body li::marker {
color:#019455;
}
.node-documents .field-name-body p:last-child {
  margin-bottom: 0;
}

.node-documents .field-name-body strong {
  color: #009844;
  font-weight: 600;
}

/* Email links */
.node-documents .field-name-body a[href^="mailto:"] {
  color: #009844;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.node-documents .field-name-body a[href^="mailto:"]:hover {
  color: #006b30;
  text-decoration: underline;
}

/* Hide email icon at the end */
.node-documents .mailto {
  display: none;
}

/* PDF iframe container */
.node-documents .field-item,
.node-documents [class*="field-name-field-"],
.node-documents .entity-paragraphs-item {
  background-color: #f5f7fa;
}

/* Remove any generated content */
.node-documents .field-item::before,
.node-documents .field-item::after,
.node-documents [class*="field-name-field-"]::before,
.node-documents [class*="field-name-field-"]::after,
.node-documents .entity-paragraphs-item::before,
.node-documents .entity-paragraphs-item::after {
  content: none;
  display: none;
}

/* Improve PDF iframe display */
.node-documents iframe.pdf,
.node-documents iframe[src*="pdf.js"] {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
  margin: 0;
}

/* CSS for the dynamically added button container */
.pdf-download-container {
  background-color: #f5f7fa;
  padding: 0.5em 0.5em;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #e9ecef;
  height: 2em;
  line-height: 2em;
margin-bottom:2em;
}

/* Styling for button added by JavaScript */
.pdf-download-button {
  background-color: #fff;
  color: #006b30;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 1px solid #006b30;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pdf-download-button:hover {
  background-color: #006b30;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pdf-download-button i {
  font-size: 1em;
}

/* Block overrides to ensure our custom styles work */
#block-system-main {
  margin: 0;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .node-documents .field-name-field-publication-date {
    padding: 8px 20px;
  }
  
  .node-documents .field-name-body {
    padding: 20px;
  }
  
  .node-documents iframe.pdf,
  .node-documents iframe[src*="pdf.js"] {
    height: 500px;
  }
}

/* Fix for Drupal clearfix issues */
.node-documents .field-name-field-publication-date.clearfix:after {
  content: none;
}

/* Additional fixes for inline display */
.node-documents .field-name-field-publication-date .field-items,
.node-documents .field-name-field-publication-date .field-item {
  display: inline-flex;
  align-items: center;
}