/* Main provider info section */
#providerInfo {
    background-color: #ffffff00;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
}

/* Provider Logo */
.provider-logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 40px;
}

/* Provider Title */
#providerTitle {
    font-size: 36px;
    font-weight: bold;
    color: #2c456b;
    margin-bottom: 20px;
    margin-top: 40px;
    text-align: center;
}

/* Provider Overview */
#providerInfo p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

/* Styling for Förmåner section and unordered list (ul) */
#providerInfo h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Styling for the unordered list under Förmåner */
#providerInfo ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Styling for each list item (li) */
#providerInfo ul li {
    font-size: 16px;
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

/* Remove the bottom border for the last item */
#providerInfo ul li:last-child {
    border-bottom: none;
}

/* Hover effect for the list items */
#providerInfo ul li:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Styling for strong tags inside list items */
#providerInfo ul li strong {
    font-weight: bold;
    color: #c98c00;
    margin-right: 10px;
}

/* Add a checkmark icon before each list item */
#providerInfo ul li::before {
    content: '✔';  
    color: #c98c00;
    font-size: 20px;
    margin-right: 15px;
}

/* Detailed Card Options Section */
.card-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.card-option {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    max-width: 300px;
    margin: 10px;
    min-width: 250px;  /* Ensures consistency even for smaller screen widths */
}

/* Hover effect for cards */
.card-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Card Titles */
.card-option h3 {
    font-size: 24px;
    color: #2c456b;
    margin-bottom: 15px;
}

/* Card Description */
.card-option p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Card link styling */
.card-option .card-link {
    font-size: 16px;
    background-color: #f7f7f7;
    padding: 12px 20px;
    border: 2px solid #c98c00;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #c98c00 !important;
}

/* Orange */

.card-option .card-link:hover {
    color: #f7f7f7 !important;
    background-color: #c98c00; 
}

/* Image styling within card options */
.card-option .card-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* How to Apply Section */
.apply-link {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    background-color: #2c456b;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.apply-link:hover {
    background-color: #1e3559;
}

/* Contact Section */
#providerInfo a {
    font-size: 16px;
    color: #2c456b;
    text-decoration: none;
    transition: color 0.3s ease;
}

#providerInfo a:hover {
    color: #1e3559;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .card-options {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .card-option {
        margin-bottom: 20px;
        max-width: 90%;
        min-width: 280px;  /* Ensures cards have a minimum width even on smaller screens */
    }

    .card-option .card-image {
        max-height: 200px;
        object-fit: cover;
    }

    /* Fix for the last row when there are 3 cards */
    .card-option:nth-child(3n+1) {
        margin-left: 0;
    }

    #providerInfo ul {
        padding-left: 0;
        margin: 0;
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    #providerInfo ul li {
        font-size: 16px;
        padding: 18px 20px;
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.3s ease, transform 0.3s ease;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        cursor: pointer;
        flex-wrap: wrap;
    }

    #providerInfo ul li:last-child {
        border-bottom: none;
    }

    #providerInfo ul li:hover {
        background-color: #f7f7f7;
        transform: scale(1.02);
    }

    #providerInfo ul li strong {
        color: #c98c00;
    }

    #providerInfo ul li::before {
        content: '✔';  
        color: #c98c00;
        font-size: 22px;
        margin-right: 15px;
    }
    
    .apply-link {
        font-size: 16px;
        padding: 12px 20px;
    }
}
