/*
* =================================================================================
* PAYCASHX - MAIN STYLESHEET
* =================================================================================
*
* TABLE OF CONTENTS:
*
* 1.  ROOT & THEME VARIABLES
* 2.  GLOBAL & BODY STYLES
* 3.  NAVIGATION BAR
* 4.  BUTTONS & LINKS
* 5.  HERO SECTION (#home)
* 6.  ABOUT SECTION (#about)
* 7.  SOLUTIONS & STATS SECTION (#solutions)
* 8.  ROBUST SOLUTIONS SECTION
* 9.  SEAMLESS CONNECTIVITY SECTION
* 10. TEAM SECTION (#team)
* 11. FAQ SECTION (#faq)
* 12. CONTACT & MAP SECTION (#contact)
* 13. FINAL CTA SECTION (#final-cta)
* 14. FOOTER
* 15. LOGIN PAGE
* 16. MEDIA QUERIES (RESPONSIVE DESIGN)
*
* =================================================================================
*/

/* =================================================================================
   1. ROOT & THEME VARIABLES
   ================================================================================= */
 :root {
  --primary-color: #7b6dff;
  --primary-dark: #5a4ae0;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.15);
  --border-color: #ddd;
  
  /* Background color from screenshots (light beige/off-white) */
  --bg-custom-light: #f8f7f3;
  --grid-color: rgba(0, 0, 0, 0.05);
  
  --hero-gradient-start: var(--bg-custom-light);
  --hero-gradient-end: var(--bg-custom-light);

  --about-dark-bg: #222222;
  --solution-border: #e0e0e0;
  --icon-circle-bg: #f0f0ff;
  --icon-color: var(--primary-color);

  --team-bg: var(--bg-white);
  --team-card-shadow: rgba(0, 0, 0, 0.08);
  --team-highlight-start: rgba(230, 255, 230, 0.5);
  --team-highlight-end: rgba(255, 255, 200, 0.5);

  --faq-bg: var(--bg-custom-light);
  --faq-card-shadow: rgba(123, 109, 255, 0.1);

  --final-cta-bg: var(--bg-white);

  /* NEW: Footer styles */
  --footer-bg: var(--bg-white);
  --footer-border: var(--border-color);
}

[data-theme="dark"] {
  --text-dark: #e4e4e7;
  --text-muted: #d4d4d8; /* Made this brighter for better contrast */
  --bg-light: #18181b;
  --bg-white: #27272a;
  --card-bg: #27272a;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --border-color: #3f3f46;
  --bg-custom-light: #18181b;
  --grid-color: rgba(255, 255, 255, 0.08);
  --hero-gradient-start: var(--bg-custom-light);
  --hero-gradient-end: var(--bg-custom-light);
  --about-dark-bg: #111111;
  --solution-border: #3f3f46;
  --icon-circle-bg: #3c3c54;
  --team-bg: var(--bg-white);
  --team-card-shadow: rgba(255, 255, 255, 0.05);
  --team-highlight-start: rgba(50, 60, 50, 0.5);
  --team-highlight-end: rgba(60, 60, 40, 0.5);
  --faq-bg: var(--bg-custom-light);
  --faq-card-shadow: rgba(123, 109, 255, 0.2);
  --final-cta-bg: var(--bg-white);
  --footer-bg: var(--bg-white);
  --footer-border: var(--border-color);

  /* Make all muted text brighter and more readable in dark mode */
  .text-muted {
    color: var(--text-muted) !important;
  }

  /* Make feature check text brighter in dark mode for better contrast */
  .robust-solutions .feature-check {
    color: var(--text-dark);
  }

  /* Make SVG arrowhead brighter in dark mode */
  #arrowhead polygon {
    fill: var(--text-muted);
  }
}

/* =================================================================================
   2. GLOBAL & BODY STYLES
   ================================================================================= */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  background-color: var(--bg-white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add top padding for in-page links to account for sticky header */
html {
  scroll-padding-top: 100px; /* Adjust this value if header height changes */
  scroll-behavior: smooth;
}

/* =================================================================================
   3. NAVIGATION BAR
   ================================================================================= */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  /* Make navbar transparent by default */
  background-color: transparent !important;
}

