.capw-wrap{max-width:100%;margin:auto}

.capw-grid-area {
    position: relative;
    height: auto;
}

.capw-grid-area.loading #capw-posts {
    opacity: 0.3;
}

/*#capw-posts {
    column-count: 4;
    column-gap: 0;
}*/

#capw-posts {
    display: block; /* Masonry needs normal flow */
}

/* Default (Large screens) → 4 columns */
#capw-posts .card-blog-post {
    width: calc(25% - 20px);
    margin-bottom: 20px;
}

/* Laptop (≤1200px) → 3 columns */
@media (max-width: 1440px) {
    #capw-posts .card-blog-post {
        width: calc(33.33% - 20px);
    }
}

/* Tablet (≤768px) → 2 columns */
@media (max-width: 768px) {
    #capw-posts .card-blog-post {
        width: calc(50% - 20px);
    }
}

/* Mobile (≤480px) → 1 column */
@media (max-width: 480px) {
    #capw-posts .card-blog-post {
        width: 100%;
    }
}

/*.card-blog-post{
    overflow:hidden;
    background:#fff;
}*/

/*.card-blog-post {
    width: 100%;
    display: block;
    padding: 12px;
    box-sizing: border-box;
}
*/
#related-capw-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

#related-capw-posts .card-blog-post {
    padding: 0px;
}

.kg-related-posts {
    margin-top: 80px;
}

.kg-title-menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.kg-title-menu h2 {
    text-transform: capitalize;
    font-family: "Avenir Regular", Sans-serif !important;
    font-weight: 400;
}

#related-capw-posts .content-blog-post h2 {
    font-family: "Avenir Regular", Sans-serif !important;
    font-size: 18px;
    margin-bottom: 10px;
    color: #303030;
    text-transform: capitalize !important;
    font-weight: 400;
    min-height: 50px;
}

#related-capw-posts .thumb{
    height: 190px !important;
}

#related-capw-posts .thumb img {
    height: 190px !important;
    object-fit: cover;
    box-sizing: border-box;

}


@media (max-width: 1024px) {
    #related-capw-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    #related-capw-posts {
        grid-template-columns: 1fr;
    }
}



/* FIX image stretching */
.thumb {
    height: auto !important;
}

.thumb img {
    width: 100%;
    height: auto !important;
    display: block !important;
}

/* Responsive */
@media (max-width: 1024px){
    #capw-posts { column-count: 3; }
}

@media (max-width: 768px){
    #capw-posts { column-count: 2; }
}

@media (max-width: 480px){
     #capw-posts { column-count: 1; }
}



.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
}

.date-blog-post{
    position:absolute;
    top:15px;
    right:15px;
    background:#005577;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
}

.content-blog-post{padding:24px;}

.content-blog-post h2{
    font-family: "Avenir Regular", Sans-serif !important;
    font-size: 26px;
    margin-bottom: 10px;
    color: #303030;
    text-transform: capitalize !important;
    font-weight: 400;
}

.content-blog-post h2:hover
{
    color: #57bbbf;
}

.content-blog-post h2:hover + .post-excerpt
{
    color: #57bbbf;
}

.content-blog-post p{
    font-family: "Avenir Regular", Sans-serif;
    color:#303030;
    font-size:14px;
}


.capw-cats .active{
    color:#EE7725;
}

/*#capw-search {
    width: 40%;
    padding: 12px;
    border: 1px solid #005577;
    margin: 0 auto;
    display: block;
    margin-bottom: 15px;
}

#capw-search:focus-visible{
    outline: 0px;
}*/

.capw-cats {
    margin-bottom: 20px;
    padding: 12px;
}

.capw-cats a {
    font-size: 18px;
    margin-right: 40px;
}

.capw-cats a:hover{
    color: #EE7725;
}
.capw-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    display: none;
    z-index: 10;
}

.loader-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #eee;
    border-top: 4px solid #EE7725;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 🔥 THIS LINE FIXES IT */
    gap: 10px;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px !important;
    line-height: 18px;
    color: #303030;
}

.author-info img {
    border-radius: 50% !important;
}

.menu-dots {
    margin-left: auto; /* pushes it fully right */
    font-size: 22px;
    cursor: pointer;
}

.kg-divider {
    height: 1px;
    background: #cfcfcf;
    margin: 20px 0px;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Remove default icon completely */
.blog_like a.qode-like:before,
.blog_like a.qode-like span:before,
.blog_like a.qode-like i {
    display: none !important;
    content: none !important;
}

/* Layout */
.blog_like a.qode-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #303030;
}

/* Add heart AFTER number */
.blog_like a.qode-like::after {
   /* content: "♡";
    font-size: 24px;
    color: #777;*/
    content: 'W';
    font-family: linea-basic-10 !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    /*margin-bottom: 15px;*/
    display: block;
    color: #303030;
}

/* When liked */
.blog_like a.qode-like.liked::after {
    /*content: "♥";*/
    content: 'W';
    font-family: linea-basic-10 !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    /*margin-bottom: 15px;*/
    display: block;
    color: red;
}

.blog_like span {
    display: none !important;
}

#related-capw-posts span.views {
    font-size: 12px;
    color: #303030;
    display: flex;
    align-items: center;
    gap: 6px;
}

span.views {
    font-size: 12px;
    color: #303030;
}



/*  CSS (Dropdown + Popup)  */

.menu-wrapper {
    position: relative;
}

/* dots */
.menu-dots {
    cursor: pointer;
    font-size: 20px;
    width: 40px;
    text-align: right;
}

