/* ----------------------------------------------------
   Base Archive Widget Styles
---------------------------------------------------- */

.wf-archive-grid {
  display: grid;
  grid-template-columns: repeat(var(--eaw-columns, 3), 1fr);
  gap: var(--eaw-gap, 20px);
}

/* .eaw-archive {
  display: grid;
} */

/* Shared Item Styles */
.wf-archive-item {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wf-archive-item a {
  text-decoration: none !important;
  color: inherit;
}

.wf-archive-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: fill;
}

.wf-archive-title {
  margin: 10px 0 6px;
  font-size: 18px;
}

.wf-archive-excerpt {
  color: #555;
  font-size: 14px;
}

.wf-archive-category {
  margin-bottom: 8px;
  text-transform: capitalize;
}

.wf-archive-date{
   margin-bottom: 8px;
}
.wf-archive-meta {
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
  margin-bottom: 8px;
}

.wf-archive-meta-more {
  font-size: 15px;
  color: #888;
  display: flex;
  align-items: center;
  margin: 10px 0px;
}
.wf-archive-meta-more a{
    text-decoration: none !important;
}

/* =========== Layout ============= */

.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin-top: 20px;
}
.layout-card {
    border: 2px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
}
.layout-card:hover {
    border-color: #0073aa;
}

.layout-card input {
    margin-right: 10px;
}
/* Highlight selected */
.layout-card.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}
@media (max-width: 600px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}


/* =======================================================
          CARD COMPONENT STYLES
   ======================================================= */

.wf-archive-card {
    width: 100%;
    max-width: 1400px;
    background: white;
    display: flex;
    gap: 40px;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    align-items: center;
    margin: auto;
}

.wf-archive-card-left {
    width: 40%;
    position: relative;
}

.wf-archive-category-badge-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* spacing between badges */
}

.wf-archive-category-badge {
    background: #e3dbff;
    color: #5137d7;
    padding: 6px 18px;
    font-size: 18px;
    border-radius: 20px;
    font-weight: 600;
}

.wf-archive-category-badge a {
    color: inherit;
    text-decoration: none !important;
}

.wf-archive-card-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.wf-archive-image-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.wf-archive-card-right {
    width: 60%;
}

.wf-archive-card-title {
    font-size: 30px;
    color: #0a2342;
    margin-bottom: 15px;
    line-height: 1.2;
}
.wf-archive-card-title a {
    text-decoration: none !important;
}

.wf-archive-card-desc {
    font-size: 22px;
    color: #445069;
    margin-bottom: 35px;
}

.wf-archive-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 18px;
    color: #444;
    opacity: 0.9;
}
.wf-archive-card-meta .author{
    margin-bottom: 10px;
    text-transform: capitalize;
}
.wf-archive-card-meta .date{
    margin-bottom: 10px;
    text-transform: capitalize;
}

.wf-archive-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wf-archive-card-excerpt{
    font-size: 18px;
}
.wf-archive-card_read-more {
    font-size: 18px;
    color: #888;
    display: flex;
    align-items: center;
    margin: 15px 0px;
}

.wf-archive-card_read-more a{
    text-decoration: none !important;
}


/* ---------- Tablet (max-width: 992px) ---------- */

@media (max-width: 992px) {

    .wf-archive-card {
        flex-direction: column;
        padding: 25px;
        gap: 30px;
    }

    .wf-archive-card-left, 
    .wf-archive-card-right {
        width: 100%;
    }

    .wf-archive-card-title {
        font-size: 32px;
    }

    .wf-archive-card-desc {
        font-size: 18px;
    }

    .wf-archive-card-meta {
        font-size: 18px;
    }

    .wf-archive-category-badge {
        font-size: 16px;
        padding: 4px 14px;
    }

    .wf-archive-image-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}


/* ---------- Mobile (max-width: 600px) ---------- */