/* This class will be added on scroll */
.navbar.scrolled {
    background-color: var(--bg-custom-light) !important;
    box-shadow: 0 2px 10px var(--shadow-color);
}
.bg-custom-light {
    background-color: var(--bg-custom-light) !important;
}

.navbar-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text-dark);
  background-clip: unset;
  color: var(--text-dark);
}
.navbar-brand i {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo-image {
    height: 35px; /* Adjust height as needed */
    width: auto;
}

/* In dark mode, the logo image might be hard to see if it's dark.
   This filter inverts the color to make it visible. */
[data-theme="dark"] .logo-image {
    filter: invert(1) brightness(1.5);
}

.navbar-nav {
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0 0.5rem;
    background-color: var(--bg-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  transition: color 0.3s ease;
  border-radius: 50px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--bg-light);
}

/* =================================================================================
   4. BUTTONS & LINKS
   ================================================================================= */

.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border-radius: 50px;
  margin-left: 1rem !important;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(123, 109, 255, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

/* =================================================================================
   5. HERO SECTION (#home)
   ================================================================================= */
.hero-section {
  padding: 80px 0;
  background-color: var(--bg-custom-light);
  background-image: radial-gradient(var(--grid-color) 1px, transparent 1px),
                    radial-gradient(var(--grid-color) 1px, var(--bg-custom-light) 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.hero-preheader {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-heading {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900 !important;
    color: var(--text-dark);
}

.paycashx-outline {
    color: transparent; 
    -webkit-text-fill-color: transparent; 
    -webkit-text-stroke-width: 2.5px; 
    -webkit-text-stroke-color: var(--text-dark); 
    display: inline-block;
    border: 2.5px solid var(--text-dark);
    border-radius: 50px; 
    line-height: 1.2;
    padding: 0 15px;
    margin: 0.5rem 0;
    font-style: italic;
}

.hero-text-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}
.hero-cta-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    background: var(--primary-color);
    box-shadow: 0 8px 15px rgba(123, 109, 255, 0.4);
}
.hero-cta-btn:hover {
    background: var(--primary-dark);
}

.hero-image-container {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}
.hero-image-container img {
    height: 100%;
    object-fit: cover;
    /* margin-top: auto; This is no longer needed */
}

/* NEW: Add transition for hero text content */
.hero-text-content {
    transition: opacity 0.4s ease-in-out;
}

.hero-text-content.fade-out {
    opacity: 0;
}

/* NEW: Carousel Progress Bar Styles */
.carousel-progress-container {
    display: flex;
    gap: 8px;
    padding: 5px;
    margin-top: -40px; /* Pull it up slightly to reduce empty space */
    position: relative; /* To ensure it's above the section background */
    z-index: 10;
}

.carousel-progress-bar {
    width: 80px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-progress-bar:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-progress-bar .progress-fill {
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transform: scaleX(0); /* Start with no fill */
    transform-origin: left;
}

/* When a slide is active, its progress bar fill will animate */
.carousel-progress-bar.active .progress-fill {
    transform: scaleX(1);
    /* The transition duration should match the carousel interval */
    transition: transform 6s linear; 
}

/* =================================================================================
   6. ABOUT SECTION (#about)
   ================================================================================= */
#about {
    background-color: var(--bg-light) !important; 
}
.about-image-col {
    background-color: var(--about-dark-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding: 2rem;
}
.about-image-col img {
    border-radius: 10px;
    max-height: 450px;
    width: 100%;
    object-fit: cover;
}
.about-preheader {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.about-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.about-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.about-feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}
.about-heading + .text-muted,
.about-heading + .text-muted + .text-muted {
    text-align: justify;
}


/* =================================================================================
   7. SOLUTIONS & STATS SECTION (#solutions)
   ================================================================================= */
#solutions {
    background-color: var(--bg-custom-light) !important;
}

.solutions-preheader {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.solutions-heading {
    font-weight: 800;
    font-size: 2.5rem;
}

.solution-card {
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 3px dashed var(--solution-border) !important;
    opacity: 0;
    transform: translateY(30px);
}

.solution-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.solution-icon-box {
    width: 100px;
    height: 100px;
    background-color: var(--bg-custom-light);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 3px solid var(--solution-border);
    position: relative;
}

.solution-icon-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.solution-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
}
.solution-card .card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: justify;
}

.stats-bar {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
    padding: 2.5rem 0;
}
.stat-item {
    text-align: center;
    border-right: 1px solid var(--solution-border);
}
.stat-item:last-child {
    border-right: none;
}
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.stat-item p {
    font-weight: 600;
    color: var(--text-dark);
}

/* =================================================================================
   8. ROBUST SOLUTIONS SECTION
   ================================================================================= */
.robust-solutions {
    padding: 5rem 0;
    background-color: var(--bg-white);
    text-align: center;
}
.robust-solutions .text-content {
    text-align: center;
}
.robust-solutions .feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.robust-solutions .feature-check i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}


/* =================================================================================
   9. SEAMLESS CONNECTIVITY SECTION
   ================================================================================= */
.seamless-connectivity {
    padding: 5rem 0;
    background-color: var(--bg-custom-light); 
    text-align: center;
}
.connectivity-header {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
}
.connectivity-heading {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

@keyframes rotateDiagram {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 0 0 10px rgba(123, 109, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(123, 109, 255, 0.2);
    }
}

/* NEW: Keyframes for the moving dash ("marching ants") effect */
@keyframes moveDashes {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 24; /* Negative value for inward flow */
    }
}

/* Pause rotation on hover */
.connectivity-diagram:hover,
.connectivity-diagram:hover .center-logo-v2,
.connectivity-diagram:hover .api-icon-v2 {
    animation-play-state: paused;
}


.center-logo-v2 span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}
.diagram-bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--border-color);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.diagram-bg-circle.inner {
    width: 220px;
    height: 220px;
}
.diagram-bg-circle.outer {
    width: 320px;
    height: 320px;
}


