/* Hero Section */
.hero-section {
    width: 100%;
    height: 300px;
    background-image: url('https://www.communica.se/web-v3/bilder/communica_back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 0;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero-text {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content p {
    font-family: "Open Sans";
    font-weight: 300;
    font-size: 1.5rem;
}

/* Products Container */
.products-container {
    width: 100%;
    background-color: #f5f5f5;
}

/* Product Section */
.product-section {
    max-width: 1500px;
    margin: 0 auto;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    width: 100%;
    align-items: center;
}

.product-image {
    flex: 0 0 60%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.product-text {
    flex: 1;
    padding: 30px 40px;
    background-color: #ffffff;
}

.product-text p {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    font-family: "Open Sans";
    font-weight: 300;
    font-size: 20px;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 0px;
    background: #cccccc;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }

    .hero-text {
        font-family: "Open Sans";
        font-weight: 300;
        font-size: 20px;
        line-height: 1.6;
    }

    /* På mobil: stapla bilden ovanför texten */
    .product-link {
        flex-direction: column;
    }

    .product-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .product-text {
        padding: 20px 25px;
    }

    .product-text p {
        font-family: "Open Sans";
        font-weight: 300;
        font-size: 20px;
        line-height: 1.6;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 250px;
    }

    .hero-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .product-text {
        padding: 15px 20px;
    }

    .product-text p {
        font-size: 0.95rem;
    }
}

/* Additional hover effects for links */
.product-link:hover .product-text p {
    color: #009640;
    transition: color 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}