﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.flaxBody {
    display: flex;
    flex-wrap: wrap; /* This allows items to wrap to the next line if necessary */
    gap: 20px;
    justify-content: center; /* Center items horizontally */
    padding: 20px;
    max-width: 100%;
    margin: 50px auto;
}

.flaxitem {
    padding: 0;
    /*width: calc(50% - 20px);*/ /* Adjust width based on the number of items per row */
    min-width: 250px;
    flex-shrink: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
  /*  height: 60vh;*/
    border: none;
    overflow:revert-layer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .flaxitem:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

h1 {
    height:;
    width: 100%;
    font-size: 21px;
    line-height: 31px;
    font-weight: 700;
    color: #092d45;
    background-color: #f7f7f7;
    padding: 6px 10px;
    margin: 0px 0 15px 0;
    border-left: 35px solid #51606b;
    text-align: center;
    overflow: hidden;
}

p {
    padding: 10px;
    font-size: 18px;
    line-height: 31px;
    text-align: left;
}

/* Animation for fading in news items */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .flaxBody {
        padding: 10px;
    }

    .flaxitem {
        padding: 15px;
    }
}