.api-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    color: white;
    transform: scale(1.1); /* Enlarge on hover */
}

.connectivity-diagram-v2 {
    position: relative;
    width: 600px;
    height: 300px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-bg-circle.outer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 260px;
    background: #f5f6fa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 0 40px 0 #e0e0f7;
}

.diagram-bg-circle.inner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    background: #e9eafd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 20px 0 #d1d1f3;
}

.center-logo-v2 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7a7adf;
    border: 4px solid #e9eafd;
    z-index: 3;
    box-shadow: 0 4px 24px 0 #e0e0f7;
}

.api-icon-v2 {
    position: absolute; /* Required for precise positioning */
}
/* Positioning for each icon */
.icon-left-top    { top: 30px;  left: 90px; }
.icon-left-middle { top: 120px; left: 90px; }
.icon-left-bottom { top: 210px; left: 90px; }
.icon-right-top   { top: 30px;  right: 90px; }
.icon-right-middle{ top: 120px; right: 90px; }
.icon-right-bottom{ top: 210px; right: 90px; }
.api-icon-v2 {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #7a7adf;
    box-shadow: 0 2px 12px 0 #e0e0f7;
    border: 2px dashed #e9eafd;
    margin: 0.5rem 0;
    z-index: 4;
    transition: background 0.2s, color 0.2s;
}
.api-icon-v2:hover {
    background: #f5f6fa;
    color: #5a5adf;
}

.connectivity-lines {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Make sure SVG doesn't block mouse events */
    z-index: 2;
}

/* NEW: Apply the moving dash animation to the SVG paths */
.line-path {
    animation: moveDashes 1.5s linear infinite;
}

.btn-connectivity {
    background: #7a7adf;
    color: #fff;
    border-radius: 24px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    box-shadow: 0 2px 12px 0 #e0e0f7;
    transition: background 0.2s;
}
.btn-connectivity:hover {
    background: #5a5adf;
    color: #fff;
}

/* =================================================================================
   NEW: PARTNERS LOGO SLIDER
   ================================================================================= */
.partners-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-heading {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

@keyframes infinite-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.logo-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logo-slider:hover .logo-slide-track {
    animation-play-state: paused;
}

.logo-slide-track {
    display: inline-block;
    animation: infinite-slide 30s linear infinite;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 180px;
    margin: 0 20px;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
}

/* =================================================================================
   10. TEAM SECTION (#team)
   ================================================================================= */
#team {
    padding: 6rem 0;
    background-color: var(--team-bg);
}
.team-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}
.team-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
}
.team-header p {
    color: var(--text-muted);
}

