/* ===================== Test Card LW Start ===================== */

        /* Test Section */
.test-section {
    padding: 60px 0px; /* padding: 60px 20px;  */
            
}

.container-main {
            width: 100%; /* width: 90%;  */
            max-width: 1200px;
            margin: auto;
            text-align: center;
        }

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Saglabā 3 kolonnas desktopā. */
    gap: 20px;    /* nodrošina vienādu atstarpi starp blokiem */
    width: 100%; /* Nodrošina, ka `.test-grid` neaizņem mazāku vietu */
    max-width: 1200px; /* Ja vēlies ierobežot max platumu */
    margin: 0 auto; /* Centrē grid ja tas neizplešas, centrē saturu lapā */
}

.test-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    font-size: 1.2em;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Teksts centrēts vertikāli */
    height: 200px;
    position: relative;
}

/* Pārliecināmies, ka tukšais attēls neaizņem vizuālu vietu, bet saglabā izmēru */
.test-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /*opacity: 0;  Padara attēlu neredzamu */
}

/* Teksts centrā un virs fona 
.test-card h2 {
    position: relative;
    z-index: 1;
    color: #ffcc00;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}*/
.test-card h2 {
    position: relative;
    z-index: 1;
    /*color: #3a9fbf;*/
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.65);
}

.test-card-title {
    color: #ffcc00;
}

.test-card-title-1 {
    color: #3a9fbf;
}

.test-card-title-2 {
    color: #33bcd4;
}

.test-card-title-3 {
    color: #3a9fbf;
}

.test-card-title-4 {
    color: #5ecacb;
}

.test-card-title-5 {
    color: #3f9dd6;
}

.test-card-title-6 {
    color: #2ba8a0;
}

/* Pilnībā klikšķināms kvadrāts */
.test-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Hover efekts – interaktivitāte atgriezta */
@media (hover: hover) {
    .test-card:hover {
        transform: scale(1.08);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    }
}

/* Responsivitāte mobilajām ierīcēm */
@media screen and (max-width: 1024px) {
    .test-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .test-card {
        width: 80%;
        max-width: 300px;
        padding: 20px;
        font-size: 1.2em;
    }
}

.visually-hidden-description {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===================== Test Card LW End ===================== */
