/**
 * Resources & Documents Page Styles
 * Hero banner + 2-column document grid
 */

/* === Hero Banner === */
.rd-hero {
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-color: #eaf1f1;
}

/* === Container === */
.rd-container {
  padding: 3rem 0;
}

/* === Document Grid — 2 columns === */
/* The field_downloads renders inside a field wrapper div; apply grid to it */
.rd-documents-grid > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Override the default vertical margin from media-document when inside grid */
.rd-documents-grid .media-document {
  margin: 0;
  height: 100%;
}

/* === Upgraded Document Card Styling === */
.rd-documents-grid .document-wrapper {
  border: 1px solid #e8ecef;
  border-radius: 10px;
  background: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.rd-documents-grid .document-wrapper:hover {
  border-color: #22aae0;
  box-shadow: 0 6px 20px rgba(34, 170, 224, 0.15);
  transform: translateY(-3px);
}

.rd-documents-grid .document-link {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.25rem;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
  height: 100%;
}

.rd-documents-grid .document-link:hover {
  text-decoration: none;
  background-color: transparent;
}

.rd-documents-grid .document-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b538b 0%, #22aae0 100%);
  border-radius: 10px;
  color: white;
}

.rd-documents-grid .document-icon svg {
  width: 28px;
  height: 28px;
}

.rd-documents-grid .document-info {
  flex: 1;
  min-width: 0;
}

.rd-documents-grid .document-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.rd-documents-grid .document-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #8e99a4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rd-documents-grid .document-type {
  font-weight: 700;
  color: #22aae0;
}

.rd-documents-grid .document-separator {
  color: #d0d5da;
  font-size: 0.6rem;
}

.rd-documents-grid .document-action {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22aae0;
  background: #eef8fd;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.rd-documents-grid .document-action svg {
  width: 18px;
  height: 18px;
}

.rd-documents-grid .document-link:hover .document-action {
  background: #22aae0;
  color: #fff;
  transform: translateY(2px);
}

/* === Hide the body field image (it's now in the hero) === */
.resources-documents-page .field--name-body {
  display: none;
}

/* === Responsive === */
@media (max-width: 992px) {
  .rd-hero {
    min-height: 220px;
  }

  .rd-container {
    padding: 2rem 1rem;
  }
}

@media (max-width: 768px) {
  .rd-documents-grid > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rd-hero {
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .rd-documents-grid .document-link {
    padding: 1rem;
  }

  .rd-documents-grid .document-icon {
    width: 44px;
    height: 44px;
  }

  .rd-documents-grid .document-icon svg {
    width: 24px;
    height: 24px;
  }
}

