/* ========================================
   Home Loan Rates Section Styles
   Theme: #292075 (purple) + #00B5EF (cyan)
   ======================================== */

/* Section Container */
.home-loan-rates-section {
  background-color: #f7f8fc;
  padding: 60px 0;
}

.home-loan-rates-container {
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 55px 70px 50px;
  position: relative;
  overflow: visible;
}

/* Heading */
.home-loan-rates-heading {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: #292075;
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.home-loan-rates-heading .highlight-orange {
  color: #00B5EF;
}

/* Subtitle */
.home-loan-rates-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.home-loan-rates-subtitle .feature-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #444;
  font-weight: 400;
}

.home-loan-rates-subtitle .feature-point .check-icon {
  width: 22px;
  height: 22px;
  background: #00B5EF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}

.home-loan-rates-subtitle .feature-point .orange-text {
  color: #00B5EF;
  font-style: italic;
  font-weight: 500;
}

/* Interest Rate Header */
.interest-rate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.interest-rate-header .left-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.interest-rate-header .left-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #292075;
  margin: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

.interest-rate-header .header-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 10px 22px;
  width: 270px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.interest-rate-header .header-search:hover {
  border-color: #00B5EF;
}

.interest-rate-header .header-search:focus-within {
  border-color: #00B5EF;
  box-shadow: 0 0 0 3px rgba(0, 181, 239, 0.15);
}

.interest-rate-header .header-search .search-icon {
  color: #00B5EF;
  margin-right: 10px;
  font-size: 15px;
}

.interest-rate-header .header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
  width: 100%;
  cursor: pointer;
}

.interest-rate-header .header-search input::placeholder {
  color: #aaa;
}

/* ========================================
   Bank Cards Row
   ======================================== */
.bank-cards-row {
  margin-bottom: 22px;
  position: relative;
  padding: 0 25px;
}

.bank-cards-row .bank-cards-row .swiper,
.bank-cards-row .swiper.swiper {
  height: auto !important;
  overflow: hidden !important;
  padding: 0;
  border-radius: 0 !important;
  width: 100% !important;
}

.bank-cards-row .swiper-wrapper {
  align-items: stretch;
  display: flex;
  gap: 20px;
}

.bank-cards-row .swiper-slide {
  height: auto;
  flex: 0 0 calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  margin-right: 0 !important;
}

.home-loan-rates-container .bank-cards-row .swiper.swiper {
  overflow: hidden !important;
  height: auto !important;
}

/* ========================================
   Bank Card
   ======================================== */
.bank-card {
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 20px 22px 18px;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.bank-card:hover {
  box-shadow: 0 8px 30px rgba(41, 32, 117, 0.12);
  border-color: #00B5EF;
  transform: translateY(-3px);
}

/* Card Top: logo + bank name */
.bank-card .card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bank-card .bank-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: #94a3b8;
  overflow: hidden;
  background: #f7f8fc;
}

.bank-card .bank-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-card .bank-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #292075;
  margin: 0;
  line-height: 1.3;
}

/* Card Rates */
.bank-card .rate-section {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
gap:35px;
}

.bank-card .rate-item {
  text-align: left;
}

.bank-card .rate-item:last-child {
  text-align: right;
}

.bank-card .rate-item .rate-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  margin-bottom: 3px;
}

.bank-card .rate-item .rate-value {
  font-size: 17px;
  font-weight: 700;
  color: #292075;
  letter-spacing: -0.2px;
}

/* ========================================
   Row Navigation Arrows
   ======================================== */
.bank-cards-row .row-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  color: #292075;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bank-cards-row .row-nav-btn:hover {
  background: #292075;
  border-color: #292075;
  color: #fff;
}

.bank-cards-row .row-nav-prev {
  left: -6px;
}

.bank-cards-row .row-nav-next {
  right: -6px;
}

/* ========================================
   CTA Button — matching btn_theme style
   ======================================== */
