/* Business Hero Section */
.business-hero-background {
  position: absolute;
  top: 0rem;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/background/sterra_bg_8.jpg") no-repeat center
    center/cover;
  z-index: -1;
  /* opacity: 0.5; */
  background-attachment: fixed;
}

.business-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.business-hero .container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.business-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #212529;
}

.business-hero .highlight {
  color: #0056b3;
  position: relative;
}

.business-hero .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 86, 179, 0.2);
  z-index: -1;
  border-radius: 50px;
}

.business-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #495057;
  margin-bottom: 2rem;
  max-width: 500px;
}

.business-hero .hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

/* Business Features */
.business-features {
  padding: 4rem 0;
  background-color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #0056b3;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

/* Account Options */
.account-options {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.account-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background-color: #0056b3;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.account-card {
  background: transparent;
  perspective: 1000px;
  min-height: 530px; /* Adjusted for better content fit */
}

.account-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.account-card.flipped .account-card-inner {
  transform: rotateY(180deg);
}

.account-card-front,
.account-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: white;
  border-radius: 12px;
  overflow: auto; /* Changed to auto for scroll if needed */
  border: 1px solid #e9ecef;
  padding-bottom: 1rem; /* Added padding */
}

.account-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

/* Adjust content sizing */
.account-header {
  padding: 1.5rem;
  background-color: #e6f0ff;
  text-align: center;
}

.account-header i {
  font-size: 2rem; /* Reduced from 2.5rem */
  color: #0056b3;
  margin-bottom: 0.75rem; /* Reduced spacing */
}

.account-header h3 {
  font-size: 1.25rem; /* Reduced from 1.5rem */
  margin-bottom: 0.5rem;
}

.account-body {
  padding: 1rem; /* Reduced from 1.5rem */
}

.account-features li {
  padding: 0.4rem 0; /* Reduced padding */
  font-size: 0.9rem; /* Added font-size */
}

.account-rate {
  margin: 1rem 0; /* Reduced margin */
}

.rate {
  font-size: 1.5rem; /* Reduced from 2rem */
}

/* Back card adjustments */
.back-content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.back-content h4 {
  font-size: 1.1rem; /* Adjusted */
  margin-bottom: 0.75rem;
}

.back-content ul {
  margin-bottom: 1rem;
}

.back-content li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.account-footer {
  padding: 1rem;
  margin-top: auto; /* Pushes footer to bottom */
}

/* Mobile styles */
@media (max-width: 768px) {
  .account-card {
    min-height: auto;
    perspective: none;
  }

  .account-card-inner {
    min-height: 400px;
  }

  .account-card-front,
  .account-card-back {
    position: relative;
    transform: none;
    backface-visibility: visible;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .account-card.flipped .account-card-front {
    display: none;
  }

  .account-card:not(.flipped) .account-card-back {
    display: none;
  }
}

@media (max-width: 576px) {
  .account-cards {
    grid-template-columns: 1fr;
  }

  .account-card-inner {
    min-height: 380px;
  }

  .account-header {
    padding: 1rem;
  }

  .account-body {
    padding: 0.75rem;
  }

  .back-content {
    padding: 1rem;
  }
}

/* Business Tools */
.business-tools {
  padding: 5rem 0;
  background-color: #fff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-icon {
  width: 60px;
  height: 60px;
  background-color: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #0056b3;
  font-size: 1.5rem;
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

.btn-text {
  background: none;
  border: none;
  color: #0056b3;
  font-weight: 600;
  padding: 0;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Testimonials */
.business-testimonials {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial.active {
  display: block;
}

.rating {
  color: #ffc107;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #495057;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: #e9ecef;
  position: absolute;
  line-height: 1;
}

.testimonial-text::before {
  top: -1rem;
  left: -1.5rem;
}

.testimonial-text::after {
  bottom: -2rem;
  right: -1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background-color: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #0056b3;
  font-weight: 600;
  font-size: 1.25rem;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  color: #212529;
}

.author-info p {
  color: #6c757d;
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.slider-prev,
.slider-next {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  color: #0056b3;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #0056b3;
  transform: scale(1.2);
}

/* CTA Section */
.business-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  color: white;
  text-align: center;
}

.business-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.business-cta p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .business-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .business-hero .hero-content {
    margin-bottom: 3rem;
  }

  .business-hero .hero-cta {
    justify-content: center;
  }

  .account-footer {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .business-hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .business-hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .account-tabs {
    flex-wrap: wrap;
  }
}
