﻿/* ==========================================================================
   MAIN BLOG CONTAINER & GLOBAL TEXT
   ========================================================================== */

.re-blog-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* Removed padding/margin to prevent conflicts with parent theme */
}

/* Rule to increase font size and set color to black */
.re-blog-container p,
.re-blog-container ul,
.re-blog-container ol,
.re-blog-container blockquote,
.re-blog-container .re_pricing_table {
    font-size: calc(1em + 2px);
    color: #000;
}

.re-blog-hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2.5rem 0;
}

/* ==========================================================================
   HEADERS & ANCHOR JUMP FIX
   ========================================================================== */

/* This fix ensures that when you "jump" to a section, it stops 20px early 
   to clear your sticky header or give breathing room. */
.re-blog-container h1,
.re-blog-container h2,
.re-blog-container h3 {
    color: #111;
    position: relative;
}

/* ==========================================================================
   HEADERS & ANCHOR JUMP FIX (UPDATED)
   ========================================================================== */

/* 1. We added 'p[id]' to the list so your paragraph link works too. 
   2. We increased height to 80px (standard header size). */

.re-blog-container h1::before,
.re-blog-container h2::before,
.re-blog-container h3::before,
.re-blog-container p[id]::before { 
    content: "";
    display: block;
    height: 1px;      /* CHANGED: Increased from 20px to 80px to clear sticky menus */
    margin-top: -1px; /* CHANGED: Must match the height (negative) */
    visibility: hidden;
    pointer-events: none;
}

.re-blog-container h1 {
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 1.5rem;
    margin: 0;
}

.re-blog-container .subtitle {
    font-size: 1.25rem;
    color: #555;
    margin: 0.5rem 0 0;
    font-weight: 400;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.re-blog-container h2 {
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.re-blog-container h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   PRICING TABLE STYLES
   ========================================================================== */

.re_pricing_table {
    width: 100%;
    margin: 2rem auto;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.re_pricing_table th,
.re_pricing_table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.re_pricing_table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555;
}

.re_pricing_table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

.re_pricing_bonus_cell { color: #28a745; font-weight: bold; text-align: center; }
.re_pricing_includes_cell { font-size: 0.9em; color: #444; }
.re_pricing_includes_cell small { color: #777; }
.re_pricing_coupon_text { text-align: center; font-size: 0.9em; color: #666; margin-top: -1rem; }

/* ==========================================================================
   LISTS, QUOTES, & ALERTS
   ========================================================================== */

.re-blog-container ul { list-style-type: disc; margin-left: 20px; padding-left: 10px; }
.re-blog-container ol { list-style-type: decimal; margin-left: 20px; padding-left: 10px; }
.re-blog-container ul li, .re-blog-container ol li { margin-bottom: 1.5rem; }

.re-blog-container blockquote {
    border-left: 4px solid #007bff;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.pro { color: #28a745; font-weight: 700; }
.con { color: #dc3545; font-weight: 700; }

.re-alert { padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 5px solid; border-radius: 4px; }
.re-alert-info { background-color: #e7f3fe; border-color: #2196F3; color: #0c5460; }
.re-alert-warning { background-color: #fff3cd; border-color: #ffc107; color: #856404; }
.re-alert-success { background-color: #d4edda; border-color: #28a745; color: #155724; }

/* ==========================================================================
   SEO & INTERACTIVE (TOC, VIDEO, ACCORDION)
   ========================================================================== */

.re-toc-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: inline-block;
    min-width: 50%;
}

.re-toc-box p.toc-title {
    font-weight: bold; font-size: 1.1rem; margin-bottom: 10px; color: #333;
    border-bottom: 2px solid #007bff; display: inline-block; padding-bottom: 5px;
}

.re-toc-box ul { margin: 0 !important; list-style-type: none !important; padding-left: 0 !important; }
.re-toc-box ul li { margin-bottom: 0.5rem !important; font-size: 1rem !important; }

.re-video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    margin: 2rem 0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.re-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

details.re-details { margin-bottom: 1rem; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; background: #fff; }
details.re-details summary { padding: 1rem; font-weight: bold; cursor: pointer; background-color: #fcfcfc; list-style: none; position: relative; }
details.re-details summary::after { content: '+'; position: absolute; right: 1rem; color: #007bff; font-size: 1.5rem; }
details.re-details[open] summary::after { content: '-'; }

/* ==========================================================================
   AUTHOR & CTA
   ========================================================================== */

.re-author-box { display: flex; align-items: center; background: #f9f9f9; padding: 1.5rem; margin-top: 3rem; border-radius: 8px; border: 1px solid #eee; }
.re-author-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-right: 1.5rem; }

.re-blog-cta {
    display: inline-block; background-color: #007bff; color: #ffffff !important;
    padding: 12px 25px; font-size: 1.1rem; font-weight: bold; text-decoration: none;
    border-radius: 30px; margin: 1.5rem 0; box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

/* ==========================================================================
   MOBILE & LAYOUT CARDS
   ========================================================================== */

.blog-post-card { max-width: 1100px; margin: 2rem auto; padding: 2rem; background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }

@media (max-width: 767px) {
  .blog-post-card { background-color: transparent; box-shadow: none; border-radius: 0; padding: 0; margin: 1rem 0; }
  .re_pricing_table { box-shadow: none; }
  .re-author-box { flex-direction: column; text-align: center; }
  .re-author-img { margin-right: 0; margin-bottom: 1rem; }
}