/* ─────────────────────────────────────────
   VillaComms Substack Feed v1.1.1
   Grid + Swiper Slider styles
───────────────────────────────────────── */

/* ── SHARED CARD STYLES ─────────────────── */
.vcss-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vcss-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

.vcss-thumbnail-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
}

.vcss-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vcss-card:hover .vcss-thumbnail img {
    transform: scale(1.04);
}

.vcss-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vcss-date {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vcss-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.vcss-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
}

.vcss-title a:hover {
    color: #FF6719;
    text-decoration: underline;
}

.vcss-excerpt {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.vcss-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 18px;
    background-color: #FF6719;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    letter-spacing: 0.01em;
}

.vcss-btn:hover {
    background-color: #e55a10;
}

.vcss-error {
    color: #b00;
    font-style: italic;
    padding: 12px 0;
}

/* ── GRID LAYOUT ────────────────────────── */
.vcss-feed {
    display: grid;
    gap: 28px;
}

.vcss-cols-1 { grid-template-columns: 1fr; }
.vcss-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vcss-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vcss-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .vcss-cols-3,
    .vcss-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .vcss-cols-2,
    .vcss-cols-3,
    .vcss-cols-4 { grid-template-columns: 1fr; }
}

/* ── SWIPER SLIDER ──────────────────────── */
.vcss-slider-wrapper {
    position: relative;
    width: 100%;
    /* padding lateral para que las flechas no tapen el contenido */
    padding: 0 56px 80px;
    box-sizing: border-box;
}

.vcss-swiper {
    width: 100%;
    overflow: hidden;
}

.vcss-swiper .swiper-slide {
    height: auto;
}

.vcss-swiper .swiper-slide .vcss-card {
    height: 100%;
}

/* Dots */
.vcss-pagination {
    bottom: 20px !important;
}

.vcss-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: background 0.2s;
}

.vcss-pagination .swiper-pagination-bullet-active {
    background: #FF6719;
}

/* ── FLECHAS ─────────────────────────────
   Siempre dentro del wrapper (nunca salen)
   Tamaño grande en desktop, razonable en móvil
──────────────────────────────────────── */
.vcss-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 28px));
    z-index: 10;

    /* Tamaño */
    width: 48px;
    height: 48px;
    font-size: 1.3rem;

    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    line-height: 1;
    padding: 0;
    user-select: none;
}

.vcss-arrow:hover {
    background: #FF6719;
    border-color: #FF6719;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,103,25,0.35);
}

/* Posición: pegadas al borde del padding */
.vcss-prev { left: 4px; }
.vcss-next { right: 4px; }

/* Móvil: un poco más pequeñas pero siguen siendo cómodas */
@media (max-width: 640px) {
    .vcss-slider-wrapper {
        padding: 0 44px 72px;
    }

    .vcss-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
