/* =============================================================================
   Product Categories Grid - Renders & Links
   ========================================================================== */

.category-grid-section {
    padding: 60px 0;
    margin-top: 40px;
}

.category-card-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    background: #fff;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
    border-color: var(--eduskill-primary);
}

.category-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card-item:hover .category-thumb img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 38, 101, 0) 0%, rgba(14, 38, 101, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 2;
}

.category-content {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 3;
}

.category-content h5 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-content span {
    color: var(--sky-blue-primary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
}

.category-card-item:hover .category-content span {
    opacity: 1;
    transform: translateY(0);
}

/* Policy Link Styles */
.policy-link {
    color: #38bdf8 !important;
    /* Sky Blue */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.policy-link:hover {
    color: #0ea5e9 !important;
    /* Darker Sky Blue */
    border-bottom: 1px solid currentColor;
}

/* Ensure check labels are readable */
.form-check-label {
    cursor: pointer;
}