*,
*::before,
*::after {
    box-sizing: border-box;
}
.categories {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.categories h2 {
    font-size: 42px;
    color: #8d6c42;
    margin-bottom: 45px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background-color: #fffaf4;
    border: 1px solid #e8d4b8;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.category-card h3 {
    font-size: 25px;
    color: #8d6c42;
    margin-bottom: 18px;
}

.category-card p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.category-card a {
    display: inline-block;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 28% 22%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.70) 24%,
            rgba(255, 255, 255, 0) 42%
        ),
        linear-gradient(
            135deg,
            #fffaf1 0%,
            #f8e9cf 45%,
            #fff8ec 70%,
            #ead1a6 100%
        );

    color: #7a582d;

    padding: 12px 25px;

    border: 3px solid #c99746;
    border-radius: 30px;

    text-decoration: none;
    font-size: 16px;

    box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.95),
    inset 0 -3px 3px rgba(154, 101, 34, 0.28),
    0 0 0 1px rgba(255, 220, 145, 0.45),
    0 5px 8px rgba(91, 59, 24, 0.22);

    transition: 0.3s;
}

.category-card a:hover {
    background-color: #8d6c42;
}
.category-card a {
    position: relative;
    overflow: hidden;
}

.category-card a::before {
    content: "";
    position: absolute;

    width: 65%;
    height: 70%;

    left: 6%;
    top: -10%;

    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0.18) 35%,
        rgba(255, 255, 255, 0.07) 60%,
        transparent 78%
    );

    border-radius: 50%;
    pointer-events: none;
}

.category-card a::after {
    content: "";
    position: absolute;

    right: 2px;
    bottom: 0.1px;

    width: 18px;
    height: 18px;

    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.95);

    border-radius: 0 0 28px 0;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 25%,
        black 55%,
        black 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 25%,
        black 55%,
        black 100%
    );

    pointer-events: none;
}