/* How It Works Section Styles */
.how-it-works-section {
    background-color: var(--color-black-secondary); 
    display: flex;
    justify-content: center;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    align-self: center;
}

.how-it-works-container {
    width: 100%; 
    max-width: 1200px; 
    background: var(--color-bg-card);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 40px; 
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-it-works-header h2 {
    margin-bottom: 16px;
    font-weight: 600;
}

.how-it-works-header p {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-left: auto; /* Center if max-width is hit */
    margin-right: auto; /* Center if max-width is hit */
}

.how-it-works-content {
    display: flex;
    flex-direction: column; /* Mobile base: stack blocks */
    justify-content: space-between;
    width: 100%;
    gap: 60px; /* Mobile base gap */
}

.how-it-works-text { /* This class was present but empty in landing.css, keeping for structure */
    gap: 8px;
}

.how-it-works-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: left; /* Default from landing.css, consider 'center' for mobile if design implies */
    text-align: left; /* Default from landing.css */
    position: relative;
    transition: all 0.3s ease;
}

.how-it-works-block-icon {
    width: 130px;
    height: 130px;
    position: relative;
    /* Consider margin: 0 auto; if blocks are centered on mobile */
}

.how-it-works-block-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.how-it-works-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
    font-size: 36px;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Block divider styles - for desktop, hidden on smaller screens via media query */
.block-divider {
    width: 320px; /* This might be too wide for mobile, hence hidden by default below */
    height: 0px;
    border: 3px solid var(--color-accent);
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    display: none; /* Hide by default, show on larger screens if needed or remove if only for >1200px */
}

.block-divider::after { /* This was part of .block-divider, likely for arrow tip */
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--color-accent);
    display: inline-block; /* Ensure it displays if .block-divider is shown */
    position: relative; /* Adjust positioning as needed */
}


/* Arrow container - visual element, might need responsive adjustments */
.arrow-container {
    display: flex; /* Or none on mobile if it's a desktop-only visual */
    align-items: center;
    margin: 30px 0px; /* Vertical spacing */
}
  
.arrow-line {
    width: 100%;
    height: 3px; 
    background-color: #D1EE51; /* Line color */
    position: relative;
}
  
.arrow-line::before,
.arrow-line::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 3px;
    background-color: #D1EE51; /* Arrow color */
    border-radius: 3px; /* Makes the tips rounded */
}
  
.arrow-line::before {
    transform: rotate(45deg);
    right: -5px; /* Adjust for precise arrow positioning */
    top: -4px;   /* Adjust for precise arrow positioning */
}
  
.arrow-line::after {
    transform: rotate(-45deg);
    right: -5px;  /* Adjust for precise arrow positioning */
    bottom: -4px; /* Adjust for precise arrow positioning */
}

/* Default state for all blocks (icon/number colors) */
.how-it-works-block .how-it-works-block-icon svg ellipse {
    fill: transparent;
    stroke: var(--color-accent);
    stroke-width: 4px;
}

.how-it-works-block .how-it-works-number {
    color: #D1EE51; /* Consider var(--color-accent) */
}

/* Hover state for blocks */
.how-it-works-block:hover .how-it-works-block-icon svg ellipse {
    fill: var(--color-accent);
    stroke: var(--color-accent);
}

.how-it-works-block:hover .how-it-works-number {
    color: var(--color-bg-card); /* Text color on hover, ensure contrast */
}

.how-it-works-block h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    color: white;
    margin-top: 16px; /* Add some space above title if icon is above */
    margin-bottom: 8px; /* Space below title */
}

.how-it-works-block p {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 140%;
}

/* Media Queries */

/* Tablet and larger */
@media (min-width: 768px) {
   
    .how-it-works-container {
        padding: 60px 60px; 
    }
}

/* Desktop */
@media (min-width: 990px) {
    .how-it-works-content {
        flex-direction: row;
        gap: 40px;
    }
    
    .how-it-works-block::after { /* This rule from landing.css hides something on desktop */
        display: none; 
    }

    .how-it-works-container {
        padding: 60px 60px; 
    }
    /* .block-divider logic handled below for >= 1200px */
}

@media (min-width: 1200px) {
    .block-divider {
         display: block; /* Or flex, if it's a flex item */
    }
}