.team-grid-container {
    position: relative;
    padding: 2rem;
}

/* Subtle background gradient for the team layout */
.team-grid-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--team-highlight-start) 0%, var(--team-highlight-end) 100%);
    opacity: 0.5;
    z-index: 1;
    border-radius: 50%;
    display: none; /* Hide on mobile first */
}
@media (min-width: 768px) {
    .team-grid-container::before {
        display: block; /* Show on larger screens */
    }
}

/* Team member card styles */
.team-card-v2 {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--team-card-shadow);
    padding: 1.5rem;
    height: 100%;
    z-index: 5; /* Ensure cards are above the gradient */
    transition: all 0.3s ease;
}
.team-card-v2:hover {
    box-shadow: 0 8px 25px var(--primary-color, 0.2);
}

.team-card-v2 h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.team-card-v2 p.role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}
.team-card-v2 p.description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.team-member-1, .team-member-2, .team-member-3, .team-member-4 {
    z-index: 5;
}

/* =================================================================================
   11. FAQ SECTION (#faq)
   ================================================================================= */
#faq {
    padding: 6rem 0;
    background-color: var(--faq-bg);
    background-image: radial-gradient(var(--grid-color) 1px, transparent 1px),
                      radial-gradient(var(--grid-color) 1px, var(--faq-bg) 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

.faq-preheader {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.faq-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.faq-image-container img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =================================================================================
   12. CONTACT & MAP SECTION (#contact)
   ================================================================================= */
#contact-office {
    padding: 6rem 0;
    background-color: var(--faq-bg); /* Continues the FAQ background pattern */
}
.office-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.office-header p {
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
}

.map-container {
    height: 400px; /* Standard map height */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}
.map-address {
    position: relative; /* Needed for the overlay */
}

/* NEW: Map overlay styles */
.map-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(123, 109, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px; /* Match map-container radius */
    z-index: 10; /* Ensure it's on top of the iframe */
}

.map-container:hover .map-overlay-link {
    opacity: 1;
}

.map-address {
    padding: 1rem 0;
}
.map-address p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.map-address a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--faq-card-shadow);
}
.contact-info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}
.contact-info-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.contact-info-card p, .contact-info-card a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Align text to the left for the company details card */
.company-details-card p {
    text-align: left;
    line-height: 1.6;
}

/* Style for each inline detail item */
.company-details-card .detail-item {
    display: inline-block;
    margin-right: 1rem;
}

/* Styles for the Mail IDs card to ensure inline layout */
.mail-details-card p {
    display: flex;
    justify-content: space-between; /* Pushes label and link apart */
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on very small screens */
    gap: 0.5rem;
}
.mail-details-card .contact-label {
    flex-shrink: 0; /* Prevents the label from shrinking */
}


/* =================================================================================
   13. FINAL CTA SECTION (#final-cta)
   ================================================================================= */
#final-cta {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--final-cta-bg);
    text-align: center;
    /* Use a very subtle gradient for the transition effect from the section above */
    background: linear-gradient(to top, var(--final-cta-bg) 70%, var(--faq-bg) 100%);
}
.final-cta-heading {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.final-cta-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-muted);
}
.cta-feature-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}
.cta-feature-list div {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-muted);
}
.cta-feature-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Accordion Custom Styles (used in FAQ) */
.accordion {
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-border-radius: 10px;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-color: white;
    --bs-accordion-active-bg: var(--primary-color);
    --bs-accordion-bg: var(--card-bg);
    --bs-accordion-color: var(--text-dark);
}

.accordion-item {
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 5px 15px var(--faq-card-shadow);
    transition: all 0.3s ease;
}

.accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: 10px !important;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none;
}

