:root {
    --bg: #1a1a1a;
    --border: #4a4a4a;
    --border-hover: #d97757;
    --text: #f5f5f5;
    --accent: #e0a94a;
}

.topics {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 75px;

    background-color: var(--black);
}
.topics-container {
    width: 100%;
    width: 1250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 75px;
}

.topics-title-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.topics-title-div h2 {
    color: var(--white);
    font-size: 54px;
    font-weight: normal;
}

.topics-title-div p {
    color: var(--yellow);
    font-size: 16px;
    font-weight: normal;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 75px;
    max-width: 1250px;
}

.topic-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 40px;
    border: 1px solid var(--dark-gray);
    border-radius: 20px;

    color: var(--white);
    font-size: 18px;

    background: transparent;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    cursor: default;
}

.topic-pill:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}


@media (max-width: 1280px) {
    .topics {
        padding: 70px 40px;
    }

    .topics-container {
        width: 100%;
        gap: 60px;
    }

    .topics-title-div h2 {
        font-size: 48px;
    }

    .topics-grid {
        gap: 22px 50px;
    }

    .topic-pill {
        padding: 15px 32px;
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    .topics {
        padding: 60px 30px;
    }

    .topics-container {
        gap: 50px;
    }

    .topics-title-div {
        text-align: center;
    }

    .topics-title-div h2 {
        font-size: 40px;
    }

    .topics-title-div p {
        font-size: 15px;
        max-width: 650px;
    }

    .topics-grid {
        gap: 18px 30px;
    }

    .topic-pill {
        padding: 14px 26px;
        font-size: 16px;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .topics {
        padding: 50px 20px;
    }

    .topics-container {
        gap: 40px;
    }

    .topics-title-div h2 {
        font-size: 34px;
    }

    .topics-title-div p {
        font-size: 14px;
    }

    .topics-grid {
        gap: 16px;
    }

    .topic-pill {
        padding: 12px 28px;
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .topics {
        padding: 40px 16px;
    }

    .topics-container {
        gap: 35px;
    }

    .topics-title-div h2 {
        font-size: 28px;
    }

    .topics-title-div p {
        font-size: 13px;
    }

    .topics-grid {
        gap: 12px;
    }

    .topic-pill {
        padding: 10px 26px;
        font-size: 14px;
        border-radius: 14px;
    }
}