/* ============================================
   News Detail Page — Mobile-First Responsive
   ============================================ */

/* Breadcrumb */
.news-breadcrumb {
    font-size: 0.82rem;
    padding: 0.6rem 0;
    margin-bottom: 0;
    background: transparent;
}

.news-breadcrumb .breadcrumb-item a {
    color: var(--veye-green);
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.news-breadcrumb .breadcrumb-item.active {
    color: #8a96a3;
}

.news-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #c4cdd5;
}

/* ============================================
   Article Header
   ============================================ */
.article-header {
    padding: 1rem 0 1.5rem;
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-category-badge {
    background: var(--veye-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.article-breaking-badge {
    background: var(--danger-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.article-featured-badge {
    background: var(--warning-color);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.article-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    font-size: 1rem;
    color: #5a6a7a;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
    border-left: 3px solid var(--veye-green);
    padding-left: 1rem;
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}

.article-meta-left {
    display: flex;
    align-items: center;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.article-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-author-avatar i {
    font-size: 1.4rem;
    color: var(--veye-green);
}

.article-author-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a.article-author-name:hover {
    color: var(--veye-green);
}

.article-publish-date {
    display: block;
    font-size: 0.78rem;
    color: #8a96a3;
}

.article-meta-right {
    display: flex;
    gap: 1rem;
}

.article-meta-item {
    font-size: 0.8rem;
    color: #8a96a3;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta-item i {
    font-size: 0.9rem;
}

/* ============================================
   Featured Image
   ============================================ */
.article-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   Article Body
   ============================================ */
.article-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #2d3a4a;
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.article-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-body p {
    margin-bottom: 1.15rem;
}

.article-body a {
    color: var(--veye-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary-color);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    margin: 1rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--veye-green);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #f8fafb;
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    font-style: italic;
    color: #4a5568;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.15rem;
}

.article-body li {
    margin-bottom: 0.4rem;
}

.article-body pre {
    background: var(--primary-color);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--card-radius);
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 1.25rem 0;
}

.article-body code {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--danger-color);
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.88rem;
}

.article-body th,
.article-body td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.article-body th {
    background: #f8fafb;
    font-weight: 600;
    color: var(--primary-color);
}

.article-body hr {
    border: none;
    border-top: 1px solid #eef1f5;
    margin: 2rem 0;
}

/* ============================================
   Tags
   ============================================ */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid #eef1f5;
}

.article-tags-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #5a6a7a;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover {
    background: var(--veye-green);
    color: #fff;
}

/* ============================================
   Share
   ============================================ */
.article-share {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid #eef1f5;
}

.article-share-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.article-share-buttons {
    display: flex;
    gap: 0.6rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0a66c2;
}

.share-email {
    background: var(--veye-green);
}

/* ============================================
   Save/Bookmark Button
   ============================================ */
.btn-save-post {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-save-post i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.btn-save-post:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-save-post:hover i {
    transform: scale(1.15);
}

.btn-save-post.saved {
    background: var(--veye-green);
    border-color: var(--veye-green);
    color: #fff;
}

.btn-save-post.saved:hover {
    background: #159670;
    border-color: #159670;
}

/* ============================================
   Related Companies
   ============================================ */
.article-companies {
    padding: 1.25rem 0;
    border-top: 1px solid #eef1f5;
}

.article-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.companies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.company-badge:hover {
    border-color: var(--veye-green);
    background: #ecfdf5;
}

/* ============================================
   Sidebar
   ============================================ */
.article-sidebar {
    position: sticky;
    top: 1rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.sidebar-widget .veye-seperator {
    height: 2px;
    background: var(--veye-green);
    width: 40px;
}

/* Sidebar Post Card */
.sidebar-post-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-image {
    width: 80px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--veye-green);
    letter-spacing: 0.3px;
    margin-bottom: 0.2rem;
}

.sidebar-post-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-post-title a:hover {
    color: var(--veye-green);
}

.sidebar-post-date {
    font-size: 0.72rem;
    color: #8a96a3;
}

.sidebar-post-date i {
    font-size: 0.7rem;
}

/* Sidebar Categories */
.sidebar-categories {
    display: flex;
    flex-direction: column;
}

.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.sidebar-category-link:last-child {
    border-bottom: none;
}

.sidebar-category-link:hover {
    color: var(--veye-green);
    padding-left: 0.35rem;
}

.sidebar-category-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.sidebar-category-link:hover i {
    transform: translateX(3px);
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    background: var(--primary-color);
    text-align: center;
}

.sidebar-newsletter .sidebar-widget-title {
    color: #fff;
}

.newsletter-content p {
    font-size: 0.82rem;
    color: #a8b8c8;
    margin-bottom: 1rem;
}

.newsletter-icon {
    font-size: 2rem;
    color: var(--veye-green);
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.newsletter-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
}

.newsletter-form .form-control::placeholder {
    color: #7a8a9a;
}

.newsletter-form .form-control:focus {
    border-color: var(--veye-green);
    box-shadow: 0 0 0 0.15rem rgba(27, 176, 135, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.btn-newsletter {
    background: var(--veye-green);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 8px;
    border: none;
    transition: background 0.2s;
}

.btn-newsletter:hover {
    background: #17a079;
    color: #fff;
}

/* ============================================
   Responsive — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .article-share {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .article-share-left {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Responsive — Desktop (992px+)
   ============================================ */
@media (min-width: 992px) {
    .article-title {
        font-size: 2.2rem;
    }

    .article-header {
        padding: 1.5rem 0 2rem;
    }

    .article-body {
        font-size: 1.02rem;
        line-height: 1.9;
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form .form-control {
        flex: 1;
    }

    .newsletter-form .btn-newsletter {
        white-space: nowrap;
    }
}

/* ============================================
   Responsive — Large Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .article-title {
        font-size: 2.4rem;
    }
}
