/**
 * Products Section Block Styles
 * 
 * @package ACF Child Theme
 */

/* ========================================
   Products Section Wrapper
   ======================================== */
.products-section {
    width: 100%;
}

/* ========================================
   Category Container
   ======================================== */
.products-category {
    background-color: #ffffff;
    width: 100%;
    margin-bottom: 0px;
}

.products-category:last-child {
    margin-bottom: 0;
}

/* ========================================
   Category Header
   ======================================== */
.products-category-header {
    padding: 40px 0 30px;
}

.products-category-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 10px 0;
    padding: 0 0 15px 0;
    position: relative;
}

/* Orange underline accent */
.products-category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: #d98b20;
}

.products-category-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin: 20px 0 0 0;
}

/* ========================================
   Courses Wrapper
   ======================================== */
.products-courses-wrapper {
    padding: 20px 0 40px;
}

/* ========================================
   Courses Grid
   ======================================== */
.products-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

/* ========================================
   Course Card
   ======================================== */
.product-course-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-course-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   Course Image
   ======================================== */
.product-course-image {
    width: 100%;
    overflow: hidden;
    background-color: #f5f6f6;
}

.product-course-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   Course Content
   ======================================== */
.product-course-content {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.product-course-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #000000;
    margin: 0;
}

/* ========================================
   Course Link / Button
   ======================================== */
.product-course-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(to right, #c67ffb, #8c47c0);
    color: #ffffff;
    border: none;
    width: fit-content;
}

.product-course-link:hover {
    background: #d98b20;
    color: #ffffff;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets (landscape) - 3 columns */
@media screen and (max-width: 1024px) {
    .products-courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .products-category-title {
        font-size: 32px;
    }

    .products-category-description {
        font-size: 15px;
    }
}

/* Tablets (portrait) - 2 columns */
@media screen and (max-width: 768px) {
    .products-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .products-category-header {
        padding: 30px 0 20px;
    }

    .products-courses-wrapper {
        padding: 15px 0 30px;
    }

    .products-category-title {
        font-size: 28px;
        padding-bottom: 12px;
    }

    .products-category-description {
        font-size: 14px;
        margin-top: 15px;
    }

    .product-course-name {
        font-size: 16px;
    }

    .product-course-content {
        padding: 15px 0;
        gap: 12px;
    }

    .products-category {
        margin-bottom: 40px;
    }
}

/* Mobile - 1 column */
@media screen and (max-width: 480px) {
    .products-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-category-header {
        padding: 20px 0 15px;
    }

    .products-courses-wrapper {
        padding: 10px 0 20px;
    }

    .products-category-title {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .products-category-title::after {
        height: 2px;
    }

    .products-category-description {
        font-size: 14px;
        margin-top: 12px;
    }

    .product-course-name {
        font-size: 16px;
    }

    .product-course-link {
        padding: 10px 20px;
        font-size: 13px;
    }

    .products-category {
        margin-bottom: 30px;
    }
}

/* ========================================
   Block Container (from theme rules)
   ======================================== */
.block-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}
