.fa,
.fas {
    font-weight: 900;
    color: #017bff;
    font-size: 2rem;
}

.fa,
.fas:hover {
    font-weight: 900;
    color: #ffc001;
}

.mega-container {

    font-family: 'Montserrat', sans-serif;
    padding: 2rem;
}

.mega-container h1 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 5rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #007cff;
}

.mega-container p {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}


/* Set up basic styles for the main content */
#main-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

#main-cards-e-mobility {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Style each megatrend card */
.card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 1rem;

}

/* Style the megatrend card headings */
.card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Style the megatrend card paragraphs */
.card p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Style the megatrend card chart placeholders */
.card .chart {
    height: 200px;
    background-color: #f0f0f0;
    margin-bottom: 1rem;
}

/* Style the megatrend card reference links */
.card a {
    font-size: 0.9rem;
    color: #0077ff;
    text-decoration: none;
    transition: color 0.2s;
}

.card a:hover {
    color: #004499;
}





.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #ffffff4a;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    color: black;
    text-decoration: none;
}

.card:hover {
    background-color: #ffc400;
    transform: translateY(-0.2rem);
}

.card:hover p {
    background-color: #ffffff00;
    transform: translateY(-0.2rem);
    color: #ffffff;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease-in-out;
}

.card .icon:before {
    font-family: 'Font Awesome 5 Free';
    content: attr(data-icon);
}

.card:hover .icon {
    transform: scale(1.3);
    color: #ffffff;
}

.card h2 {
    font-size: 1.5rem;
    text-align: center;
}

.card h4 {
    font-size: 1.5rem;
    text-align: center;
}

.card:hover .icon:before {
    color: #ff0000;
}

.card:nth-child(1) .icon:before {
    color: #3498db;
}

.card:nth-child(2) .icon:before {
    color: #e67e22;
}

.card:nth-child(3) .icon:before {
    color: #9b59b6;
}

.card:nth-child(4) .icon:before {
    color: #2ecc71;
}

.card:nth-child(5) .icon:before {
    color: #f1c40f;
}

.card:nth-child(6) .icon:before {
    color: #34495e;
}

.card p {
    background-color: rgba(255, 255, 255, 0);
    padding: 3rem;
}

.card p {

    line-height: 1.5;
    color: #444;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card:hover p {
    opacity: 1;
    transform: translateY(-0.5rem);
}




.card p a {
    text-decoration: none;
}

@media only screen and (max-width: 768px) {


    #main-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }




    .right {
        order: 2;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 1rem;
    }

    .card {
        height: auto;
    }
}




@media only screen and (min-width: 768px) {


    .right {
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 1rem;
    }

    .card {
        height: auto;
    }
}

@media only screen and (min-width: 1400px) {


    .right {
        order: 2;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 1rem;
    }

    .card {
        height: auto;
    }
}







@media (min-width: 1600px) {
    .multi-column {
        column-count: 2;
        column-gap: 2rem;
        margin-top: 0.75rem;

    }
}



@media (max-width: 1200px) {
    .multi-column {
        column-count: 2;
        column-gap: 2rem;
        margin-top: 0.75rem;

    }
}

@media (max-width: 720px) {
    .multi-column {
        column-count: 1;
        column-gap: 2rem;
        margin-top: 0.75rem;

    }
}