/* ==========================================================================
   Single Post & Page Styles - Digital Apply
   ========================================================================== */

.da-article {
    background: var(--da-surface);
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius);
    padding: 1.5rem;
    box-shadow: var(--da-shadow-sm);
    margin-bottom: 2rem;
}

.da-article-header {
    border-bottom: 1px solid var(--da-border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.da-article-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 0.85rem;
}

.da-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 0.825rem;
    color: var(--da-text-muted);
}

.da-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.da-meta-author {
    color: var(--da-text);
    font-weight: 600;
}

.da-meta-updated {
    color: #15803d;
    font-weight: 600;
    background: #f0fdf4;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}

/* Featured Image */
.da-featured-image {
    margin: 1.25rem 0 1.5rem;
    border-radius: var(--da-radius);
    overflow: hidden;
    border: 1px solid var(--da-border);
}

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

/* Quick Action Social Alert CTA in Post */
.da-post-social-box {
    background: #f8fafc;
    border: 1.5px dashed #0284c7;
    border-radius: var(--da-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.da-post-social-box p {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0369a1;
    margin: 0;
}

.da-post-social-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.da-toc-box {
    background: #f8fafc;
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    box-shadow: var(--da-shadow-sm);
}

.da-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.da-toc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--da-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.da-toc-toggle {
    font-size: 0.8rem;
    color: var(--da-secondary);
    font-weight: 600;
    border: 1px solid var(--da-border);
    padding: 2px 8px;
    border-radius: 4px;
    background: #fff;
}

.da-toc-list {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    list-style: decimal;
}

.da-toc-list li {
    margin-bottom: 5px;
    font-size: 0.875rem;
}

.da-toc-list li a {
    color: #334155;
    text-decoration: none;
}

.da-toc-list li a:hover {
    color: var(--da-primary);
    text-decoration: underline;
}

.da-toc-list .toc-sublist {
    list-style: circle;
    padding-left: 1.25rem;
    margin-top: 4px;
}

/* ==========================================================================
   Post Content Typography & Headings
   ========================================================================== */
.da-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #1e293b;
    word-break: break-word;
}

.da-content p {
    margin-bottom: 1.25rem;
}

.da-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--da-primary);
    margin: 1.75rem 0 0.85rem;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--da-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.da-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.4rem 0 0.65rem;
}

.da-content ul, .da-content ol {
    margin: 0 0 1.25rem 1.5rem;
}

.da-content ul {
    list-style: disc;
}

.da-content ol {
    list-style: decimal;
}

.da-content li {
    margin-bottom: 6px;
}

.da-content blockquote {
    border-left: 4px solid var(--da-primary);
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-radius: 0 var(--da-radius) var(--da-radius) 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
}

/* ==========================================================================
   Responsive Tables Styling (Sarkari Overview & Important Links)
   ========================================================================== */
.da-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--da-radius);
    border: 1px solid var(--da-border-dark);
    background: #ffffff;
    box-shadow: var(--da-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.da-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.9rem !important;
    text-align: left;
    margin: 0 !important;
}

.da-content table th,
.da-content table tr:first-child td[colspan],
.da-content table .da-table-head {
    background-color: var(--da-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    font-size: 1rem !important;
    text-align: center;
    border: 1px solid #5a0404 !important;
}

.da-content table th h2,
.da-content table tr:first-child td h2,
.da-content table th h3,
.da-content table tr:first-child td h3 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

.da-content table th span,
.da-content table tr:first-child td span {
    color: #ffffff !important;
}

.da-content table td,
.da-content table th {
    padding: 9px 12px !important;
    border: 1px solid #cbd5e1 !important;
    vertical-align: middle;
}

.da-content table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.da-content table tr:hover td {
    background-color: #f1f5f9;
}

/* Sarkari Important Links Buttons inside table */
.da-content table a {
    display: inline-block;
    background-color: var(--da-primary);
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none !important;
    transition: background 0.15s;
    text-align: center;
}

.da-content table a:hover {
    background-color: var(--da-secondary);
}

/* ==========================================================================
   Author Profile Box (Google E-E-A-T Compliant)
   ========================================================================== */
.da-author-box {
    background: #f8fafc;
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.da-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: var(--da-shadow-sm);
}

.da-author-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.da-verified-icon {
    display: inline-flex;
    color: #0284c7;
    font-size: 1rem;
}

.da-author-role {
    font-size: 0.775rem;
    color: var(--da-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.da-author-bio {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 8px;
}

.da-author-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--da-primary);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.da-related-posts {
    margin-top: 2rem;
    border-top: 2px solid var(--da-border);
    padding-top: 1.5rem;
}

.da-related-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--da-primary);
    margin-bottom: 1.25rem;
}

.da-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.da-related-card {
    background: #ffffff;
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius);
    overflow: hidden;
    box-shadow: var(--da-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.da-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--da-shadow);
}

.da-related-thumb {
    height: 120px;
    overflow: hidden;
    background: #e2e8f0;
}

.da-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.da-related-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.da-related-body h5 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.da-related-body h5 a {
    color: var(--da-text);
}

.da-related-body h5 a:hover {
    color: var(--da-primary);
}

.da-related-date {
    font-size: 0.725rem;
    color: var(--da-text-muted);
}

/* ==========================================================================
   Author Page Specifics
   ========================================================================== */
.da-author-header-card {
    background: #ffffff;
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--da-shadow-sm);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.da-author-header-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--da-primary-light);
}

.da-author-header-info h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.da-author-header-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--da-text-muted);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.da-comments-area {
    margin-top: 2rem;
    background: #ffffff;
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius);
    padding: 1.5rem;
}

.da-comments-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--da-primary);
    margin-bottom: 1.25rem;
}

.comment-list {
    margin-bottom: 2rem;
}

.comment-body {
    border-bottom: 1px solid var(--da-border);
    padding: 1rem 0;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--da-text-muted);
    margin-bottom: 6px;
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-respond {
    margin-top: 1.5rem;
}

.comment-respond label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--da-border);
    border-radius: var(--da-radius-sm);
    margin-bottom: 12px;
}

.comment-respond .form-submit input[type="submit"] {
    background: var(--da-primary);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--da-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-respond .form-submit input[type="submit"]:hover {
    background: var(--da-primary-hover);
}
