/* CSS Variables for theming */

/* Replaced entire CSS with credit cards toplist styling */

/* CSS Variables */
:root {
  --text-color: #333333;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --primary-color: #e63946;
  --promo-bg: #fef3c7;
  --promo-text: #92400e;
  --hot-bg: #fee2e2;
  --hot-text: #991b1b;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Section Styling */
.toplist-section {
  padding: 2rem 0;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
  }
}

/* Credit Card */
.credit-card {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  box-shadow: 0 1px 3px 0 var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .credit-card {
    padding: 1rem;
  }
}

.credit-card:hover {
  box-shadow: 0 4px 6px -1px var(--shadow-color);
  transform: translateY(-2px);
}

/* Promo Badge */
.promo-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--promo-bg);
  color: var(--promo-text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.promo-badge.hot {
  background-color: var(--hot-bg);
  color: var(--hot-text);
}

/* Card Logo */
.card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .card-logo {
    height: 2.25rem;
  }
}

.card-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Card Title */
.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 992px) {
  .card-title {
    font-size: 1rem;
  }
}

/* Benefits List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  flex-grow: 1;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.check-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Detail Button */
.btn-detail {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-detail:hover {
  background-color: #d62839;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsive Grid Adjustments */
@media (max-width: 575px) {
  .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .row {
    gap: 0.5rem;
  }
}



/* Section Styling */
.financial-products-section {
  padding-bottom: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  .financial-products-section {
    box-shadow: none;
    padding-bottom: 0;
  }
}

/* Container spacing */
.financial-products-section .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Main Title */
.main-title {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .main-title {
    text-align: center;
    font-size: 3rem;
  }
}

/* Description Text */
.description {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .description {
    text-align: center;
    font-size: 1.25rem;
  }
}

/* Sub Description */
.sub-description {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .sub-description {
    font-size: 1.25rem;
    text-align: center;
  }
}

/* Products Grid */
.products-grid {
  margin-top: 1.5rem;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .products-grid {
    gap: 2.5rem;
  }
}

/* Product Card */
.product-card {
  display: block;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  .product-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Card Content */
.card-content {
  padding: 1rem 0;
  min-width: 222px;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .card-content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 992px) {
  .card-content {
    padding: 2.5rem;
    flex-direction: column;
    justify-content: center;
  }
}

/* Product Icon */
.product-icon {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

/* Product Title */
.product-title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .products-grid .col-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.home-description {
  padding: 3rem 0;
  background-color: #f9fafb;
}

.feature-row {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* Feature Image */
.feature-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 216px;
  padding: 1rem;
}

@media (min-width: 992px) {
  .feature-image {
    min-height: 300px;
  }
}

.feature-image img {
  max-width: 100%;
  height: auto;
  max-width: 476px;
}

/* Feature Content */
.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

@media (min-width: 992px) {
  .feature-title {
    font-size: 2rem;
  }
}

.feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1rem;
}

.feature-text:last-child {
  margin-bottom: 0;
}

/* Responsive Layout */
@media (max-width: 991px) {
  .feature-row {
    margin-bottom: 2rem;
  }

  .feature-image {
    margin-bottom: 1rem;
  }
}

@media (min-width: 992px) {
  .feature-row {
    gap: 2rem;
  }
}
