/* Medieomtale seksjon styling */
.media-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23dee2e6" opacity="0.3"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.media-section h2 {
    margin-bottom: 50px;
    color: #30847a;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.media-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #30847a, #28a745);
    border-radius: 2px;
}

.media-list {
    max-width: 1500px;  /* Increased from 1025px to 1500px for wider content */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.media-link {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    border-bottom: 2px dashed #d0d7de;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.media-link:last-child {
    border-bottom: none;
}

.media-link:first-child {
    padding-top: 0;
}

.media-link:hover {
    background-color: rgba(48, 132, 122, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

/* Only show pointer cursor for links with URL */
a.media-link {
    cursor: pointer;
}

/* Non-link items should not show pointer cursor */
div.media-link {
    cursor: default;
}

.media-content {
    flex: 1;
    min-width: 0;
}

.media-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.media-link:hover .media-image img {
    transform: scale(1.05);
}

.media-link h3 {
    color: #30847a;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.publication-name {
    display: inline-block;
    color: #30847a;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 10px;
}

.media-link p {
    margin: 5px 0;
    line-height: 1.4;
    color: #555;
    font-size: 1rem;  /* Increased from 0.95rem for better readability */
    font-weight: var(--font-weight-normal);  /* Normal weight - larger font size provides readability */
}

.media-quote {
    font-style: italic;
    color: #666;
    margin: 5px 0;
    font-size: 0.9rem;
}

.media-date {
    display: inline-block;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 10px;
}

/* Removed individual link styling since entire row is now clickable */

/* Responsive design for mindre skjermer */
@media (max-width: 768px) {
    .media-section {
        padding: 40px 15px;
        text-align: center;
    }

    .media-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
        text-align: center;
    }

    .media-list {
        padding: 0 15px;
        text-align: center;
    }

    .media-link {
        flex-direction: row;
        gap: 15px;
        padding: 15px 0;
        align-items: center;
    }

    .media-link:hover {
        padding-left: 0;
    }

    .media-content {
        text-align: left;
    }

    .media-link h3 {
        font-size: 1.1rem;
    }

    .publication-name {
        font-size: 0.9rem;
    }

    .media-link p {
        font-size: 0.9rem;
    }

    .media-date {
        font-size: 0.8rem;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .media-section {
        padding: 30px 15px;
        text-align: center;
    }

    .media-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .media-list {
        padding: 0 10px;
        text-align: center;
    }

    .media-link {
        flex-direction: row;
        gap: 10px;
        padding: 12px 0;
        align-items: center;
    }

    .media-link h3 {
        font-size: 1rem;
    }

    .publication-name {
        font-size: 0.85rem;
        display: block;
        margin-bottom: 5px;
    }

    .media-link p {
        font-size: 0.85rem;
    }

    .media-quote {
        font-size: 0.8rem;
    }

    .media-date {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}