/* ── DWK Blog Manager Pro – Frontend Styles ── */

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.dwk-blog-wrap {
    display: flex;
    gap: 32px;
    max-width: 1450px;
    margin: 0 auto;
    padding: 80px 16px 24px 16px;
    font-family: 'Instrument Sans', sans-serif;
}

.dwk-main-content { flex: 1; min-width: 0; }

.dwk-sidebar { width: 365px; flex-shrink: 0; }

@media (max-width: 900px) {
    .dwk-blog-wrap  { flex-direction: column; }
    .dwk-sidebar    { width: 100%; }
}


.blog-detail-img-banner {
    position: relative;
    width: 100%;
    height: 500px; 
    overflow: hidden;
}

.blog-detail-img-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay effect (optional but recommended) */
.blog-detail-img-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:#192B4380;
}

/* Title styling */
.blog-detail-title-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
    color: #fff;
    font-size: 60px;
    font-weight: 500;
    z-index: 2;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-detail-img-banner {
        height: 250px;
    }

    .blog-detail-title-banner {
        font-size: 22px;
          left: 10%;
    right: 10%;
    transform: unset;

    }
}


/* ── Filter Bar ─────────────────────────────────────────────────────────────── */
.dwk-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

/* ── Category Dropdown ──────────────────────────────────────────────────────── */
.dwk-cat-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dwk-cat-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background:  #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 42px 10px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    min-width: 200px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.dwk-cat-dropdown:hover,
.dwk-cat-dropdown:focus {
    border-color:  #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.dwk-cat-dropdown-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color:  #64748b;
    display: flex;
    align-items: center;
}

/* ── Grid ───────────────────────────────────────── */
.dwk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .dwk-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dwk-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.blog-card {
    background:  #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
padding:0px;
margin: 0px;
border: 1px solid #07090B1A;
}


.blog-card-img-wrap img {
    width: 100%;
    height: 320px!important;
    object-fit: cover;
	    display: block;
    transition: transform .3s;
    padding: 10px;
}


.blog-card-body {
    padding:0px;


}

.dwk-card-cat {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 0px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
  
    color:  #2563eb;
}

.blog-card-title {
    font-size:22px;
    margin: 0 0 10px;
    font-weight: 500;
    color: #0B2C3D;
    padding:20px 20px 0px 20px;
}

.blog-card-title a {
    color: #0B2C3D;
    text-decoration: none;
}

