/* loan-cards.css */

:root {
  --primary: #007bff;
  --secondary: #ffcc00;
  --text: #333;
  --bg: #f9f9f9;
  --light: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
}

.page-header {
  background-color: var(--primary);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 300;
}

.loan-categories {
  padding: 3rem 1rem;
  background-color: var(--light);
}

.loan-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Optional: Inactive tabs styling */
.tab-button {
    color: #555;
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s, border-bottom 0.3s;
}

/* Make active tab black text */
.tab-button.active {
    color: #000;
    border-bottom: 2px solid #000;
    font-weight: 600;
}

.tab-content {
  display: none;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loan-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background-color: var(--light);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-details:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.loan-info {
  flex: 1 1 400px;
}

.loan-info h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.loan-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.loan-features-detailed h3,
.eligibility-criteria h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.loan-features-detailed ul,
.eligibility-criteria ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.loan-features-detailed li,
.eligibility-criteria li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.loan-features-detailed li i,
.eligibility-criteria li i {
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--primary);
}

.loan-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #e0e0e0;
  color: var(--text);
}

.btn-secondary:hover {
  background-color: #ccc;
  transform: scale(1.05);
}

.loan-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

/* Uniform image sizes */
.loan-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Rates Table */
.interest-rates {
  background-color: var(--bg);
  padding: 3rem 1rem;
}

.rates-table {
  overflow-x: auto;
}

.rates-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  box-shadow: 0 4px 10px var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

.rates-table th,
.rates-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.rates-table th {
  background-color: var(--primary);
  color: white;
}

.rates-table tr:last-child td {
  border-bottom: none;
}
