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

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

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

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

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

.personal-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;
}

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

.personal-hero .hero-image {
  position: relative;
  width: 50%;
  height: 400px;
  background: url("../assets/images/personal-banking-hero.png") no-repeat center
    center/contain;
}

/* Personal Features */
.personal-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;
}

.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;
  border: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

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

.account-header {
  padding: 1.5rem;
  background-color: #e6f0ff;
  text-align: center;
}

.account-header i {
  font-size: 2rem;
  color: #0056b3;
  margin-bottom: 0.75rem;
}

.account-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.account-body {
  padding: 1rem;
}

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

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

.rate {
  font-size: 1.5rem;
}

.back-content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.back-content h4 {
  font-size: 1.1rem;
  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;
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: -10px;
  background-color: #ffc107;
  color: #212529;
  padding: 0.25rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Digital Banking */
.digital-banking {
  padding: 5rem 0;
  background-color: #fff;
}

.digital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.digital-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #212529;
}

.digital-content p {
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 2rem;
}

.digital-features {
  margin-bottom: 2rem;
}

.digital-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.digital-features i {
  color: #0056b3;
}

.app-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.app-badge {
  display: inline-block;
  height: 50px;
}

.app-badge img {
  height: 100%;
  width: auto;
}

.digital-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.personal-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 */
.personal-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  color: white;
  text-align: center;
}

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

.personal-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) {
  .personal-hero .container {
    flex-direction: column;
    text-align: center;
  }

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

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

  .personal-hero .hero-image {
    width: 100%;
    height: 300px;
  }

  .digital-grid {
    grid-template-columns: 1fr;
  }

  .digital-image {
    order: -1;
    margin-bottom: 2rem;
  }
}

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

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

  .digital-content h2 {
    font-size: 1.75rem;
  }

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

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

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

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

  .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;
  }
}
