.hero {
  padding: 157px 16px 60px 120px; /* Added header height (97px) + original top padding (60px) to left padding to center better */
  background: linear-gradient(135deg, #deeded 100%, #ffffff 50%, #deeeed 100%);
  margin-top: 0; /* Ensure no extra margin */
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.hero-text h2 {
  font-size: 32px;
  color: #0c113e;
  font-weight: bold;
  line-height: 1.2;
}

.hero-text h2 span {
  color: #39897d;
  display: block;
}

.hero-text p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.75;
  margin-top: 16px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.btn {
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #39897d;
  color: white;
}

.btn-outline {
  background: none;
  border: 2px solid #39897d;
  color: #39897d;
}

.btn-outline:hover {
  background-color: #39897d;
  color: white;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #4b5563;
}

.feature-item i {
  width: 24px;
  height: 24px;
  color: #39897d;
}

.hero-dashboard {
  position: relative;
  max-width: 416px; /* Limit the size of the dashboard/image */
  align-self: start; /* Align with the top of the text content */
  margin-left: 40px; /* Move more to the right */
  margin-top: 30px; /* Move more downwards */
}

.dashboard-image {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Center shadow */
  border-radius: 12px; /* Match the image border-radius */
}

.dashboard {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0c113e;
  font-size: 20px;
  font-weight: 700;
}

.dashboard-stats {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.stat {
  background: #deeded;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.stat strong {
  font-weight: 700;
}

.badge {
  position: absolute;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.badge-secure {
  top: 16px;
  right: 16px;
  background-color: rgba(12, 17, 62, 0.9);
}

.badge-support {
  bottom: 16px;
  left: 16px;
  background-color: rgba(57, 137, 125, 0.9);
}

/* === CONTACT POPUP STYLES === */
.contact-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.contact-popup-overlay.active {
  display: flex;
}

.contact-popup-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.contact-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.contact-popup-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0c113e;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #0c113e;
}

.contact-popup-content {
  padding: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.contact-item:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #deeded;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #39897d;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.contact-link {
  font-size: 18px;
  color: #0c113e !important;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.contact-link:hover {
  color: #39897d;
}

.contact-text {
  font-size: 18px;
  color: #0c113e;
  font-weight: 600;
  display: inline-block;
}

/* Remove underline from button when it's an anchor */
.btn.btn-outline {
  text-decoration: none;
}

/* === MOBILE RESPONSIVE STYLES === */

/* Tablet landscape and smaller desktops (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero {
    padding: 50px 32px 70px 32px; /* Reset left padding for tablets */
  }
  
  .hero .container {
    max-width: 1000px; /* Slightly wider to accommodate both columns */
    padding: 0 24px; /* Additional side padding */
  }
  
  /* Enable grid layout for tablets */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Text takes more space, dashboard smaller */
    gap: 32px; /* Comfortable gap between columns */
    align-items: start; /* Align items to start for better alignment */
  }
  
  .hero-text {
    max-width: 500px; /* Limit text width but allow grid positioning */
  }
  
  .hero-text h2 {
    font-size: 28px; /* Slightly smaller than desktop */
    line-height: 1.3;
  }
  
  .hero-text p {
    font-size: 17px; /* Comfortable reading size */
    line-height: 1.7;
    max-width: 450px; /* Limit paragraph width */
  }
  
  /* Adjust features layout for two-column layout */
  .hero-features {
    max-width: 480px;
    margin: 24px 0 0 0; /* Remove auto centering for grid layout */
  }
  
  .feature-item {
    font-size: 15px; /* Smaller font for tablet feature items */
  }
  
  .hero-buttons {
    justify-content: flex-start; /* Align left for grid layout */
    margin: 28px 0;
    max-width: 400px;
  }
  
  /* Show dashboard in second column - make it more compact and aligned */
  .hero-dashboard {
    max-width: 320px; /* Smaller dashboard for tablet */
    margin: 0; /* Remove auto centering for grid positioning */
    margin-top: 20px; /* Align better with text content */
    margin-left: 0; /* Reset desktop left margin */
  }
  
  .dashboard {
    padding: 20px; /* More compact padding */
    border-radius: 12px; /* Slightly smaller border radius */
  }
  
  .dashboard-header {
    font-size: 18px; /* Slightly smaller header */
    margin-bottom: 16px;
  }
  
  .dashboard-stats {
    margin-top: 20px; /* Reduced margin */
    gap: 12px; /* Smaller gaps */
  }
  
  .stat {
    padding: 12px; /* More compact stat boxes */
    font-size: 14px; /* Smaller font */
  }
  
  /* Adjust badge positions for smaller dashboard */
  .badge {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }
  
  .badge-secure {
    top: 12px;
    right: 12px;
  }
  
  .badge-support {
    bottom: 12px;
    left: 12px;
  }
}