.accordion-body {
    background-color: var(--card-bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237b6dff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transform: rotate(180deg);
}

/* =================================================================================
   14. FOOTER
   ================================================================================= */
.footer-v2 {
    background-color: var(--footer-bg);
    color: var(--text-dark);
}
.footer-main {
    padding: 3rem 0;
    border-top: 1px solid var(--footer-border);
}
.footer-col-1 .logo-img {
    max-width: 150px; /* Adjust size of logo image */
    margin-bottom: 1rem;
}
.footer-col-1 .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
.footer-col-1 p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-col-1 img {
    height: 120px; /* Adjust height for the image */
    width: auto;
    margin-bottom: 1rem;
}

.footer-v2 h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-v2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-v2 ul li {
    margin-bottom: 0.5rem;
}
.footer-v2 ul li a, .footer-v2 p a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-v2 ul li a:hover, .footer-v2 p a:hover {
    color: var(--primary-color);
}

.social-icons a {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-right: 1rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--primary-color);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
}

.footer-contact-list i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.2rem;
}

.footer-copyright {
    border-top: 1px solid var(--footer-border);
    padding: 1rem 0;
}
.footer-copyright p, .footer-copyright a {
    font-size: 0.8rem;
    color: var(--text-muted);
}


.min-vh-75 {
  min-height: 75vh;
}

.text-primary {
  color: var(--primary-color) !important;
}
.card {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

/* =================================================================================
   16. MEDIA QUERIES (RESPONSIVE DESIGN)
   ================================================================================= */
@media (max-width: 991.98px) {
    .hero-heading {
        font-size: 3rem; 
        text-align: center;
    }
    .hero-section .row {
        text-align: center;
    }
    .hero-image-container {
        padding-top: 2rem;
        /* Show a smaller version of the image on mobile */
        display: block;
        max-height: 45vh; /* Adjust height for mobile */
    }
    .paycashx-outline {
        -webkit-text-stroke-width: 2px;
    }
    .navbar-nav {
        border-radius: 10px;
        padding: 0.5rem;
        margin-top: 0.5rem;
        border: none;
    }
    .nav-link {
        padding: 0.3rem 0.5rem !important;
    }
    .navbar-toggler {
        border-color: var(--primary-color) !important;
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(123, 109, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--solution-border);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .connectivity-diagram-v2 {
        width: 100%;
        height: 420px;
        flex-direction: column;
    }
    .connectivity-lines {
        width: 100%;
        height: 420px;
    }
    .diagram-bg-circle.outer,
    .diagram-bg-circle.inner,
    .center-logo-v2 {
        width: 90vw !important;
        height: 90vw !important;
        min-width: 120px;
        min-height: 120px;
        max-width: 260px;
        max-height: 260px;
    }
    .api-icon-v2 {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    /* Adjust icon positions for mobile */
    .icon-left-top    { top: 10%;  left: 10%; }
    .icon-left-middle { top: 42%; left: 5%; }
    .icon-left-bottom { top: 74%; left: 10%; }

    .icon-right-top   { top: 10%;  right: 10%; }
    .icon-right-middle{ top: 42%; right: 5%; }
    .icon-right-bottom{ top: 74%; right: 10%; }


    #faq {
        padding: 3rem 0;
    }
    .faq-heading {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .faq-image-container {
        display: none; /* Hide image on smaller screens */
    }
    .cta-feature-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-col-1 {
        margin-bottom: 2rem;
    }
    .footer-main .row > [class*="col-"] {
        text-align: center;
    }
    .footer-col-1 img {
        margin: 0 auto 1rem auto;
    }
    .footer-contact-list {
        display: inline-block;
        text-align: left;
    }
    .footer-v2 h6 {
        margin-top: 1rem;
    }
    .footer-copyright {
        text-align: center; /* Keep text centered on mobile */
    }
    .footer-copyright .footer-links-group {
        flex-direction: column; /* Stack links below copyright on small screens */
        gap: 0.5rem !important; /* Reduce gap for stacked links */
    }
}

/* =================================================================================
   15. LOGIN PAGE
   ================================================================================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-custom-light);
    /* Re-use the grid pattern from the hero section */
    background-image: radial-gradient(var(--grid-color) 1px, transparent 1px), radial-gradient(var(--grid-color) 1px, var(--bg-custom-light) 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 2rem 0;
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 15px;
}

.login-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.login-card .form-control {
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card .form-control:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 109, 255, 0.2);
}

.login-card .input-group-text {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.forgot-password-link,
.signup-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.forgot-password-link:hover,
.signup-link:hover {
    text-decoration: underline;
}