/* dropdown */
.kg-menu-dropdown {
    position: absolute;
    right: 0;
    top: 30px;
    background: #fff;
    border-radius: 4px;
    padding: 12px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: none;
    z-index: 99;
    width: 130px;
    color: #303030;
}

.kg-menu-dropdown .share-trigger {
    display: flex;
    align-items: center;   /* ✅ vertical center */
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1;        /* ✅ remove extra height issue */
}

/* modal */
.capw-share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.capw-share-box {
    background: #fff;
    padding: 60px;
    text-align: center;
    width: 450px;
}

.kg-menu-dropdown .share-trigger svg {
    display: block;        /* ✅ removes inline spacing issue */
    width: 16px;
    height: 16px;
}

.capw-share-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.capw-share-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    font-size: 19px;
}

/* Facebook */
.share-facebook {
    background: #1877F2;
}

/* X (Twitter) */
.share-x {
    background: #000000;
}

/* LinkedIn */
.share-linkedin {
    background: #0A66C2;
}

/* Copy Link */
.share-copy {
    background: #555555;
}

.capw-share-box h4 {
    font-family: "Avenir Regular", Sans-serif !important;
    margin-bottom: 30px;
}

.capw-share-icons a:hover{
    color: #fff;
}

.share-copy {
    position: relative;
    display: inline-block;
}

.copy-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Arrow */
.copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show animation */
.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.capw-scroll-loader {
    display: none;
    text-align: center;
    padding: 25px 0;
}

/* Dot Loader */
.dot-loader {
    display: inline-flex;
    gap: 8px;
}

.dot-loader span {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    display: block;
    animation: bounce 1.2s infinite ease-in-out;
}

/* Delay for each dot */
.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.5);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.no-more {
    font-size: 14px;
    color: #303030;
    margin: 0;
}

.capw-search-box {
    position: relative;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 1140px;
    display: block;
}

.capw-search-input-wrap{
    position: relative;
}

#capw-search {
    font-family: "Avenir Regular", Sans-serif !important;
    width: 520px;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ccc;
    outline: none;
    color: #303030;
    box-sizing: border-box;
}

/*.archive.category #capw-search {
    width: 498px;
}*/

/* ICON */
.capw-search-icon{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.capw-search-icon svg{
    fill: #666;
}

/* DROPDOWN */
.capw-search-results{
    position: absolute;
    top: 100%;
    left: 0;
    width: 520px;
    background: #fff;
    border: 1px solid #000;
    display: none;
    z-index: 999;
    padding: 15px;
    box-sizing: border-box;
}

/* HEADING */
.search-heading{
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

/* ITEM */
.search-item{
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #000;
}

.search-thumb img{
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
}

.search-content h4 {
    font-size: 14px;
    margin: 0;
    font-family: "Avenir Regular", Sans-serif !important;
    text-transform: uppercase;
}

.search-thumb {
    display: contents;
    width: 60px !important;
    height: 60px !important;
}

.search-content p{
    font-size: 12px;
    color: #666;
}

/* FOOTER */
.search-footer{
    border-top: 1px solid #eee;
    padding-top: 8px;
    font-size: 13px;
}

.search.search-results .title_holder{
    padding-top: 0px !important;
}

.search.search-results  .title.title_size_small.position_left{
    height: auto !important;
}

.archive.category .capw-wrap, .archive.tag .capw-wrap {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 10px;
    padding-right: 10px;
    background: #fff;
}

.archive.category .capw-cats {
    padding-left: 10px;
    padding-right: 10px;
}

@media(max-width: 767px){

    .capw-search-box {
        width: 100%;
    }
    #capw-search {
        width: 100%;
        box-sizing: border-box;
    }

    .capw-search-results {
        width: 100%;
        box-sizing: border-box !important;
    }

    .capw-cats a {
        font-size: 16px;
        margin-right: 20px;
    }
    
}

@media (min-width: 768px) and (max-width: 1024px){

   .capw-search-box {
        width: 100%;
    }
    #capw-search {
        width: 100%;
        box-sizing: border-box;
    }

    .capw-search-results {
        width: 100%;
        box-sizing: border-box !important;
    }

    .capw-cats a {
        font-size: 16px;
        margin-right: 20px;
    }
}


/*.cat-more {
    position: relative;
    display: inline-block;
}

.cat-more span {
    cursor: pointer;
    padding: 8px 12px;
    display: inline-block;
}

.cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f5f5f5;
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 99;
}

.cat-dropdown a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cat-more:hover .cat-dropdown {
    display: block;
}*/

#latest-capw-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card */
#latest-capw-posts .card-blog-post {
    position: relative;
    overflow: hidden;
    height: 292px !important;
}

/* Image */
#latest-capw-posts .card-blog-post .thumb {
    position: relative;
    height: 292px !important;
    overflow: hidden;
}

#latest-capw-posts .card-blog-post img {
    width: 100%;
    height: 292px !important;
    object-fit: cover;
    display: block;
}

/* Dark overlay */
#latest-capw-posts .card-blog-post .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    transition: 0.3s ease;
}

/* Content on image */
#latest-capw-posts .card-blog-post .card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
}

/* Date */
#latest-capw-posts .card-blog-post .meta {
    position: absolute;
    top: 40px;
    left: 20px;
    z-index: 2;
    font-size: 13px;
    color: #fff;
    opacity: 0.9;
    display: block !important;
}

/* Title */
#latest-capw-posts .card-blog-post .post-title {
    font-family: "Avenir Regular", Sans-serif !important;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    text-transform: capitalize;
}


.card-blog-post:hover .post-title {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    #latest-capw-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    #latest-capw-posts {
        grid-template-columns: 1fr;
    }
}