/* /css/pages/solution.css */

.solution-hero {
    padding: 2rem 2rem;
    text-align: center;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--white-color) 100%);
}

.solution-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.solution-hero .subtitle {
    font-size: 1.25rem;
    color: var(--subText-color);
    max-width: 700px;
    margin: 0 auto;
}

.product-category-section {
    width: 100%;
    padding: 5rem 0;
    overflow: hidden;
}

.product-category-section.software-section {
    background-color: var(--bg-secondary);
}

.category-title-wrap {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
}

.category-title-wrap h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    padding-left: 1.5rem;
    border-left: 4px solid var(--theme-color);
    line-height: 1.3;
}

.product-carousel {
    padding: 0 calc((100vw - 1200px) / 2 + 2rem);
    max-width: 100%;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #374151;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    border-color: var(--theme-color);
}

.software-section .product-card {
    background-color: var(--white-color);
}

.service-section .product-card {
    background-color: var(--bg-secondary);
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: normal;
    margin-bottom: 1rem;
}

.software-section .product-title {
    color: var(--dark-color);
}

.product-description {
    font-size: 1rem;
    color: var(--subText-color);
    line-height: 1.6;
    white-space: normal;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background-color: #374151;
    color: var(--subText-color);
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}

.solution-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.solution-link:hover svg {
    transform: translateX(3px) translateY(-3px);
}

@media (max-width: 1200px) {
    .product-carousel {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .solution-hero h1 {
        font-size: 2.5rem;
    }
    .category-title-wrap {
        padding: 0 1rem;
    }
    .category-title-wrap h2 {
        font-size: 2rem;
    }
    .product-carousel {
        padding: 0 1rem;
    }
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}