/* Smaller tablets in portrait mode (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 0.7fr; /* Make dashboard even smaller */
    gap: 24px; /* Smaller gap for tighter spaces */
  }
  
  .hero-dashboard {
    max-width: 280px; /* Even more compact for smaller tablets */
  }
  
  .dashboard {
    padding: 16px; /* More compact padding */
  }
  
  .dashboard-header {
    font-size: 16px; /* Smaller header text */
  }
  
  .stat {
    padding: 10px; /* More compact stats */
    font-size: 13px; /* Smaller font */
  }
}

/* Tablet and smaller desktop adjustments (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .hero {
    padding: 50px 24px 60px 24px; /* Reset left padding for tablets */
  }
  
  .hero .container {
    max-width: 900px; /* Wider container for better use of space */
    padding: 0 20px;
  }
  
  /* Enable grid layout for tablets - keep dashboard visible */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.75fr; /* Text takes more space */
    gap: 28px; /* Comfortable gap */
    align-items: start; /* Align items to start for better alignment */
  }
  
  .hero-text {
    max-width: 480px; /* Wider text for better readability */
  }
  
  .hero-text h2 {
    font-size: 26px;
    line-height: 1.3;
    max-width: 450px; /* Consistent with other headers */
  }
  
  .hero-text p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 450px; /* Consistent text width */
  }
  
  .hero-features {
    max-width: 420px;
    margin: 24px 0 0 0;
  }
  
  .feature-item {
    font-size: 14px; /* Smaller font for smaller tablet feature items */
  }
  
  .hero-buttons {
    justify-content: flex-start;
    margin: 28px 0;
    max-width: 400px;
  }
  
  /* Show compact dashboard */
  .hero-dashboard {
    max-width: 280px;
    margin: 0; /* Reset desktop margins */
    margin-top: 20px; /* Better alignment with text */
    margin-left: 0; /* Reset desktop left margin */
  }
  
  .dashboard {
    padding: 18px;
    border-radius: 12px;
  }
  
  .dashboard-header {
    font-size: 16px;
    margin-bottom: 14px;
  }
  
  .dashboard-stats {
    margin-top: 18px;
    gap: 10px;
  }
  
  .stat {
    padding: 10px;
    font-size: 13px;
  }
  
  .badge {
    padding: 5px 8px;
    font-size: 10px;
    gap: 3px;
  }
  
  .badge-secure {
    top: 8px;
    right: 8px;
  }
  
  .badge-support {
    bottom: 8px;
    left: 8px;
  }
}

/* Phone adjustments (max-width: 640px) */
@media (max-width: 640px) {
/* Phone adjustments (max-width: 640px) */
@media (max-width: 640px) {
  .hero {
    padding: 137px 16px 20px 16px; /* Reset left padding but keep header clearance (97px + 40px) */
    margin-top: 0;
  }
  
  /* Hide the financial dashboard on phones to reduce scrolling */
  .hero-dashboard {
    display: none;
  }
  
  /* Adjust hero text for phones with wider text width */
  .hero-text {
    text-align: center;
    max-width: 450px; /* Wider text - consistent with other sections */
    margin: 0 auto; /* Center the text block */
  }
  
  .hero-text h2 {
    max-width: 450px; /* Consistent with other headers across site */
    margin: 0 auto 16px auto; /* Center and add bottom margin */
  }
  
  .hero-text p {
    max-width: 450px; /* Consistent text width across site */
    margin: 16px auto; /* Center the paragraph */
  }
  
  /* Make features single column on phones */
  .hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px; /* Wider features list */
    margin: 24px auto 0; /* Center with more top margin */
    padding-top: 24px;
  }
  
  /* Adjust button styling for phones */
  .hero-buttons {
    justify-content: center;
    margin: 24px auto; /* Center buttons */
    max-width: 400px; /* Wider button container */
  }
  
  .btn {
    min-width: 180px;
    text-align: center;
  }
}
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 35px 12px 15px 12px; /* Reduced bottom padding to show more of next section */
  }
  
  .hero-text {
    max-width: 400px; /* Still wider than before but manageable */
  }
  
  .hero-text h2 {
    max-width: 400px; /* Consistent with other headers */
  }
  
  .hero-text p {
    max-width: 400px; /* Consistent text width */
  }
  
  .hero-features {
    max-width: 380px; /* Wider features for small screens */
    gap: 12px;
  }
  
  .hero-buttons {
    max-width: 380px; /* Adjust button container */
  }
  
  .feature-item {
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 24px;
    font-size: 16px;
    min-width: 160px;
  }
}
