.apg-283-wrapper {
    position: relative;
    width: 100%;
}

.apg-283-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.apg-283-container::-webkit-scrollbar {
    display: none;
}

.apg-283-grid {
    display: flex;
    gap: 30px;
    align-items: stretch; /* crucial for equal height columns */
    padding: 0 10px;
}

.apg-283-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 250px;
    flex: 0 0 auto;
    background: transparent;
    padding-bottom: 10px;
}

.apg-283-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #dcf5d1;
    color: #1a5e1a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 2px;
}

.apg-283-image-wrapper {
    flex-grow: 1; /* Takes up all available space above the button */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.apg-283-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.apg-283-card:hover .apg-283-image-wrapper img {
    transform: translateY(-5px);
}

.apg-283-footer {
    display: flex;
    justify-content: center;
    /* mt-auto pushes the footer to the bottom, aligning all buttons across cards */
    margin-top: auto; 
}

.apg-283-button {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.apg-283-button:hover {
    background: #000;
    color: #fff;
}

/* Controls */
.apg-283-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.apg-283-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.apg-283-nav-btn:hover {
    border-color: #000;
    color: #000;
}