@media (max-width: 600px) {

    body {
        padding: 20px;
    }

    .wf-archive-card {
        padding: 20px;
        gap: 20px;
        border-radius: 16px;
    }

    .wf-archive-card-image {
        border-radius: 15px;
    }

    .wf-archive-card-title {
        font-size: 26px;
    }

    .wf-archive-card-desc {
        font-size: 16px;
    }

    .wf-archive-card-meta {
        font-size: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .wf-archive-image-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .wf-archive-category-badge {
        font-size: 14px;
        padding: 3px 12px;
        top: 15px;
        left: 15px;
    }
}


/* =======================================================
          PORTRAIT BLOG CARD COMPONENT STYLES
   ======================================================= */

    .wf-container 
    {
        max-width: 1200px;
        margin: 0 auto;
    }
            
    .wf-blog-card {
        display: flex;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        overflow: hidden;
    }
    
    .wf-card-content {
        flex: 3;
        padding: 20px;
    }

    .wf-card-image {
        flex: 1;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .wf-card-image img {
        width: 65%;
        height: 65% !important;
        object-fit: cover;
        border-radius: 10px !important;
    }

    .wf-card-title {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 10px;
        color: #333;
        text-decoration: none;
    }

    .wf-card-title a {
        text-decoration: none !important;
        color: inherit;
    }

    .wf-card-meta {
        display: flex;
        margin-bottom: 15px;
        font-size: 14px;
        color: #666;
    }

    .wf-author {
        margin-right: 15px;
        text-transform: capitalize;
    }

    .wf-date {
        margin-right: 15px;
    }

    .wf-card-excerpt {
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .wf-card-tags {
        margin-bottom: 15px;
        border-top: 1px solid #d4d3d3;
        padding-top: 12px;
    }

    .wf-tag {
        display: inline-block;
        padding: 5px 10px;
        margin-right: 8px;
        margin-bottom: 8px;
        font-size: 14px;
        text-transform: capitalize;
    }

    .wf-tag a {
        color: #555;
        text-decoration: none !important;
        transition: color 0.3s ease;
    }

    .wf-tag_line:nth-child(1) {
        color: #e74c3c;
    }

    .wf-tag_line:nth-child(2) {
        color: #3498db;
    }

    .wf-tag_line:nth-child(3) {
        color: #2ecc71;
    }

    .wf-tag_line:nth-child(4) {
        color: #f39c12;
    }

    .wf-tag_line:nth-child(5) {
        color: #9b59b6;
    }

    .wf-tag_line:nth-child(6) {
        color: #1abc9c;
    }

    .wf-tag_line:nth-child(7) {
        color: #34495e;
    }

    .wf-tag_line:nth-child(8) {
        color: #e67e22;
    }

    .wf-tag_line:nth-child(9) {
        color: #16a085;
    }

    .wf-tag:nth-child(1) a:hover {
        color: #e74c3c;
    }

    .wf-tag:nth-child(2) a:hover {
        color: #3498db;
    }

    .wf-tag:nth-child(3) a:hover {
        color: #2ecc71;
    }

    .wf-tag:nth-child(4) a:hover {
        color: #f39c12;
    }

    .wf-tag:nth-child(5) a:hover {
        color: #9b59b6;
    }

    .wf-tag:nth-child(6) a:hover {
        color: #1abc9c;
    }

    .wf-tag:nth-child(7) a:hover {
        color: #34495e;
    }

    .wf-tag:nth-child(8) a:hover {
        color: #e67e22;
    }

    .wf-tag:nth-child(9) a:hover {
        color: #16a085;
    }

    .wf-read-more {
        font-size: 14px;
        color: #888;
        display: flex;
        align-items: center;
    }

    .wf-read-more a {
        text-decoration: none !important;
    }




/* -----------------------------------
   TRUE MASONRY LAYOUT (CSS Columns)
----------------------------------- */
    /* Masonry Container */
    .wf-masonry-columns {
        column-count: 3;
        /* column-gap: 20px; */
    }

    @media screen and (max-width: 992px) {
        .wf-masonry-columns {
            column-count: 2;
        }
    }

    @media screen and (max-width: 600px) {
        .wf-masonry-columns {
            column-count: 1;
        }
    }

    /* Masonry Items */
    .wf-masonry-item {
        break-inside: avoid;
        /* margin-bottom: 20px; */
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        animation: fadeIn 0.6s ease forwards;
    }
    .wf-masonry-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    /* Featured Image */
    .wf-featured-image-wrapper {
        position: relative;
    }

    .wf-masonry-item .wf-featured-image {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .wf-masonry-item:hover .wf-featured-image {
        transform: scale(1.05);
    }

    /* Overlay */
    .wf-masonry-item .wf-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .wf-masonry-item:hover .wf-image-overlay {
        opacity: 1;
    }

    /* Category Badge */
    .wf-masonry-item .wf-category-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background-color: rgba(0, 102, 204, 0.9);
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 2;
    }

    /* Content */
    .wf-masonry-item .wf-post-content {
        padding: 15px;
    }

    .wf-masonry-item .wf-post-title {
        margin: 0 0 10px;
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .wf-masonry-item .wf-post-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .wf-masonry-item .wf-post-title a:hover {
        color: #0066cc;
    }

    .wf-masonry-item .wf-post-meta {
        font-size: 0.9rem;
        color: #666;
        /* margin-bottom: 10px; */
    }

    .wf-masonry-item .wf-post-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
    }

    /* Fade animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Stagger animation */
    .wf-masonry-item:nth-child(1) { animation-delay: 0.1s; }
    .wf-masonry-item:nth-child(2) { animation-delay: 0.2s; }
    .wf-masonry-item:nth-child(3) { animation-delay: 0.3s; }
    .wf-masonry-item:nth-child(4) { animation-delay: 0.4s; }
    .wf-masonry-item:nth-child(5) { animation-delay: 0.5s; }
    .wf-masonry-item:nth-child(6) { animation-delay: 0.6s; }
    .wf-masonry-item:nth-child(7) { animation-delay: 0.7s; }
    .wf-masonry-item:nth-child(8) { animation-delay: 0.8s; }
    .wf-masonry-item:nth-child(9) { animation-delay: 0.9s; }


    




/* ----------------------------------------------------
       RESPONSIVE BREAKPOINTS
---------------------------------------------------- */

@media (max-width: 900px) {
  .eaw-grid { grid-template-columns: repeat(2, 1fr); }
  .eaw-masonry { column-count: 2; }
}

@media (max-width: 600px) {
  .eaw-grid { grid-template-columns: 1fr; }
  .eaw-masonry { column-count: 1; }
}

/* ----------------------------------------------------
   NUMERIC PAGINATION STYLES
---------------------------------------------------- */
.eaw-pagination { 
  margin-top: 20px; 
  display: flex;
  justify-content: center;
}

.eaw-pagination .page-numbers { 
  display: inline-block; 
  padding: 8px 12px; 
  margin-right: 6px; 
  background: #f5f5f5; 
  border-radius: 4px; 
  text-decoration: none; 
  color: #333; 
}

.eaw-pagination .current { 
  background: #333; 
  color: #fff; 
}


/* ----------------------------------------------------
  NEXT PREVIOUS PAGINATION STYLES
---------------------------------------------------- */

.eaw-pagination.eaw-prev-next {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  position: relative;
  justify-content: center;
  margin: 25px 0px;
}

.eaw-prev a,
.eaw-next a {
  padding: 8px 16px;
  background: #f2f2f2;
  border-radius: 4px;
  text-decoration: none;
}


/* ----------------------------------------------------
  LOAD MORE PAGINATION STYLES 
---------------------------------------------------- */

.eaw-load-more {
    text-align: center;
    margin-top: 30px;
}

.eaw-loadmore-btn {
    padding: 12px 30px; 
    background: #0073aa;
    color: #fff;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
}

.eaw-loadmore-btn:hover {
    background: #005f8d;
    color: #fff !important;
    text-decoration: underline;
}

.eaw-loadmore-btn:active {
    background: #005f8d;
    color: #fff !important;
    text-decoration: underline;
}

/* ----------------------------------------------------
  SELECT DROP DOWN PAGINATION STYLES
---------------------------------------------------- */

/* Wrapper styling */
.eaw-select-pagination {
    text-align: center;
    margin-top: 25px;
}

/* Select box styling */
.eaw-select-pagination select {
    padding: 10px 16px;
    font-size: 16px;
    background: #f7f7f7;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
    width: 160px;
}

/* Hover */
.eaw-select-pagination select:hover {
    background: #eaeaea;
    border-color: #c0c0c0;
}

/* Focus / active */
.eaw-select-pagination select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    background: #fff;
}

/* Option styling (for supported browsers) */
.eaw-select-pagination select option {
    padding: 8px;
    font-size: 15px;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .eaw-select-pagination select {
        width: 100%;
        font-size: 15px;
        padding: 10px;
    }
}

/* Fix for Astra theme conflict */
@media (min-width: 922px) {
    .ast-narrow-container .site-content > .ast-container {
        max-width: 1240px !important;
    }
}

