.category-section {
    text-align: center;
    padding: 20px;
    background-color: white;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* Base style for back button */
.back-button {
    background-color: #0e1167;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 30px;
}

/* Logical direction: auto-align to start of direction (RTL or LTR) */
html[dir="ltr"] .back-button {
    position: absolute;
    left: 0;
}

html[dir="rtl"] .back-button {
    position: absolute;
    right: 0;
}

.back-button:hover {
    background-color: #1c2687;
}

.choose-title {
    color: #000000;
    text-align: center;
    padding: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    justify-items: center;
    margin-bottom: 50px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-item {
    text-align: center;
}

.link-circle {
    text-decoration: none;
    color: #0b0f85;
    transition: color 0.3s ease;
}

.link-circle:hover {
    color: #04096c;
}

.icon-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #dfebf6;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-circle img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.category-item:hover .icon-circle {
    transform: scale(1.1);
    background-color: #e0e7f1;
}
