/* Base Styles */
.dr-obi-showcase-container {
    padding: 3rem 1.5rem;
    border-radius: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.dr-obi-showcase-container.is-visible {
    opacity: 1;
}

/* Grid Layout */
.dr-obi-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dr-obi-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling */
.dr-obi-showcase-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    
    /* Staggered entry defaults (set via JS or keyframes, we use a simple translate approach) */
    opacity: 0;
    transform: translateY(30px);
}

.dr-obi-showcase-container.is-visible .dr-obi-showcase-card {
    opacity: 1;
    transform: translateY(0);
}

.dr-obi-showcase-container.is-visible .dr-obi-showcase-card:nth-child(1) { transition-delay: 0.1s; }
.dr-obi-showcase-container.is-visible .dr-obi-showcase-card:nth-child(2) { transition-delay: 0.3s; }
.dr-obi-showcase-container.is-visible .dr-obi-showcase-card:nth-child(3) { transition-delay: 0.5s; }

/* Hover Effects */
.dr-obi-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.dr-obi-showcase-image-wrap {
    width: 100%;
    padding-top: 100%; /* square ratio to wrap the image nicely */
    position: relative;
    background: #f7f6f2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-obi-showcase-img {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: auto;
    object-fit: cover;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.6s ease;
}

.dr-obi-showcase-card:hover .dr-obi-showcase-img {
    transform: scale(1.05);
}

.dr-obi-showcase-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.dr-obi-showcase-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c2c2c;
    line-height: 1.3;
}

.dr-obi-showcase-desc {
    font-family: inherit;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Buttons */
.dr-obi-showcase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dr-obi-showcase-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.dr-obi-showcase-btn-primary {
    color: #fff;
    /* bg color from elementor controls */
}

.dr-obi-showcase-btn-primary:hover {
    opacity: 0.9;
    color: #fff;
}

.dr-obi-showcase-btn-secondary {
    background: transparent;
    /* text/border color from elementor controls */
}