.blog-card-title a:hover { color:   #0B2C3D;}
.blog-card-title a {
    display: inline-block;
    max-width:90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-card-cat-link{
    font-size: 12px;
    color: #0B2C3D;
    font-weight: 500;
    padding:0px 20px ;

}
.blog-card-excerpt {
    color:  #666666;
    font-size: 16px;
    font-weight: 400;
   line-height: 29px;
  padding:0px 20px ;
    margin: 14px 0px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid  #07090B1A;
}
.blog-card-meta{
    padding-left: 20px;
}
.blog-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size:12px;
    color:  #0B2C3D;
}

.blog-card-readmore {
    color:#FFFFFF;
    padding: 20px 30px;
    background-color: #C19F76;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: color .2s, background-color .6s;
}

.blog-card-readmore:hover {  background-color: #7D7E66; color:#FFFFFF; }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.dwk-pagination{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    justify-content: center;
    align-items: center;
}

.dwk-page-btn {
    width: 44px;
    height: 44px;
    border-radius: 6px;

    background: #F6F3ED;
    color: #0D2039;


    font-weight: 500;
	font-size:18px;
    transition: all .6s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.dwk-page-btn.active {
    background: #7D7E66;
    color:  #ffffff;
}

/* .dwk-page-arrow{
	font-size:28px;
	line-height:18px;
} */
.dwk-page-btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

/* ── Detail Page ────────────────────────────────────────────────────────────── */
.dwk-detail { overflow: hidden; margin-bottom: 32px; }

.dwk-detail-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.dwk-detail-body { padding: 32px 0; }

.blog-detail-title {
    font-size: 48px;
    line-height: 60px;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    margin: 12px 0 16px;
    color: #052E26;
    letter-spacing: -0.8px;
}

.dwk-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #132B49;
    font-size: 16px;
    line-height: 30px;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

.dwk-detail-meta span {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dwk-detail-content {
    line-height: 32px;
    color: #132B49;
    font-size: 18px;
}

.dwk-detail-content img { max-width: 100%; border-radius: 8px; }

/* ── Tags & Share Bar ───────────────────────────────────────────────────────── */
.dwk-detail-footer-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 20px;
}

.dwk-footer-tags {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dwk-share-btns {
    width: 40%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.dwk-label { font-size: 18px; line-height: 30px; }

.dwk-tag-item {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 18px;
    line-height: 30px;
    text-decoration: none;
    color: #132B49;
    transition: color .2s, background-color .2s;
}

.blog-tag-link {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color:  #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all .2s;
}

.blog-tag-link:hover {
    background: #0D2039;
    color: #fff;
    border-color: #0D2039;
}

.dwk-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform .3s;
}

.dwk-share-icon:hover { transform: scale(1.1); }

/* ── Comments ───────────────────────────────────────────────────────────────── */
.dwk-comments {
    background:  #ffffff;
    border-radius:  10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 28px;
}

.dwk-comments h3 {
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.dwk-comment {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: background .3s;
}

.dwk-comment:hover { background: #f1f1f1; }

.dwk-comment-hidden { display: none !important; }

.dwk-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dwk-comment-body { flex: 1; }

.dwk-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dwk-comment-author { font-weight: 700; color: #333; }

.dwk-comment-date { font-size: 12px; color: #888; }

.dwk-comment-text { font-size: 14px; color: #555; line-height: 1.5; }

.dwk-show-more-btn {
    display: block;
    margin: 16px auto 0;
    padding: 9px 24px;
    background: transparent;
    border: 1px solid  #2563eb;
    color: #2563eb;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.dwk-show-more-btn:hover { background:  #2563eb; color: #fff; }

@media (max-width: 600px) {
    .dwk-comment      { flex-direction: column; align-items: flex-start; }
    .dwk-comment-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── Comment Form ───────────────────────────────────────────────────────────── */
.dwk-comment-form {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
}

.dwk-comment-form h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.dwk-input,
.dwk-textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fafafa;
    box-sizing: border-box;
    transition: all .3s ease;
}

.dwk-input:focus,
.dwk-textarea:focus {
    border-color: #007bff;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,.1);
}

.dwk-btn {
    background:  #2563eb;
    color:  #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.dwk-btn:hover { background:  #2563eb; }

#dwk-comment-msg         { margin-top: 10px; font-size: 14px; }
#dwk-comment-msg.success { color: green; }
#dwk-comment-msg.error   { color: red; }

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.blog-widget {
    background: #F5F2F0;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 24px;
}

.blog-widget-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    line-height: 32px;
    color: #052E26;
}

.dwk-search-wrap { position: relative; }

.dwk-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background:  #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    z-index: 9999;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.dwk-search-dropdown.active { display: block; }

.dwk-search-list { list-style: none; margin: 0; padding: 0; }

.dwk-search-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color:#666666;
    font-size: .875rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background .15s;
}

.dwk-search-list li:last-child a { border-bottom: none; }
.dwk-search-list li a:hover      { background:  #f8fafc; }

.dwk-search-list img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.blog-no-thumb {
    width: 40px;
    height: 40px;
    background:  #f8fafc;
    border-radius: 4px;
    display: inline-block;
}

.blog-recent-list { list-style: none; margin: 0; padding: 0; }

.blog-recent-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-recent-list li:last-child { border-bottom: none; }

.blog-recent-thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.blog-recent-list a {
    color: #052E26;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.blog-recent-list a:hover { color: #000; }

.blog-recent-list span {
    font-size: 16px;
    color: #132B49;
    font-weight: 400;
    line-height: 30px;
}

.blog-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.blog-no-results { color:  #64748b; padding: 12px; text-align: center; }
