/* Teaser Card Styles */
.teaser-card {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.teaser-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.teaser-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.teaser-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.teaser-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teaser-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teaser-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #212529;
    font-weight: 600;
}

.teaser-description {
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.teaser-link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    margin-top: auto;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.teaser-link:hover {
    background-color: #0b5ed7;
}

/* Layout variants */
.teaser-card-standard .teaser-image-container {
    height: 200px;
}

.teaser-card-compact {
    max-width: 320px;
}

.teaser-card-compact .teaser-image-container {
    height: 150px;
}

.teaser-card-compact .teaser-title {
    font-size: 1.1rem;
}

.teaser-card-compact .teaser-description {
    font-size: 0.9rem;
}

.teaser-card-hero {
    max-width: 100%;
}

.teaser-card-hero .teaser-image-container {
    height: 350px;
}

.teaser-card-hero .teaser-title {
    font-size: 1.5rem;
}

.teaser-card-side-image .teaser-image-container {
    height: 100%;
}

.teaser-card-side-image .teaser-image {
    height: 100%;
}

/* Backend Preview Styles */
.teaser-card-preview {
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.teaser-card-preview-header {
    background-color: #e9ecef;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.teaser-card-preview-content {
    padding: 1rem;
}

.teaser-card-placeholder {
    background-color: #e9ecef;
    border-radius: 4px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 3rem;
    color: #adb5bd;
}

.teaser-card-body {
    background-color: #fff;
    border-radius: 4px;
}

.teaser-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.teaser-card-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .teaser-card-side-image .teaser-image-container {
        height: 200px;
    }
    
    .teaser-card-hero .teaser-image-container {
        height: 250px;
    }
}