﻿  .webpart-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Ensures consistent height for all tiles */
    flex-wrap: wrap;
    gap: 20px;
    /* Spacing between tiles */
    margin: 20px auto;
    max-width: 960px;
    /* Controls the maximum row width */
  }

  .webpart {
    flex: 1 1 calc(33.333% - 20px);
    /* Ensures three tiles per row with spacing */
    max-width: 300px;
    /* Restricts the width of each tile */
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
    display: flex;
    /* Enables flexbox */
    flex-direction: column;
    /* Stacks the content vertically */
    justify-content: space-between;
    /* Ensures the button aligns to the bottom */
  }

  .webpart-image {
    width: 100%;
    height: auto;
    /* Ensures the original aspect ratio is maintained */
    object-fit: cover;
  }

  .webpart-title {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
  }

  .webpart-description {
    font-size: 0.9rem;
    color: #666;
    padding: 0 10px;
    flex-grow: 1;
    /* Allows the description to fill vertical space */
  }

  .webpart-button {
    display: inline-block;
    margin-top: auto;
    /* Pushes the button to the bottom of the tile */
    padding: 8px 16px;
    font-size: 0.9rem;
    color: white;
    background-color: #223266;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
  }

  .webpart-button:hover {
    background-color: #8F0058;
  }

  .placeholder {
    visibility: hidden;
    /* Hides the placeholder while maintaining its space */
  }