:root {
    --box: #071738;
    --muted: #bcd7f3;
    --accent: #2f80ed;
    --radius: 12px;
    --gap: 24px;
  }

.topics-section {
    color: #eaf6ff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow-x: hidden; /* prevent scrollbars on small devices */
    /*flex-direction: column;*/
    padding: 60px;
    background: radial-gradient(circle at center, rgb(46 73 76 / 40%) 0%, rgb(57 70 78 / 1%) 100%);
    background-position: center, 75px 0;
}

.topics-section > h1 {
    margin-bottom: 30px;
    font-size: 80px;
    text-align: center;
    color: #958e6a;
    font-family: font-1, monospace;
    text-transform: uppercase;
    line-height: 1;
    margin-right: 30px;
}

.topics-section .process {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    align-items: stretch;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.topics-section .process-row {
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.topics-section .step {
    /*background: #191e1b;*/
    /*border-radius: var(--radius);*/
    padding: 40px;
    flex: 1 1 240px;
    text-align: center;
    /*box-shadow: 0 4px 16px rgba(0,0,0,0.4);*/
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border:1px solid #4e555a;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.step p {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.step .hlight-b {
    color: #958e6a;
}

.arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow > img { width:20px;}

@media (max-width: 1630px) {
    .topics-section .process-row {
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--gap) / 1.5);
        padding-right: 10px; /* add breathing space on right */
    }
    .topics-section .arrow {
        margin: 8px auto;
    }
    .topics-section .arrow img {
        transform: rotate(90deg);
    }
    .topics-section .step {
        width: 100%;
        flex: 1 1 auto;
        min-height: initial;
    }
}

/* Mobile: stacked layout with proper margins */
@media (max-width: 768px) {
    .topics-section {
        flex-direction: column;
    }

    .topics-section > h1 {
        font-size: 60px;
        margin-right: 0;
    }
}