/* ===================================
   BLOG CONTENT STYLING
   Professional, readable, mobile-first
   =================================== */

.blog-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-primary);
}

/* Typography Hierarchy - Properly Scaled */
.blog-content h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--color-text-primary);
    border-bottom: 2px solid rgba(6, 182, 212, 0.2);
    padding-bottom: 12px;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.blog-content h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 28px;
    margin-bottom: 14px;
    color: var(--color-accent);
}

/* Paragraphs */
.blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

/* Strong/Bold Text */
.blog-content strong {
    font-weight: 700;
    color: var(--color-accent);
}

/* Lists - Properly Styled */
.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 8px;
}

.blog-content li:last-child {
    margin-bottom: 0;
}

.blog-content li>ul,
.blog-content li>ol {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Nested Lists */
.blog-content ul ul {
    list-style-type: circle;
    margin-top: 12px;
}

.blog-content ol ol {
    list-style-type: lower-alpha;
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.blog-content thead tr {
    background: var(--color-accent);
    color: white;
}

.blog-content th,
.blog-content td {
    padding: 16px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content th {
    font-weight: 600;
    font-size: 16px;
}

.blog-content td {
    font-size: 15px;
}

.blog-content tbody tr {
    transition: background 0.2s ease;
}

.blog-content tbody tr:hover {
    background: rgba(6, 182, 212, 0.05);
}

/* Special Boxes/Alerts - with proper text colors */
.blog-content div[style*="background"] {
    padding: 24px !important;
    margin: 32px 0 !important;
    border-radius: var(--radius-md) !important;
    line-height: 1.7 !important;
}

.blog-content div[style*="background"] h3 {
    margin-top: 0 !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
}

.blog-content div[style*="background"] p {
    margin-bottom: 12px;
}

.blog-content div[style*="background"] ul {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Light/Yellow background boxes (warnings, tips) - DARK TEXT */
.blog-content div[style*="#fee2e2"],
.blog-content div[style*="#fef3c7"],
.blog-content div[style*="#fef9c3"],
.blog-content div[style*="rgb(254, 243, 199)"],
.blog-content div[style*="rgb(254, 249, 195)"],
.blog-content div[style*="rgb(254, 226, 226)"] {
    color: #1f2937 !important;
}

.blog-content div[style*="#fee2e2"] h3,
.blog-content div[style*="#fef3c7"] h3,
.blog-content div[style*="#fef9c3"] h3,
.blog-content div[style*="rgb(254, 243, 199)"] h3,
.blog-content div[style*="rgb(254, 249, 195)"] h3,
.blog-content div[style*="rgb(254, 226, 226)"] h3 {
    color: #111827 !important;
}

.blog-content div[style*="#fee2e2"] p,
.blog-content div[style*="#fef3c7"] p,
.blog-content div[style*="#fef9c3"] p,
.blog-content div[style*="rgb(254, 243, 199)"] p,
.blog-content div[style*="rgb(254, 249, 195)"] p,
.blog-content div[style*="rgb(254, 226, 226)"] p {
    color: #1f2937 !important;
}

.blog-content div[style*="#fee2e2"] ul,
.blog-content div[style*="#fef3c7"] ul,
.blog-content div[style*="#fef9c3"] ul,
.blog-content div[style*="rgb(254, 243, 199)"] ul,
.blog-content div[style*="rgb(254, 249, 195)"] ul,
.blog-content div[style*="rgb(254, 226, 226)"] ul {
    color: #1f2937 !important;
}

.blog-content div[style*="#fee2e2"] li,
.blog-content div[style*="#fef3c7"] li,
.blog-content div[style*="#fef9c3"] li,
.blog-content div[style*="rgb(254, 243, 199)"] li,
.blog-content div[style*="rgb(254, 249, 195)"] li,
.blog-content div[style*="rgb(254, 226, 226)"] li {
    color: #1f2937 !important;
}

/* Info boxes (blue backgrounds) */
.blog-content div[style*="#f0f9ff"],
.blog-content div[style*="rgb(240, 249, 255)"] {
    color: #1e3a8a !important;
}

.blog-content div[style*="#f0f9ff"] h3,
.blog-content div[style*="rgb(240, 249, 255)"] h3 {
    color: #1e40af !important;
}

.blog-content div[style*="#f0f9ff"] p,
.blog-content div[style*="rgb(240, 249, 255)"] p,
.blog-content div[style*="#f0f9ff"] ul,
.blog-content div[style*="rgb(240, 249, 255)"] ul,
.blog-content div[style*="#f0f9ff"] li,
.blog-content div[style*="rgb(240, 249, 255)"] li {
    color: #1e3a8a !important;
}

/* Success boxes (green backgrounds) */
.blog-content div[style*="#f0fdf4"],
.blog-content div[style*="rgb(240, 253, 244)"] {
    color: #14532d !important;
}

.blog-content div[style*="#f0fdf4"] h3,
.blog-content div[style*="rgb(240, 253, 244)"] h3 {
    color: #15803d !important;
}

.blog-content div[style*="#f0fdf4"] p,
.blog-content div[style*="rgb(240, 253, 244)"] p,
.blog-content div[style*="#f0fdf4"] ul,
.blog-content div[style*="rgb(240, 253, 244)"] ul,
.blog-content div[style*="#f0fdf4"] li,
.blog-content div[style*="rgb(240, 253, 244)"] li {
    color: #14532d !important;
}

/* Links */
.blog-content a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: #22d3ee;
}

/* Code blocks (if any) */
.blog-content code {
    background: rgba(6, 182, 212, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--color-accent);
}

.blog-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 24px 0;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
}

/* Blockquotes (if any) */
.blog-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* Images within content */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 28px 0;
    display: block;
}

/* Horizontal Rules */
.blog-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* ===================================
   MOBILE RESPONSIVENESS
   =================================== */

@media (max-width: 768px) {
    .blog-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .blog-content h2 {
        font-size: 26px;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .blog-content h3 {
        font-size: 21px;
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .blog-content h4 {
        font-size: 18px;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 24px;
        margin: 20px 0;
    }

    .blog-content li {
        margin-bottom: 10px;
    }

    .blog-content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .blog-content th,
    .blog-content td {
        padding: 12px;
    }

    .blog-content div[style*="background"] {
        padding: 20px !important;
        margin: 24px 0 !important;
    }

    .blog-content div[style*="background"] h3 {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .blog-content {
        font-size: 15px;
    }

    .blog-content h2 {
        font-size: 22px;
        margin-top: 28px;
    }

    .blog-content h3 {
        font-size: 19px;
        margin-top: 24px;
    }

    .blog-content h4 {
        font-size: 17px;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 20px;
    }

    .blog-content div[style*="background"] {
        padding: 16px !important;
    }
}

/* ===================================
   BLOG POST PAGE SPECIFIC
   =================================== */

/* Main title responsive */
.blog-post-title {
    font-size: 42px;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 32px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .blog-post-title {
        font-size: 26px;
        line-height: 1.3;
    }
}

/* Meta info responsive */
.blog-meta {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: 15px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .blog-meta {
        font-size: 14px;
        gap: var(--spacing-md);
    }
}

/* Excerpt box */
.blog-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(6, 182, 212, 0.05);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .blog-excerpt {
        font-size: 18px;
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .blog-excerpt {
        font-size: 16px;
    }
}

/* Container padding on mobile */
@media (max-width: 768px) {
    .blog-content-container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}