/* --- GLOBAL CONTAINER --- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HERO SECTION --- */
.downloads-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.sub-badge {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #d4af37;
  display: block;
  margin-bottom: 10px;
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
}

.gold-italic {
  font-style: italic;
  color: #d4af37;
  font-weight: 400;
}

.hero-desc {
  color: #64748b;
  max-width: 550px;
  margin: 25px auto 0;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* --- SEARCH BAR --- */
.search-box {
  max-width: 550px;
  margin: -40px auto 80px;
  background: #fff;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.search-box i {
  color: #d4af37;
  font-size: 1.1rem;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: #0f172a;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #94a3b8;
}

/* --- MAIN SECTION PADDING --- */
.downloads-section {
  padding-bottom: 120px; /* Added margin/padding before footer */
}

/* --- GRID & CARDS --- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.doc-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.doc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  border-color: #d4af37;
}

.doc-card-body {
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  flex-grow: 1;
}

.file-icon {
  font-size: 2.8rem;
  color: #d4af37;
  opacity: 0.9;
}

.file-meta h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.file-date {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.doc-card-footer {
  padding: 25px 40px;
  border-top: 1px solid #f8fafc;
  background: #fafbfc;
}

.btn-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

.btn-download i {
  font-size: 1.3rem;
  color: #d4af37;
  transition: transform 0.3s ease;
}

.btn-download:hover {
  color: #d4af37;
}

.btn-download:hover i {
  transform: translateY(3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .main-title {
    font-size: 3rem;
  }
  .docs-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .downloads-hero {
    padding: 80px 0 50px;
  }
  .main-title {
    font-size: 2.4rem;
  }
  .doc-card-body {
    padding: 30px;
  }
  .doc-card-footer {
    padding: 20px 30px;
  }
  .search-box {
    width: 90%;
    margin-bottom: 50px;
  }
  .downloads-section {
    padding-bottom: 80px;
  }
}
