/* CSS Variables */
:root {
    --blog-text-color: #2E2C2C;
    --blog-accent-color: #D8A11C;
    --blog-light-grey: #D1D1D1;
    --blog-bg-color: #FAFAFA;
}

/* ===== TYPOGRAPHY ===== */

/* Section Title (H2) */
.blog-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    line-height: 2.7rem;
    font-weight: 600;
    letter-spacing: -1.2px;
    color: var(--blog-text-color);
    margin-top: 64px;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .blog-section-title {
        font-size: 1.8rem;
        line-height: 2.2rem;
        letter-spacing: -0.6px;
        margin-top: 40px;
    }
}

/* Subsection Title (H3) */
.blog-subsection-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    line-height: 2.1rem;
    font-weight: 500;
    letter-spacing: -0.8px;
    color: var(--blog-text-color);
    margin-top: 40px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .blog-subsection-title {
        font-size: 1.4rem;
        line-height: 1.8rem;
        letter-spacing: -0.4px;
        margin-top: 32px;
    }
}

/* ===== LINKS ===== */

.blog-link,
a.blog-link {
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-link:hover,
a.blog-link:hover {
    background: rgba(216, 161, 28, 0.12);
}

/* ===== LISTS ===== */

ul.blog-list {
    margin: 32px 0;
    padding-left: 0;
    list-style: none;
}

ul.blog-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    line-height: 1.6rem;
}

ul.blog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid var(--blog-accent-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

ol.blog-list-numbered {
    margin: 32px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: blog-counter;
}

ol.blog-list-numbered li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    line-height: 1.6rem;
    counter-increment: blog-counter;
}

ol.blog-list-numbered li::before {
    content: counter(blog-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blog-accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* ===== BLOCKQUOTE ===== */

blockquote.blog-quote {
    position: relative;
    margin: 48px 0;
    padding: 32px 40px 32px 56px;
    background: linear-gradient(135deg, #FFF 0%, #FAFAFA 100%);
    border-left: 4px solid var(--blog-accent-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.3rem;
    font-style: italic;
    color: var(--blog-text-color);
    box-shadow: 0 2px 12px rgba(254, 49, 85, 0.08);
}

blockquote.blog-quote::before {
    content: '"';
    position: absolute;
    left: 16px;
    top: 8px;
    font-size: 4rem;
    line-height: 1;
    color: var(--blog-accent-color);
    opacity: 0.3;
    font-family: 'Poppins', sans-serif;
}

blockquote.blog-quote p {
    margin-bottom: 8px;
}

blockquote.blog-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-style: normal;
    font-family: 'Poppins', sans-serif;
    color: #666;
    text-align: right;
}

blockquote.blog-quote cite::before {
    content: '— ';
}

/* ===== CALLOUT BOX ===== */

.blog-callout {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFF9FA 0%, #FFF 100%);
    border-left: 3px solid var(--blog-accent-color);
    margin: 32px 0;
    align-items: flex-start;
}

.blog-callout::before {
    content: '💡';
    font-size: 1.5rem;
    flex-shrink: 0;
}

.blog-callout-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4rem;
}

.blog-callout-content strong {
    font-weight: 600;
}

/* ===== IMAGES ===== */

figure.blog-figure {
    margin: 48px 0;
}

figure.blog-figure img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.blog-figure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 48px 0;
}

.blog-figure-grid .blog-figure {
    margin: 0;
}

@media (max-width: 767px) {
    .blog-figure-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TABLES ===== */

table.blog-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
}

table.blog-table thead {
    border-bottom: 2px solid var(--blog-light-grey);
}

table.blog-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blog-text-color);
}

table.blog-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #F0F0F0;
}

table.blog-table tbody tr:last-child td {
    border-bottom: none;
}

table.blog-table tbody tr:hover {
    background: var(--blog-bg-color);
}

/* ===== UTILITIES ===== */

.blog-content > *:last-child {
    margin-bottom: 0;
}
