/*
Theme Name:   Astra Child - TallyPrimeGuru
Theme URI:    https://tallyprimeguru.com
Description:  Child theme for TallyPrimeGuru news portal
Author:       Scaliya
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ===== BRAND COLORS ===== */
:root {
  --brand-blue:   #1e73be;
  --brand-orange: #DF8B1B;
  --brand-dark:   #1a1a2e;
  --brand-light:  #f4f6f9;
  --brand-white:  #ffffff;
  --brand-border: #e0e0e0;
  --brand-text:   #333333;
  --brand-muted:  #666666;
}

/* ===== FIX: Article Content Padding ===== */

/* Main article body padding */
.tpg-art-body,
.single .tpg-art-body,
.single .entry-content,
.single article .entry-content {
    padding: 20px 22px 16px 22px !important;
    box-sizing: border-box !important;
}

/* Astra overrides fix */
.ast-article-single .entry-content,
.ast-separate-container .entry-content,
.ast-page-builder-template .entry-content,
.single-post .entry-content {
    padding: 20px 22px !important;
}

/* Paragraph spacing */
.single .entry-content p,
.tpg-art-body p {
    margin: 0 0 14px !important;
    line-height: 1.85 !important;
}

/* H2 headings inside content */
.single .entry-content h2,
.tpg-art-body h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e73be !important;
    border-left: 4px solid #DF8B1B !important;
    padding-left: 10px !important;
    margin: 22px 0 10px !important;
}

/* H3 headings */
.single .entry-content h3,
.tpg-art-body h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 18px 0 8px !important;
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 5px !important;
}

/* Tables inside content */
.single .entry-content table,
.tpg-art-body table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 14px 0 !important;
    font-size: 14px !important;
}
.single .entry-content th,
.tpg-art-body th {
    background: #1e73be !important;
    color: #fff !important;
    padding: 9px 12px !important;
    text-align: left !important;
}
.single .entry-content td,
.tpg-art-body td {
    padding: 8px 12px !important;
    border: 1px solid #dde3ea !important;
}
.single .entry-content tr:nth-child(even) td,
.tpg-art-body tr:nth-child(even) td {
    background: #e8f1fa !important;
}

/* Mobile responsive padding */
@media (max-width: 600px) {
    .tpg-art-body,
    .single .entry-content {
        padding: 14px 14px 12px 14px !important;
    }
}

/* ===== Hide thumbnail box if no featured image ===== */

/* Astra archive/category post cards */
.ast-article-post:not(.has-post-thumbnail) .ast-blog-featured-section {
    display: none !important;
}

/* Also adjust card layout when no image — make it full width */
.ast-article-post:not(.has-post-thumbnail) .ast-blog-single-element-wrap,
.ast-article-post:not(.has-post-thumbnail) .ast-blog-post-meta,
.ast-article-post:not(.has-post-thumbnail) .entry-content-wrap {
    width: 100% !important;
    padding-left: 0 !important;
}

/* No-thumbnail placeholder box */
.tpga-no-thumb-box {
    width: 130px;
    height: 90px;
    background: #f0f6ff;
    border: 1px solid #d0e4f7;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.tpga-no-thumb-box span {
    font-size: 10px;
    color: #1e73be;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tpga-no-thumb-box.tpga-branded {
    background: transparent;
    border: none;
}