h2 {
    padding: 0 !important;
}

.software {
    display: inline-block;
    width: 40%;
    min-height: 10em;
    vertical-align: top;

    margin-bottom: 2em;
    
    background: #f8f6fb;
    border: 1px solid #d6cce6;
    border-radius: 12px;
    padding: 16px;
    gap: 6px 16px;

    box-shadow:
        0 3px 6px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.software h3 {
    padding: 0.25em 0;
    background-color: #6b5176;
    color: white !important;
    display: block;
    width: 75%;
    padding-left: 0.75em !important;
    margin-left: -0.75em !important;
    margin-bottom: 0.5em !important;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.software .error, .software .warning {
    margin-top: 1em;
}

.software video, .sofware img {
    max-width: 100%;
}

.software:nth-child(even) {
    margin-left: 4%;
}

/* Title */
.software h3 {
    grid-area: title;
    margin: 0;
    font-size: 1.4rem;
    color: #4b3b6b;
}


/* Author */
.software .author {
    grid-area: author;
    margin: 0;
    font-weight: normal;
    color: #7a6aa8;
    font-size: 1.1rem;
}


/* Screenshot */
.software-image {
    grid-area: image;
    width: 100%;
    border-radius: 6px;
    border: 3px solid #6a55a3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}


/* Description */
.software p {
    grid-area: desc;
    margin: 6px 0;
    line-height: 1.4;
    color: #333;
}


/* Button container */
.software > div {
    grid-area: button;
}

/* Download button */
.software-get {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(#8a6fd1, #6a55a3);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #5c4a8d;
    box-shadow: 0 3px 0 #4d3e78,
                0 6px 10px rgba(0,0,0,0.15);
    transition: all 0.15s ease;
}

.software-get:hover {
    background: linear-gradient(#9b80e2, #725db0);
    transform: translateY(-1px);
    color: rgb(219, 219, 219) !important;
}

.software-get:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #4d3e78;
}

@media screen and (max-width: 800px) {
    .software {
        width: 90%;
        margin-left: 0 !important;
    }
}

/* Base styles for all badges */
.zeal-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: Roboto, Calibri, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: white;
    cursor: pointer;
    position: relative;
    margin-right: 5px; 
}

.zeal-badge:first-of-type {
    margin-left:1em;
}

.badge-warning {
    background-color: #f39c12;
    border: 1px solid #e67e22;
}

.badge-error {
    background-color: #e74c3c;
    border: 1px solid #c0392b;
}

.badge-info {
    background-color: #3498db;
    border: 1px solid #2980b9;
}

.zeal-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%);
    background-color: #333333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

/* Tooltip on hover */
.zeal-badge:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Optional: Add a small triangle/arrow to the tooltip */
.zeal-badge::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent; /* Points upward */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
}

/* Show arrow on hover */
.zeal-badge:hover::before {
    opacity: 1;
    visibility: visible;
}
