/* Main Container */


.apc-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Slider */
.apc-slider {
    position: relative;
    overflow: hidden;
}

/* Slide */
.apc-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apc-slide.active {
    display: block;
    opacity: 1;
}

/* Slide Grid - 2x2 layout */
.apc-slide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    min-height: 580px;
    /* Adjust based on your needs */
}

/* Cards */
.apc-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 500px;
    border-radius: 5px;
}

.apc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.apc-card-inner {
    position: relative;
    height: 100%;
}

/* Background Image */
.apc-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.apc-card:hover .apc-bg {
    transform: scale(1.05);
}



.heading{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    z-index: 2;
}

/* ================= TAG FILTER TOP ================= */

.apc-tags-filter {
    margin-bottom: 40px;
    margin-left: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Individual Tag */
.apc-tag {
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    color: #7c736a;
    position: relative;
    padding: 6px 14px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* Hover */
.apc-tag:hover {
    color: #000;
}

/* Active Tag */
.apc-tag.active {
    color: #000;
}

/* Underline effect (gold like screenshot) */
.apc-tag.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #c5a46d;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 768px) {
    .apc-tags-filter {
        margin-left: 0;
        justify-content: center;
        text-align: center;
    }

    .apc-tag {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .apc-tags-filter {
        gap: 6px;
    }

    .apc-tag {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* Top Meta */
.apc-top-meta {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #ffffffe6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
    line-height: 10px;
    font-weight: 600;
    font-family: 'Inter';
}

.meta_tag{
    color: #ffffff99;
    font-size: 13px;
    margin-top: 5px;
}

/* Overlay */
.apc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    z-index: 2;
}

.apc-overlay h3 {
    margin: 0 0 12px 0;
    font-size: 28px !important;
    line-height: 1.3;
    font-weight: 700;
}

.apc-title-link {
    color: white !important;
    text-decoration: none;
    font-weight: 700 !important;
    font-size: 22px !important;
    font-family: "Playfair Display", Georgia, serif !important;
        line-height: 1.375;
}

.apc-title-link h3{
    margin: 0px;
    font-size: 22px;
    line-height: 1.375;
    font-weight: 700;
    font-family: "Playfair Display", Georgia, serif;
    padding-bottom: 10px;
    border-bottom: solid thin #ffffff4d;
}

.apc-title-link:hover {
        color: rgb(215, 215, 215) !important;
}

.apc-overlay hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Meta Info */
.apc-meta {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.apc-views,
.apc-comments {
    margin-right: 30px;
    font-size: 14px;
}

/* Like Button */
.apc-like {
    position: absolute;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
    font-size: 14px;
    z-index: 3;
    transition: transform 0.2s ease;
    font-weight: normal;
}

.apc-like:hover {
    transform: scale(1.2);
}

.apc-like em {
    font-style: normal;
    margin-left: 4px;
}

/* Navigation */
.apc-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.apc-prev,
.apc-next {
    background: #333;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease;
    display: none;
}

.apc-prev:hover,
.apc-next:hover {
    background: #555;
}

.apc-dots {
    display: flex;
    gap: 10px;
}

.apc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: unset;
    border: solid 2px #696969;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apc-dot.active {
    background: #696969;
}

/* Responsive */
@media (max-width: 1024px) {
    .apc-slide-grid {
        gap: 15px;
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .apc-slide-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        min-height: 1200px;
    }

    .apc-card {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .apc-slider-container {
        padding: 10px;
    }

    .apc-slide-grid {
        gap: 10px;
        min-height: 1000px;
    }

    .apc-overlay h3 {
        font-size: 16px;
    }
}

/* Existing carousel styles (unchanged) ... */

/* New styles for Grid & Masonry 
.apc-posts-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
*/
.apc-posts-grid {
    display: grid;
    gap: 20px;
}

/* Grid layout */
.apc-posts-container.layout-grid .apc-posts-grid {
    grid-template-columns: repeat(var(--apc-cols, 3), 1fr);
}

/* Masonry layout using CSS columns */
.apc-posts-container.layout-masonry .apc-posts-grid {
    display: block;
    column-count: var(--apc-cols, 3);
    column-gap: 20px;
}

.apc-posts-container.layout-masonry .apc-card {
    break-inside: avoid;
    margin-bottom: 20px;
    height: auto; /* Let content determine height */
}

.apc-posts-container.layout-masonry .apc-card .apc-bg {
    height: 200px; /* Fixed height for image consistency */
    position: relative;
}

.apc-posts-container.layout-masonry .apc-card  .heading {
    position: relative !important; /* Change from absolute to relative for masonry */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 20px;
}

/* Column classes */
.apc-posts-container.cols-1 { --apc-cols: 1; }
.apc-posts-container.cols-2 { --apc-cols: 2; }
.apc-posts-container.cols-3 { --apc-cols: 3; }
.apc-posts-container.cols-4 { --apc-cols: 4; }
.apc-posts-container.cols-5 { --apc-cols: 5; }
.apc-posts-container.cols-6 { --apc-cols: 6; }

/* Load More button */
.apc-loadmore-wrapper {
    text-align: center;
    margin-top: 30px;
}

.apc-loadmore-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.apc-loadmore-btn:hover {
    background: #555;
}

.apc-loadmore-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .apc-posts-container.layout-grid .apc-posts-grid,
    .apc-posts-container.layout-masonry .apc-posts-grid {
        --apc-cols: 2 !important;
    }
}

@media (max-width: 480px) {
    .apc-posts-container.layout-grid .apc-posts-grid,
    .apc-posts-container.layout-masonry .apc-posts-grid {
        --apc-cols: 1 !important;
    }
}
.apc-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.apc-grid {
    display: grid;
    gap: 20px;
}

.layout-grid .apc-grid {
    grid-template-columns: repeat(3,1fr);
}

.layout-masonry .apc-grid {
    column-count: 3;
    column-gap: 20px;
}

.layout-masonry .apc-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.apc-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 6px;
}

.apc-bg {
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
}

.apc-overlay {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:20px;
    background:linear-gradient(to top,rgba(0,0,0,0.8),transparent);
    color:#fff;
    height: -webkit-fill-available;
}

.apc-overlay h3 {
    margin:0;
    font-size:20px;
}

.apc-load-wrap {
    text-align:center;
    margin-top:20px;
}

.apc-load-more {
    padding:10px 20px;
    border:none;
    background:#333;
    color:#fff;
    cursor:pointer;
}


/* New styles for masonry layout */
.apc-posts-container.layout-masonry .apc-posts-grid.masonry-grid {
    display: block;
    column-count: var(--apc-cols, 3);
    column-gap: 20px;
}

.apc-posts-container.layout-masonry .apc-card.masonry-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.apc-posts-container.layout-masonry .apc-card.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.apc-posts-container.layout-masonry .apc-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.apc-posts-container.layout-masonry .apc-card-top-meta {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 14px;
    line-height: 1.4;
    z-index: 2;
}

.apc-posts-container.layout-masonry .apc-card-top-meta .apc-category {
    font-weight: 600;
}

.apc-posts-container.layout-masonry .apc-card-top-meta .apc-date {
    font-size: 12px;
    opacity: 0.9;
}

.apc-posts-container.layout-masonry .apc-card-content {
    padding: 20px;
    background: #fff;
}

.apc-posts-container.layout-masonry .apc-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.4;
    color: #333;
}

.apc-posts-container.layout-masonry .apc-card-content hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #eee;
}

.apc-posts-container.layout-masonry .apc-meta-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.apc-posts-container.layout-masonry .apc-meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.apc-posts-container.layout-masonry .apc-meta-stats .apc-like {
    cursor: pointer;
    color: #e84a43;
}

.apc-posts-container.layout-masonry .apc-meta-stats .apc-like em {
    font-style: normal;
}

.apc-posts-container.layout-masonry .apc-meta-stats svg {
    width: 16px;
    height: 16px;
}

/* Responsive adjustments for masonry */
@media (max-width: 768px) {
    .apc-posts-container.layout-masonry .apc-posts-grid.masonry-grid {
        column-count: 2 !important;
    }
}

@media (max-width: 480px) {
    .apc-posts-container.layout-masonry .apc-posts-grid.masonry-grid {
        column-count: 1 !important;
    }
}