.home-loan-rates-cta {
  text-align: center;
  margin-top: 10px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #291F75  ;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 32px;
  text-decoration: none;
  border: 1px solid #291F75  ;
  cursor: pointer;
  transition: all 0.35s ease-in-out;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.cta-button:hover {
  background: #fff;
  color: #291F75  ;
  border: 1px solid #291F75  ;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(41, 32, 117, 0.2);
}

.cta-button:active {
  transform: translateY(0);
}

/* ========================================
   Responsive — Desktop Large
   ======================================== */
@media (min-width: 1600px) {
  .home-loan-rates-container {
    max-width: 1500px;
  }
}

/* ========================================
   Responsive — Tablet Landscape
   ======================================== */
@media (max-width: 1199px) {
  .home-loan-rates-container {
    padding: 45px 40px 40px;
  }
  .home-loan-rates-heading {
    font-size: 34px;
  }
  .bank-cards-row .swiper-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

/* ========================================
   Responsive — Tablet Portrait
   ======================================== */
@media (max-width: 991px) {
  .home-loan-rates-container {
    padding: 40px 30px 35px;
    border-radius: 24px;
  }
  .home-loan-rates-heading {
    font-size: 28px;
  }
  .interest-rate-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .interest-rate-header .header-search {
    width: 100%;
  }
  .home-loan-rates-subtitle {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding-left: 10px;
  }
  .bank-cards-row {
    padding: 0 20px;
  }
  .bank-cards-row .swiper-slide {
    flex: 0 0 calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
  }
}

/* ========================================
   Responsive — Mobile Landscape
   ======================================== */
@media (max-width: 767px) {
  .home-loan-rates-section {
    padding: 40px 12px;
  }
  .home-loan-rates-container {
    padding: 28px 14px 28px;
    border-radius: 20px;
  }
  .home-loan-rates-heading {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .home-loan-rates-subtitle {
    gap: 10px;
    margin-bottom: 24px;
  }
  .home-loan-rates-subtitle .feature-point {
    font-size: 12.5px;
    gap: 8px;
  }
  .home-loan-rates-subtitle .feature-point .check-icon {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .interest-rate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .interest-rate-header .left-section h3 {
    font-size: 16px;
  }
  .interest-rate-header .header-search {
    width: 100%;
    padding: 9px 16px;
  }
  .bank-cards-row {
    padding: 0 6px;
    margin-bottom: 16px;
  }
  .bank-cards-row .swiper-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .bank-cards-row .swiper-wrapper {
    gap: 12px;
  }
  .bank-card {
    padding: 16px 14px 14px;
    min-height: auto;
    border-radius: 10px;
  }
  .bank-card .card-top {
    margin-bottom: 12px;
  }
  .bank-card .bank-logo {
    width: 24px;
    height: 24px;
  }
  .bank-card .bank-name {
    font-size: 13.5px;
  }
  .bank-card .rate-item .rate-label {
    font-size: 11px;
  }
  .bank-card .rate-item .rate-value {
    font-size: 15px;
  }
  .bank-cards-row .row-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .bank-cards-row .row-nav-prev {
    left: -2px;
  }
  .bank-cards-row .row-nav-next {
    right: -2px;
  }
  .cta-button {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* ========================================
   Responsive — Mobile Portrait
   ======================================== */
@media (max-width: 480px) {
  .home-loan-rates-section {
    padding: 28px 8px;
  }
  .home-loan-rates-container {
    padding: 22px 12px 22px;
    border-radius: 16px;
  }
  .home-loan-rates-heading {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .home-loan-rates-subtitle .feature-point {
    font-size: 11.5px;
  }
  .interest-rate-header .left-section h3 {
    font-size: 15px;
  }
  .live-badge {
    font-size: 9px;
    padding: 4px 9px;
  }
  .bank-cards-row .row-nav-btn {
    display: none;
  }
  .bank-card {
    padding: 12px 12px 10px;
  }
  .bank-card .bank-logo {
    width: 20px;
    height: 20px;
  }
  .bank-card .bank-name {
    font-size: 12.5px;
  }
  .bank-card .rate-item .rate-label {
    font-size: 10px;
  }
  .bank-card .rate-item .rate-value {
    font-size: 14px;
  }
  .cta-button {
    padding: 12px 24px;
    font-size: 13px;
    width: 100%;
  }
}

/* ========================================
   Responsive — Very Small (320px)
   ======================================== */
@media (max-width: 360px) {
  .home-loan-rates-container {
    padding: 18px 10px 18px;
  }
  .home-loan-rates-heading {
    font-size: 16px;
  }
  .home-loan-rates-subtitle .feature-point {
    font-size: 11px;
  }
  .bank-card .bank-name {
    font-size: 12px;
  }
  .bank-card .rate-item .rate-value {
    font-size: 13px;
  }
}

/* ========================================
   Bank Rates Modal
   ======================================== */
.bank-rates-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bank-rates-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.bank-rates-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 2;
  line-height: 1;
}

.modal-close-btn:hover {
  background: #f1f1f1;
  color: #292075;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #292075;
  padding: 28px 30px 0;
  margin: 0;
}

.modal-search-box {
  display: flex;
  align-items: center;
  margin: 18px 30px 10px;
  background: #f7f8fc;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 12px 18px;
  transition: all 0.3s ease;
}

.modal-search-box:focus-within {
  border-color: #00B5EF;
  box-shadow: 0 0 0 3px rgba(0, 181, 239, 0.15);
}

.modal-search-icon {
  color: #00B5EF;
  font-size: 15px;
  margin-right: 12px;
}

.modal-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #333;
  width: 100%;
}

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

/* Modal Bank List */
.modal-bank-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 30px 10px;
}

.modal-bank-list::-webkit-scrollbar {
  width: 6px;
}

.modal-bank-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-bank-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.modal-bank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid #eaeef3;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.modal-bank-item:hover {
  border-color: #00B5EF;
  box-shadow: 0 4px 12px rgba(41, 32, 117, 0.06);
}

.modal-bank-item:last-child {
  margin-bottom: 0;
}

.modal-bank-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-bank-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f7f8fc;
}

.modal-bank-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-bank-name {
  font-size: 15px;
  font-weight: 600;
  color: #292075;
}

.modal-bank-rates {
  display: flex;
  gap: 28px;
}

.modal-rate-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
}

.modal-rate-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.modal-rate-value {
  font-size: 16px;
  font-weight: 700;
  color: #292075;
}

/* Modal CTA */
.modal-cta {
  padding: 16px 30px 28px;
}

.modal-cta-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #292075;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 32px;
  border: 1px solid #292075;
  text-decoration: none;
  transition: all 0.35s ease-in-out;
}

.modal-cta-button:hover {
  background: #fff;
  color: #292075;
  box-shadow: 0 8px 25px rgba(41, 32, 117, 0.2);
}

/* Modal Responsive */
@media (max-width: 575px) {
  .bank-rates-modal {
    max-height: 90vh;
    border-radius: 16px;
  }
  .modal-title {
    font-size: 18px;
    padding: 22px 20px 0;
  }
  .modal-search-box {
    margin: 14px 20px 10px;
    padding: 10px 14px;
  }
  .modal-bank-list {
    padding: 8px 20px 10px;
  }
  .modal-bank-item {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .modal-bank-rates {
    width: 100%;
    justify-content: flex-end;
    gap: 24px;
  }
  .modal-cta {
    padding: 12px 20px 22px;
  }
  .modal-cta-button {
    font-size: 14px;
    padding: 14px 20px;
  }
}
