/* ============================================================
   NEWS / BLOG DETAILS PAGE - CUSTOM STYLING (v2)
   File: news-detail.css
   Path: public/frontend/assets/stylesheets/news-detail.css
   ============================================================ */

:root {
    /* ===== AAPKE LOGO KA BLUE COLOR YAHA SET KARO ===== */
    /* Abhi default ek professional blue set kiya hai,      */
    /* isko apne exact logo blue ke hex code se replace kar do */
    --news-blue: #1B4B91;
    --news-blue-dark: #123763;
    --news-blue-light: #EAF0FE;
}

/* ===== Meta Row (Date / Time / Status) ===== */
.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.blog-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.blog-meta-row span i {
    color: var(--news-blue);
}

/* ===== Status Badge ===== */
.blog-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.blog-status-badge.active {
    background: var(--news-blue-light);
    color: var(--news-blue-dark);
}

.blog-status-badge.inactive {
    background: #fdeaea;
    color: #d93636;
}

/* ===== Breadcrumb ===== */
.blog-breadcrumb {
    margin-bottom: 18px;
    font-size: 14px;
}

.blog-breadcrumb a {
    color: var(--news-blue);
    font-weight: 500;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb span {
    color: #9aa0a6;
    margin: 0 6px;
}

/* ===== Blog Content (description) ===== */
.blog-content-rich {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.blog-content-rich img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

.blog-content-rich p {
    margin-bottom: 16px;
}

.blog-content-rich h1,
.blog-content-rich h2,
.blog-content-rich h3,
.blog-content-rich h4 {
    margin: 24px 0 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.blog-content-rich ul,
.blog-content-rich ol {
    margin: 0 0 16px 22px;
}

.blog-content-rich a {
    color: var(--news-blue);
}

.blog-content-rich blockquote {
    border-left: 4px solid var(--news-blue);
    background: var(--news-blue-light);
    padding: 14px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #333;
    border-radius: 4px;
}

/* ===== Tags row under content ===== */
.blog-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.blog-tags-row .tag-label {
    font-weight: 700;
    color: #222;
    margin-right: 4px;
}

.blog-tags-row a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--news-blue-light);
    color: var(--news-blue-dark);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.blog-tags-row a:hover {
    background: var(--news-blue);
    color: #fff;
}

/* ===== Author box under content ===== */
.blog-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fafbff;
    border: 1px solid #eef1ff;
    border-radius: 14px;
    padding: 22px;
    margin-top: 24px;
}

.blog-author-box .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--news-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.blog-author-box h6 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1a1a1a;
}

.blog-author-box p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */

.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.sidebar-widget h6.widget-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--news-blue-light);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget h6.widget-title i {
    color: var(--news-blue);
}

/* ===== Search Widget ===== */
.widget-search-box {
    position: relative;
}

.widget-search-box input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 46px 12px 16px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.widget-search-box input:focus {
    border-color: var(--news-blue);
}

.widget-search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: var(--news-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.widget-search-box button:hover {
    background: var(--news-blue-dark);
}

/* ===== Categories Widget ===== */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #f3f4f6;
}

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

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    color: #444;
    font-size: 14.5px;
    transition: 0.2s;
}

.category-list li a:hover {
    color: var(--news-blue);
    padding-left: 8px;
}

.category-list li a span.count {
    background: var(--news-blue-light);
    color: var(--news-blue-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

/* ===== Recent Posts Widget ===== */
.recent-post-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f5f5f5;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item .rp-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--news-blue-light);
}

.recent-post-item .rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-item .rp-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.recent-post-item .rp-content h6 a {
    color: #222;
    transition: 0.2s;
}

.recent-post-item .rp-content h6 a:hover {
    color: var(--news-blue);
}

.recent-post-item .rp-content span {
    font-size: 12px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.widget-empty-text {
    font-size: 13.5px;
    color: #999;
    text-align: center;
    padding: 10px 0;
}

/* ===== Newsletter / CTA Widget (blue, fills space nicely) ===== */
.widget-newsletter {
    background: linear-gradient(145deg, var(--news-blue) 0%, var(--news-blue-dark) 100%);
    border-radius: 14px;
    padding: 28px 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
}

.widget-newsletter .nl-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.widget-newsletter h6 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.widget-newsletter p {
    font-size: 13.5px;
    opacity: 0.9;
    margin-bottom: 18px;
    line-height: 1.6;
}

.widget-newsletter input {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}

.widget-newsletter button {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: var(--news-blue-dark);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.widget-newsletter button:hover {
    background: #f0f4ff;
}

/* ===== Popular Tags Widget ===== */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-tags a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    background: var(--news-blue-light);
    color: var(--news-blue-dark);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.widget-tags a:hover {
    background: var(--news-blue);
    color: #fff;
}

/* ===== Share Widget ===== */
.blog-share-card {
    text-align: center;
}

.blog-share-card .share-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-share-card .share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--news-blue-light);
    color: var(--news-blue-dark);
    transition: 0.2s;
}

.blog-share-card .share-icons a:hover {
    background: var(--news-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .sidebar-widget,
    .widget-newsletter {
        margin-bottom: 20px;
    }
}
