/* Swiper Container - Edge-to-edge */
.vperfumes-swiper {
    width: 100%;
    height: 300px;
    min-height: 300px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: none !important;
}

/* Swiper Wrapper - No spacing */
.swiper-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Slides - No gaps */
.swiper-slide {
    display: flex;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    min-height: 300px; /* Ensures each slide matches container */
    width: 33.33% !important; /* Force 3 slides on desktop */
    transition: transform 0.3s ease;
    pointer-events: auto !important; /* Override Swiper default */
}

/* Make entire slide clickable */
.slide-link {
    display: flex;  /*before it is block*/
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Images - Full width */
.slide-image {
    width: 100% !important;
    height: 100% !important;
    height: 300px; /* Desktop height */
    object-fit: cover;
    display: block;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease; /* Smooth hover effects */
}

/* Content - Bottom-aligned with white text */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent,80%);
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through */
    min-height: unset; /* Ensure no extra height */
}

.compact-title {
    font-size: 14px !important;
    color: #fff !important; /* Forced white */
    margin: 0;
    line-height: 1.4 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    width: 100%;
    font-weight: normal !important;
    letter-spacing: 0.01em !important;
    padding: 0 !important;
}

/* Navigation - Adjusted */
.swiper-button-next,
.swiper-button-prev {
    transform: scale(0.7);
    opacity: 0.8;
    z-index: 3; /* Ensure buttons stay above content */
}

/* Hover Effects */
.slide-link:hover .slide-image {
    opacity: 0.9;
    transform: scale(1.02);
}
.slide-link:hover .slide-content {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .vperfumes-swiper,
    .swiper-container,
    .swiper-wrapper,
    .swiper-slide {
        height: 220px;
        min-height: 220px;
    }
    .swiper-slide {
        width: 100% !important;
    }
    .slide-image {
        height: 100% !important;    /* Fill the whole slide vertically */
    }
    .slide-content {
        padding: 12px 15px;
    }
    .compact-title {
        font-size: 13px;
    }
}

/************************** Recent Posts Grid *********************/

/* Main Container */
.penci-wrapper-posts-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Posts Grid */
.penci-archive__list_posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Post Item */
.penci-post-item {
    margin-bottom: 30px;
}

.penci-post-item__inner {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.penci-post-item__inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Image */
.penci-image-holder {
    display: block;
    position: relative;
    padding-top: 66.66%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.penci-image-holder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.penci-image-holder:hover img {
    transform: scale(1.05);
}

/* Content */
.penci_post_content {
    padding: 20px;
}

.penci__post-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.penci__post-title a {
    color: #111;
    text-decoration: none;
}

.penci__post-title a:hover {
    color: #d33;
}

/* Meta */
.penci_post-meta {
    font-size: 12px;
    color: #777;
}

.penci_post-meta .date:before {
    content: "•";
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .penci-archive__list_posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .penci-archive__list_posts {
        grid-template-columns: 1fr;
    }
}

/*****************Magazine Archive code**********************/

.vf-magazine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    justify-content: center;
    margin: 40px auto 0 auto;
    max-width: 1200px;
}

.vf-magazine-item {
    flex: 0 0 31%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.vf-magazine-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.vf-magazine-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 62%; /* ~16:10 aspect ratio */
    overflow: hidden;
}

.vf-magazine-thumb-link {
    display: block;
    height: 100%;
    width: 100%;
}

.vf-magazine-thumb {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-magazine-cat {
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    background: #fff;
    color: #b6004c; /* Change to your preferred accent */
    font-size: 13px;
    padding: 4px 18px;
    border-radius: 3px 3px 0 0;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    letter-spacing: 0.05em;
}

.vf-magazine-content {
    text-align: center;
    padding: 26px 18px 20px 18px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.vf-magazine-title {
    font-size: 0.9rem !important;
    font-weight: 700;
    margin: 22px 0 10px 0;
    text-transform: uppercase;
    line-height: 1.3;
}

.vf-magazine-title a {
    color: #222;
    text-decoration: none;
}

.vf-magazine-title a:hover {
    color: #b6004c;
}

.vf-magazine-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
}
.vf-magazine-meta .dot {
    color: #d2d2d2;
    margin: 0 7px;
}

.vf-magazine-excerpt {
    font-size: 0.9rem !important;
    color: #333;
    margin-bottom: 18px;
    min-height: 54px;
}

.vf-magazine-share {
    margin: 0 auto 0 auto;
    text-align: center;
}
.vf-magazine-share a {
    display: inline-block;
    margin: 0 7px;
    color: #888;
    font-size: 16px;
    transition: color 0.2s;
}
.vf-magazine-share a:hover {
    color: #b6004c;
}

/* Responsive */
@media (max-width: 991px) {
    .vf-magazine-item { flex: 0 0 47%; }
}
@media (max-width: 650px) {
    .vf-magazine-item { flex: 0 0 100%; }
    .vf-magazine-title { font-size: 1rem; }
}
