/* ========================================
   loan1.css — Only styles used in your HTML
   ======================================== */

:root {
  --bg: #0c1b23;
  --bg-grad: linear-gradient(135deg, #0c1b23 0%, #112e3a 100%);
  --primary: #00bfa5;
  --card-bg: rgba(70, 100, 107, 0.5);
  --text: #d0ece7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-grad);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.fade-in {
  opacity: 1;
}

/* Main Layout */
main {
  padding: 40px 0;
  text-align: center;
}

/* Hero Text */
.hero-text h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.hero-text strong {
  color: var(--primary);
}

.hero-text p {
  font-size: 18px;
  opacity: 0.9;
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 30px auto;
}

.search-bar i {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-bar input {
  width: 100%;
  padding: 18px 20px 18px 60px;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 16px;
}

.search-bar input::placeholder {
  color: #aaa;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}

.filter-btn {
  background: rgba(0, 191, 165, 0.25);
  border: none;
  color: #c8fff4;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
}

#sortSelect {
  background: rgba(0, 191, 165, 0.25);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
}

/* Request Loan Button */
.request-loan {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
  transition: 0.3s;
  text-decoration: none;

  display: inline-block;
}

.request-loan:hover {
  background: #00e6cc;
  text-decoration: none;
}

/* Loans Container */
.loans-container {
 
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* Loan Card */
.loan-card {
  width: 1020px;
  max-width: 95%;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  color: white;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-color: white;
  border-style: solid;
  border-width: 1px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* Loan Info */
.loan-info {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.loan-info p {
  margin: 12px 0;
  text-align: left;
}

.label {
  color: #00e6cc;     /* new color */
  font-weight: 700;   /* bold */
  font-size: 16px;    /* slightly bigger */
  text-align: left;   /* left align */
  display: inline-block;
  width: auto;        /* remove fixed width */
  margin-right: 10px; /* optional spacing before value */
}


.tag {
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
}

/* Document Preview */
.document-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.document-preview img {
  max-width: 100%;
  border-radius: 8px;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.actions {
  display: flex;
  gap: 12px;
}


.stats {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 1200px) {
  .loan-card {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
  }
  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .actions {
    width: 100%;
    justify-content: space-between;
  }
}


.btn-offer {
  background: #f5b800;
  color: black;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  outline: none;
}

.btn-offer:hover {
  background: #f5d000;
}

.btn-rating {
  background: rgba(220, 70, 80, 0.4);
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  outline: none;
}

.btn-rating:hover {
  background: rgba(220, 70, 80, 0.7);
}

.btn-offer:visited {
  background: #f5b800;
  color: black;
  text-decoration: none;
}

.btn-rating:visited {
  background: rgba(220, 70, 80, 0.4);
  color: white;
  text-decoration: none;
}
