/* Scroll Stack Cards Styles */
.scroll-stack-wrapper {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 100vh;
}

/* Header Styles */
.scroll-stack-header {
    max-width: 1024px;
    margin: 0 auto;
    padding: 64px 20px;
    color: white;
    text-align: center;
}

.scroll-stack-header .header-tagline {
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-stack-header .header-title {
    margin-bottom: 24px;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
}

.scroll-stack-header .header-description {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Cards Container */
.l-cards {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Card */
.c-card {
    display: grid;
    grid-gap: 24px;
    margin-top: 20px;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    background-color: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transform-origin: center top;
}

/* Horizontal Layout (Image Right) - Default */
.c-card.card-layout-horizontal {
    grid-template-columns: 1fr 1fr;
}

.c-card.card-layout-horizontal .c-card__description {
    order: 1;
}

.c-card.card-layout-horizontal .c-card__figure {
    order: 2;
}

/* Horizontal Reverse Layout (Image Left) */
.c-card.card-layout-horizontal-reverse {
    grid-template-columns: 1fr 1fr;
}

.c-card.card-layout-horizontal-reverse .c-card__description {
    order: 2;
}

.c-card.card-layout-horizontal-reverse .c-card__figure {
    order: 1;
}

/* Vertical Layout (Image Top) */
.c-card.card-layout-vertical {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    min-height: 700px;
}

.c-card.card-layout-vertical .c-card__figure {
    order: 1;
    min-height: 350px;
}

.c-card.card-layout-vertical .c-card__description {
    order: 2;
}

/* Vertical Reverse Layout (Image Bottom) */
.c-card.card-layout-vertical-reverse {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    min-height: 700px;
}

.c-card.card-layout-vertical-reverse .c-card__description {
    order: 1;
}

.c-card.card-layout-vertical-reverse .c-card__figure {
    order: 2;
    min-height: 350px;
}

/* Card Description */
.c-card__description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.c-card__tagline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.c-card__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.c-card__excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.8;
}

.c-card__cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.c-card__cta a {
    display: inline-block;
    width: max-content;
    padding: 14px 32px;
    border: 2px solid currentColor;
    border-style: solid;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.c-card__cta a:hover {
    transform: translateY(-2px);
}

/* Card Figure/Image */
.c-card__figure {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.c-card__figure img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.c-card:hover .c-card__figure img {
    transform: scale(1.05);
}

/* Spacer for scroll effect */
.spacer {
    width: 100%;
    height: 100vh;
}

/* Multi-card view adjustments */
.scroll-stack-wrapper[data-cards-per-view="two"] .c-card,
.scroll-stack-wrapper[data-cards-per-view="three"] .c-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.scroll-stack-wrapper[data-cards-per-view="two"] .c-card {
    margin-top: 30px;
}

.scroll-stack-wrapper[data-cards-per-view="three"] .c-card {
    margin-top: 20px;
}

/* No posts message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .scroll-stack-header .header-title {
        font-size: 36px;
    }
    
    .c-card__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .scroll-stack-header {
        padding: 40px 20px;
    }
    
    .scroll-stack-header .header-title {
        font-size: 28px;
    }
    
    .scroll-stack-header .header-description {
        font-size: 16px;
        line-height: 28px;
    }
    
    .c-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        min-height: 500px;
        height: auto;
    }
    
    .c-card__description {
        padding: 30px;
        order: 2 !important;
    }
    
    .c-card__figure {
        min-height: 300px;
        order: 1 !important;
    }
    
    .c-card__title {
        font-size: 28px;
    }
    
    .c-card__excerpt {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scroll-stack-header .header-title {
        font-size: 24px;
    }
    
    .c-card__description {
        padding: 20px;
    }
    
    .c-card__title {
        font-size: 24px;
    }
    
    .c-card__tagline {
        font-size: 12px;
    }
    
    .c-card__cta a {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Loading state */
.scroll-stack-wrapper.loading .c-card {
    opacity: 0;
    transform: translateY(30px);
}

/* Animation classes */
.c-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}