/* ====================================
   Shared Styles for Personal Banking Pages
   (Checking, Savings, eServices)
   ==================================== */

/* Hero Section - Consistent for all pages */
.personal-hero {
  background: linear-gradient(135deg, hsl(var(--base) / 0.1) 0%, hsl(var(--base) / 0.05) 100%);
  color: #1a2b3c;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.personal-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: hsl(var(--base) / 0.03);
  border-radius: 50%;
  z-index: 0;
}

.personal-hero .container {
  position: relative;
  z-index: 1;
  margin-top: 100px; /* This fixes the menu overlap issue */
  padding-top: 80px;
  padding-bottom: 80px;
}

.personal-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #1a2b3c;
}

.personal-hero .lead {
  font-size: 20px;
  max-width: 600px;
  margin-bottom: 30px;
  color: #4a5568;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-item .number {
  font-size: 32px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  color: hsl(var(--base));
}

.hero-stat-item .label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

/* Card Grids */
.card-grid {
  display: grid;
  gap: 25px;
  margin: 50px 0;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Base Card Styles */
.base-card {
  background: white;
  border-radius: 24px;
  padding: 30px 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--base) / 0.1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.base-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--base));
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 20px;
  background: hsl(var(--base));
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: hsl(var(--base) / 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.card-icon-large {
  width: 80px;
  height: 80px;
  background: hsl(var(--base) / 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: hsl(var(--base) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.card-icon i,
.card-icon-large i,
.service-icon i {
  color: hsl(var(--base));
}

.card-icon i {
  font-size: 35px;
}

.card-icon-large i {
  font-size: 40px;
}

.service-icon i {
  font-size: 40px;
}

.base-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 15px;
  text-align: center;
}

.base-card .fee,
.base-card .rate,
.service-card .fee,
.service-card .rate {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

.base-card .fee strong,
.base-card .rate strong,
.service-card .fee strong,
.service-card .rate strong {
  font-size: 28px;
  color: #1a2b3c;
  margin-right: 5px;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #4a5568;
  font-size: 14px;
  border-bottom: 1px dashed hsl(var(--base) / 0.05);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: hsl(var(--base));
  font-size: 14px;
  width: 18px;
}

.feature-list-savings {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  flex-grow: 1;
}

.feature-list-savings li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #4a5568;
  font-size: 15px;
  border-bottom: 1px dashed hsl(var(--base) / 0.05);
}

.feature-list-savings li:last-child {
  border-bottom: none;
}

.feature-list-savings li i {
  color: hsl(var(--base));
  font-size: 16px;
  width: 20px;
}

/* Buttons */
.btn-card {
  background: white;
  color: hsl(var(--base));
  border: 2px solid hsl(var(--base));
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.btn-card:hover {
  background: hsl(var(--base));
  color: white;
}

.btn-card-primary {
  background: hsl(var(--base));
  color: white;
  border: 2px solid hsl(var(--base));
}

.btn-card-primary:hover {
  background: transparent;
  color: hsl(var(--base));
}

.btn-savings {
  background: white;
  color: hsl(var(--base));
  border: 2px solid hsl(var(--base));
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.btn-savings:hover {
  background: hsl(var(--base));
  color: white;
}

.btn-savings-primary {
  background: hsl(var(--base));
  color: white;
  border: 2px solid hsl(var(--base));
}

.btn-savings-primary:hover {
  background: transparent;
  color: hsl(var(--base));
}

.service-link {
  color: hsl(var(--base));
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.service-link:hover {
  gap: 12px;
  color: #1a2b3c;
}

/* Comparison Tables */
.comparison-wrapper {
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  margin: 60px 0;
}

.comparison-wrapper-savings {
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  margin: 60px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table-savings {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th,
.comparison-table-savings th {
  background: #18bf79;
  color: white;
  padding: 20px;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
}

.comparison-table td,
.comparison-table-savings td {
  padding: 16px 20px;
  border-bottom: 1px solid hsl(var(--base) / 0.1);
  color: #4a5568;
}

.comparison-table tr:last-child td,
.comparison-table-savings tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child,
.comparison-table-savings td:first-child {
  font-weight: 600;
  background: hsl(var(--base) / 0.02);
  width: 25%;
}

.comparison-table td i.fa-check,
.comparison-table-savings td i.fa-check {
  color: #28a745;
  font-size: 18px;
}

.comparison-table td i.fa-times,
.comparison-table-savings td i.fa-times {
  color: #dc3545;
  font-size: 18px;
}

/* Feature Panels */
.feature-panel {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-panel i {
  font-size: 40px;
  color: hsl(var(--base));
  margin-bottom: 20px;
}

.feature-panel h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 15px;
}

.feature-panel p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: hsl(var(--base) / 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 30px;
  color: hsl(var(--base));
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}

.feature-item p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Accordion Styles */
.accordion-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-savings {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-eservices {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

.accordion-item {
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item-savings {
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

.accordion-item-savings:last-child {
  border-bottom: none;
}

.accordion-item-eservices {
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

.accordion-item-eservices:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1a2b3c;
  transition: all 0.3s ease;
  background: white;
}

.accordion-header-savings {
  padding: 22px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: #1a2b3c;
  transition: all 0.3s ease;
  background: white;
}

.accordion-header-eservices {
  padding: 22px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: #1a2b3c;
  transition: all 0.3s ease;
  background: white;
}

.accordion-header:hover,
.accordion-header-savings:hover,
.accordion-header-eservices:hover {
  background: hsl(var(--base) / 0.02);
  color: hsl(var(--base));
}

.accordion-header i,
.accordion-header-savings i,
.accordion-header-eservices i {
  transition: transform 0.3s ease;
  color: hsl(var(--base));
}

.accordion-header.active i,
.accordion-header-savings.active i,
.accordion-header-eservices.active i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 25px 25px;
  color: #6c757d;
  line-height: 1.7;
  display: none;
}

.accordion-content.show {
  display: block;
}

.accordion-content-savings {
  padding: 0 25px 25px;
  color: #6c757d;
  line-height: 1.7;
  display: none;
}

.accordion-content-savings.show {
  display: block;
}

.accordion-content-eservices {
  padding: 0 25px 25px;
  color: #6c757d;
  line-height: 1.7;
  display: none;
}

.accordion-content-eservices.show {
  display: block;
}

.accordion-content h4,
.accordion-content-savings h4,
.accordion-content-eservices h4 {
  color: #1a2b3c;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.accordion-content h4:first-child,
.accordion-content-savings h4:first-child,
.accordion-content-eservices h4:first-child {
  margin-top: 0;
}

.accordion-content ul,
.accordion-content ol,
.accordion-content-savings ul,
.accordion-content-savings ol,
.accordion-content-eservices ul,
.accordion-content-eservices ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.accordion-content li,
.accordion-content-savings li,
.accordion-content-eservices li {
  margin-bottom: 8px;
}

/* Rate Tables */
.rate-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.rate-table th {
  background: hsl(var(--base) / 0.1);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #1a2b3c;
}

.rate-table td {
  padding: 10px 12px;
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

/* App Showcase */
.app-showcase {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 30px;
  padding: 60px;
  margin: 60px 0;
}

.app-badges {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.app-badge {
  display: inline-block;
  transition: transform 0.3s ease;
}

.app-badge:hover {
  transform: translateY(-5px);
}

.app-badge img {
  height: 50px;
  width: auto;
}

.app-features-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}

.app-features-list li {
  padding: 12px 0;
  border-bottom: 1px solid hsl(var(--base) / 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  color: #4a5568;
}

.app-features-list li:last-child {
  border-bottom: none;
}

.app-features-list li i {
  color: hsl(var(--base));
  font-size: 20px;
  width: 25px;
}

/* Youth Savings */
.youth-savings {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 30px;
  padding: 50px;
  margin: 60px 0;
}

.youth-icon {
  width: 100px;
  height: 100px;
  background: hsl(var(--base));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.youth-icon i {
  font-size: 50px;
  color: white;
}

/* Security Section */
.security-section {
  background: white;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  margin: 60px 0;
}

.security-badge-item {
  text-align: center;
  padding: 20px;
}

.security-badge-item i {
  font-size: 40px;
  color: hsl(var(--base));
  margin-bottom: 15px;
}

.security-badge-item h5 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}

.security-badge-item p {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base) / 0.8) 100%);
  border-radius: 30px;
  padding: 60px;
  color: white;
  text-align: center;
  margin: 60px 0;
}

.cta-banner-savings {
  background: #18bf79;
  border-radius: 30px;
  padding: 60px;
  color: white;
  text-align: center;
  margin: 60px 0;
}

.cta-banner-eservices {
  background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base) / 0.8) 100%);
  border-radius: 30px;
  padding: 60px;
  color: white;
  text-align: center;
  margin: 60px 0;
}

.cta-banner h2,
.cta-banner-savings h2,
.cta-banner-eservices h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-banner p,
.cta-banner-savings p,
.cta-banner-eservices p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn-cta {
  background: white;
  color: hsl(var(--base));
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
  margin: 0 10px;
}

.btn-cta:hover {
  background: transparent;
  color: white;
}

.btn-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-cta-outline:hover {
  background: white;
  color: hsl(var(--base));
}

.btn-cta-savings {
  background: white;
  color: #1a2b3c;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
  margin: 0 10px;
}

.btn-cta-savings:hover {
  background: transparent;
  color: white;
}

.btn-cta-savings-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-cta-savings-outline:hover {
  background: white;
  color: #1a2b3c;
}

.btn-cta-eservices {
  background: white;
  color: hsl(var(--base));
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
  margin: 0 10px;
}

.btn-cta-eservices:hover {
  background: transparent;
  color: white;
}

.btn-cta-eservices-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-cta-eservices-outline:hover {
  background: white;
  color: hsl(var(--base));
}

/* Services Grid (for eservices page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 50px 0;
}

.service-card {
  background: white;
  border-radius: 24px;
  padding: 35px 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--base) / 0.1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--base));
}

.service-card p {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive */
@media (max-width: 1200px) {
  .card-grid-4,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid-3,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .personal-hero .container {
    margin-top: 80px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .personal-hero .container {
    margin-top: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .personal-hero h1 {
    font-size: 36px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .card-grid-4,
  .card-grid-3,
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .app-showcase {
    padding: 30px 20px;
  }
  
  .app-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .youth-savings {
    padding: 30px 20px;
  }
  
  .security-section {
    padding: 30px 20px;
  }
  
  .cta-banner,
  .cta-banner-savings,
  .cta-banner-eservices {
    padding: 40px 20px;
  }
  
  .cta-banner h2,
  .cta-banner-savings h2,
  .cta-banner-eservices h2 {
    font-size: 28px;
  }
  
  .btn-cta,
  .btn-cta-savings,
  .btn-cta-eservices {
    display: block;
    margin: 10px 0;
  }
  
  .accordion-header,
  .accordion-header-savings,
  .accordion-header-eservices {
    font-size: 16px;
    padding: 18px 20px;
  }
}