/* ===== DOWNLOADS PAGE STYLES ===== */

.downloads-intro {
  padding: 48px 0 16px;
  background: var(--white);
}

.downloads-intro .intro-text {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  max-width: 860px;
}

.downloads-container {
  padding: 24px 0 64px;
  background: var(--white);
}

/* Category Sections */
.download-section {
  margin-bottom: 56px;
}

.download-section-title {
  font-family: 'Merriweather', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-underline {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 16px;
  border-radius: 2px;
}

.section-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  font-style: italic;
  max-width: 800px;
}

/* Downloads Cards Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Download Card */
.download-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(128, 22, 18, 0.08);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(128, 22, 18, 0.02);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(128, 22, 18, 0.08);
  border-color: rgba(128, 22, 18, 0.15);
}

/* Icon Containers by File Type */
.download-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.download-card-icon.pdf {
  background: rgba(244, 67, 54, 0.08);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.15);
}

.download-card-icon.doc {
  background: rgba(33, 150, 243, 0.08);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.15);
}

.download-card-icon.spreadsheet {
  background: rgba(76, 175, 80, 0.08);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.15);
}

.download-card-icon.presentation {
  background: rgba(255, 152, 0, 0.08);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.15);
}

.download-card-icon.archive {
  background: rgba(156, 39, 176, 0.08);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.15);
}

.download-card-icon.file {
  background: rgba(96, 125, 139, 0.08);
  color: #607d8b;
  border: 1px solid rgba(96, 125, 139, 0.15);
}

/* Card Body */
.download-card-body {
  flex-grow: 1;
}

.download-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.download-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Buttons / Actions */
.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-download:hover {
  background: var(--primary-dark);
}

.btn-download:active {
  transform: scale(0.98);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  padding: 6.5px 14.5px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-link:hover {
  background: var(--primary);
  color: #fff !important;
}

/* Empty Library Fallback Box */
.no-downloads-box {
  text-align: center;
  padding: 64px 24px;
  background: #f8fafc;
  border: 1.5px dashed rgba(128, 22, 18, 0.15);
  border-radius: 8px;
  max-width: 600px;
  margin: 40px auto;
}

.no-downloads-box .icon {
  font-size: 48px;
  color: rgba(128, 22, 18, 0.2);
  margin-bottom: 16px;
}

.no-downloads-box h2 {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.no-downloads-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Responsive Grid Tweaks */
@media (max-width: 768px) {
  .download-section-title {
    font-size: 22px;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
