/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Cash Slider Custom Styles */
.cash-slider {
  display: flex;
  gap: 32px;
  padding: 24px 0;
}

/* Swiper slide width - Desktop uses slidesPerView: 3, no need for width */
/* Mobile/Tablet uses slidesPerView: 'auto', needs width for peek effect */

/* Card Design Update for Cash Slider */
.cash-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  min-width: unset;
  max-width: unset;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cash-card-top {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cash-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cash-card-content {
  padding: 24px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cash-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #222;
}
.cash-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}
.cash-info {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cash-info-label {
  color: #888;
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.cash-info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}
.cash-card-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.cash-btn-primary {
  flex: 1;
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(25,118,210,0.10);
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center;
}
.cash-btn-primary:hover {
  background: #1565c0;
  box-shadow: 0 4px 16px rgba(25,118,210,0.18);
}
.cash-btn-secondary {
  flex: 1;
  background: #F6F6F6;
  color: #38707B;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  text-align: center;
}
.cash-btn-secondary:hover {
  background: #e8e8e8;
  color: #38707B;
}
.cash-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.cash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cash-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 12px;
  text-align: center;
}
.cash-desc {
  font-size: 1rem;
  color: #555;
  text-align: center;
  margin-bottom: 20px;
}
.cash-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
  color: #222;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,179,71,0.15);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.cash-btn:hover {
  background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
  box-shadow: 0 4px 16px rgba(255,179,71,0.25);
}

.card-content{
  padding: 30px;
}

.card-content-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-content-top{
  margin-bottom: 20px;
}

.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0C6D4C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  top: 35%; /* Đưa lên cao hơn */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #095a3e;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}

/* Ẩn nút nếu bị disable */
.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* Container cho slider với custom button */
.cash-slider-container,
.posts-slider-container {
  position: relative;
  overflow: visible;
}

.cash-slider-container .cash-slider,
.posts-slider-container .posts-slider {
  overflow: hidden;
}

/* Đảm bảo wrapper không cắt button */
.cash-wrapper {
  overflow: visible;
}

/* Custom navigation buttons - đè lên mép slide */
.cash-prev,
.cash-next,
.posts-prev,
.posts-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.cash-prev,
.posts-prev {
  left: -30px;
}

.cash-next,
.posts-next {
  right: -30px;
}

/* Fallback cho button trong slider */
.swiper-button-prev:not(.cash-prev):not(.posts-prev) {
  left: 10px;
}
.swiper-button-next:not(.cash-next):not(.posts-next) {
  right: 10px;
}

.rating{
  display: flex;
  align-items: center;
}
.rating .icon {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}
/*HOME CSS */
@media (max-width: 768px) {
  .break-mobile {
    display: block;
    margin-top: 10px;
  }
}
/* Cash Products CSS moved to /css/cash-products.css */
/* Estimate Loan CSS moved to /css/estimate-loan.css */

/* Tablet */
@media only screen and (max-width: 1024px) {
  .cash-slider .swiper-slide,
  .posts-slider .swiper-slide {
    width: 40%; /* 2 items + peek */
  }
}

/* Mobile */
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .cash-slider .swiper-slide,
  .posts-slider .swiper-slide {
    width: calc(85%); /* 1 item + peek */
  }

  .cash-slider {
    gap: 16px;
    padding: 16px 0;
  }
  .cash-card {
    min-width: unset;
    max-width: unset;
  }
  .cash-card-top {
    height: 120px;
  }
  .cash-card-content {
    padding: 16px 8px 12px 8px;
  }
}