/* ========================================
   Praktik-Home Styles (BEM)
   ======================================== */

/* Sections */
.praktik-home__sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.praktik-home__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section Header */
.praktik-home__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8ecf1;
}

.praktik-home__section-title {
    font-size: 28px;
    font-weight: 700;
    color: #314453;
    margin: 0;
}

.praktik-home__section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.praktik-home__section-title a:hover {
    color: #4579AE;
}

.praktik-home__section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #4579AE;
    text-decoration: none;
    transition: all 0.3s ease;
}

.praktik-home__section-link:hover {
    gap: 12px;
    color: #314453;
}

.praktik-home__section-link svg {
    transition: transform 0.3s ease;
}

.praktik-home__section-link:hover svg {
    transform: translateX(4px);
}

/* Section Grid */
.praktik-home__section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Subcat Card */
.praktik-home__subcat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.praktik-home__subcat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.praktik-home__subcat-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow: hidden;
}

.praktik-home__subcat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.praktik-home__subcat-card:hover .praktik-home__subcat-card-image img {
    transform: scale(1.08);
}

.praktik-home__subcat-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.praktik-home__subcat-card-title {
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #314453;
    line-height: 1.4;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .praktik-home__section-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .praktik-home__section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .praktik-home__sections {
        gap: 40px;
    }
    
    .praktik-home__section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .praktik-home__section-title {
        font-size: 22px;
    }
    
    .praktik-home__section-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .praktik-home__subcat-card-image {
        height: 150px;
    }
    
    .praktik-home__subcat-card-title {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .praktik-home__section-title {
        font-size: 20px;
    }
    
    .praktik-home__section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .praktik-home__subcat-card-image {
        height: 120px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.praktik-home__section {
    animation: fadeInUp 0.6s ease backwards;
}

.praktik-home__section:nth-child(1) { animation-delay: 0.1s; }
.praktik-home__section:nth-child(2) { animation-delay: 0.2s; }
.praktik-home__section:nth-child(3) { animation-delay: 0.3s; }
.praktik-home__section:nth-child(4) { animation-delay: 0.4s; }
.praktik-home__section:nth-child(5) { animation-delay: 0.5s; }

.praktik-home__subcat-card {
    animation: fadeInUp 0.5s ease backwards;
}

.praktik-home__subcat-card:nth-child(1) { animation-delay: 0.05s; }
.praktik-home__subcat-card:nth-child(2) { animation-delay: 0.1s; }
.praktik-home__subcat-card:nth-child(3) { animation-delay: 0.15s; }
.praktik-home__subcat-card:nth-child(4) { animation-delay: 0.2s; }
.praktik-home__subcat-card:nth-child(5) { animation-delay: 0.25s; }
/* Components Grid */
.praktik-home-components {
    margin-top: 20px;
}

.praktik-home-components__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.praktik-home-components__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.praktik-home-components__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.praktik-home-components__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.praktik-home-components__image {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow: hidden;
}

.praktik-home-components__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.praktik-home-components__link:hover .praktik-home-components__img {
    transform: scale(1.05);
}

.praktik-home-components__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f7fa;
}

.praktik-home-components__no-image img {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.praktik-home-components__content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.praktik-home-components__title {
    font-size: 15px;
    font-weight: 500;
    color: #314453;
    line-height: 1.4;
    margin: 0 0 auto 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3; /* Standard property */
}

.praktik-home-components__quantity {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .praktik-home-components__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .praktik-home-components__image {
        height: 140px;
    }

    .praktik-home-components__title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .praktik-home-components__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .praktik-home-components__image {
        height: 120px;
    }

    .praktik-home-components__content {
        padding: 12px;
    }

    .praktik-home-components__title {
        font-size: 13px;
    }

    .praktik-home-components__quantity {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .praktik-home-components__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .praktik-home-components__image {
        height: 100px;
    }
}
