/* ============================================================
   BLOG CONTENT STYLING
   For CKEditor / Rich Text content display on frontend
   ============================================================ */

.blog-content-wrapper {
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    color: #2d2d2d;
}

/* ----- HEADINGS ----- */
.blog-content-wrapper h1,
.blog-content-wrapper h2,
.blog-content-wrapper h3,
.blog-content-wrapper h4,
.blog-content-wrapper h5,
.blog-content-wrapper h6 {
    font-family: 'Poppins', Georgia, 'Poppins', serif;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-content-wrapper h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
}

.blog-content-wrapper h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    border-bottom: 2px solid #f0ebe3;
    padding-bottom: 0.5rem;
}

.blog-content-wrapper h3 {
    font-size: 1.4rem;
    color: #2d2d2d;
}

.blog-content-wrapper h4 {
    font-size: 1.2rem;
    color: #2d2d2d;
}

.blog-content-wrapper h5 {
    font-size: 1.05rem;
    color: #2d2d2d;
}

.blog-content-wrapper h6 {
    font-size: 0.95rem;
    color: #2d2d2d;
}

/* ----- PARAGRAPHS ----- */
.blog-content-wrapper p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ----- LISTS ----- */
.blog-content-wrapper ul,
.blog-content-wrapper ol {
    margin: 0.8rem 0 1.2rem 1.8rem;
    padding-left: 0.5rem;
}

.blog-content-wrapper ul li,
.blog-content-wrapper ol li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-content-wrapper ul {
    list-style-type: disc;
}

.blog-content-wrapper ul ul {
    list-style-type: circle;
    margin-bottom: 0.4rem;
}

.blog-content-wrapper ul ul ul {
    list-style-type: square;
}

.blog-content-wrapper ol {
    list-style-type: decimal;
}

.blog-content-wrapper ol ol {
    list-style-type: lower-alpha;
    margin-bottom: 0.4rem;
}

.blog-content-wrapper ol ol ol {
    list-style-type: lower-roman;
}

/* ----- BLOCKQUOTES ----- */
.blog-content-wrapper blockquote {
    border-left: 4px solid #FF6417;
    margin: 1.5rem 0;
    padding: 0.8rem 1.5rem;
    background: #faf7f2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
}

.blog-content-wrapper blockquote p {
    margin-bottom: 0.2rem;
}

.blog-content-wrapper blockquote cite {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #6c6c6c;
    font-style: normal;
}

/* ----- LINKS ----- */
.blog-content-wrapper a {
    color: #FF6417;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content-wrapper a:hover {
    color: #e05500;
}

/* ----- IMAGES ----- */
.blog-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.2rem 0;
}

.blog-content-wrapper .alignleft {
    float: left;
    margin: 0.5rem 1.5rem 0.5rem 0;
    max-width: 50%;
}

.blog-content-wrapper .alignright {
    float: right;
    margin: 0.5rem 0 0.5rem 1.5rem;
    max-width: 50%;
}

.blog-content-wrapper .aligncenter {
    display: block;
    margin: 1.2rem auto;
    text-align: center;
}

.blog-content-wrapper .alignnone {
    margin: 1.2rem 0;
}

/* ----- FIGURES / CAPTIONS ----- */
.blog-content-wrapper figure {
    margin: 1.5rem 0;
    text-align: center;
}

.blog-content-wrapper figure figcaption {
    font-size: 0.9rem;
    color: #6c6c6c;
    margin-top: 0.4rem;
    font-style: italic;
}

/* ----- TABLES ----- */
.blog-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 0.95rem;
}

.blog-content-wrapper table th,
.blog-content-wrapper table td {
    border: 1px solid #e0dcd6;
    padding: 0.6rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.blog-content-wrapper table th {
    background: #faf7f2;
    font-weight: 600;
}

.blog-content-wrapper table tr:nth-child(even) {
    background: #fcfaf8;
}

.blog-content-wrapper table tr:hover {
    background: #f5f0ea;
}

/* ----- HORIZONTAL RULE ----- */
.blog-content-wrapper hr {
    border: none;
    border-top: 2px dashed #e0dcd6;
    margin: 2rem 0;
}

/* ----- CODE / PRE ----- */
.blog-content-wrapper code {
    background: #f4f0ea;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.blog-content-wrapper pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 1.2rem 0;
}

.blog-content-wrapper pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

/* ----- MEDIA / VIDEO ----- */
.blog-content-wrapper iframe,
.blog-content-wrapper .wp-embedded-content {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.2rem 0;
}

.blog-content-wrapper .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.2rem 0;
    border-radius: 8px;
}

.blog-content-wrapper .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* ----- MISC ----- */
.blog-content-wrapper strong,
.blog-content-wrapper b {
    font-weight: 700;
    color: #1a1a1a;
}

.blog-content-wrapper em,
.blog-content-wrapper i {
    font-style: italic;
}

.blog-content-wrapper u {
    text-decoration: underline;
}

.blog-content-wrapper del {
    text-decoration: line-through;
    color: #999;
}

.blog-content-wrapper .highlight {
    background: #fff3cd;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.blog-content-wrapper .dropcap::first-letter {
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.4rem;
    color: #FF6417;
    font-family: 'Playfair Display', Georgia, serif;
}

/* ----- GRID / COLUMNS (CKEditor Bootstrap-like) ----- */
.blog-content-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.blog-content-wrapper .col,
.blog-content-wrapper .col-6,
.blog-content-wrapper .col-4,
.blog-content-wrapper .col-3,
.blog-content-wrapper .col-8,
.blog-content-wrapper .col-12 {
    padding: 0 15px;
    flex: 1;
}

.blog-content-wrapper .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.blog-content-wrapper .col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.blog-content-wrapper .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.blog-content-wrapper .col-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.blog-content-wrapper .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ----- RESPONSIVE ADJUSTMENTS ----- */
@media (max-width: 992px) {
    .blog-content-wrapper .col-6,
    .blog-content-wrapper .col-4,
    .blog-content-wrapper .col-3,
    .blog-content-wrapper .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-content-wrapper p {
        font-size: 0.98rem;
    }
    
    .blog-content-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .blog-content-wrapper h2 {
        font-size: 1.4rem;
    }
    
    .blog-content-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .blog-content-wrapper h4 {
        font-size: 1.05rem;
    }
    
    .blog-content-wrapper ul,
    .blog-content-wrapper ol {
        margin-left: 1.2rem;
    }
    
    .blog-content-wrapper ul li,
    .blog-content-wrapper ol li {
        font-size: 0.98rem;
    }
    
    .blog-content-wrapper .alignleft,
    .blog-content-wrapper .alignright {
        float: none;
        max-width: 100%;
        margin: 0.5rem auto;
        display: block;
    }
    
    .blog-content-wrapper table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .blog-content-wrapper table th,
    .blog-content-wrapper table td {
        padding: 0.4rem 0.6rem;
    }
    
    .blog-content-wrapper blockquote {
        padding: 0.6rem 1rem;
        margin: 1rem 0;
    }
    
    .blog-content-wrapper pre {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    .blog-content-wrapper code {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .blog-content-wrapper h1 {
        font-size: 1.5rem;
    }
    
    .blog-content-wrapper h2 {
        font-size: 1.2rem;
    }
    
    .blog-content-wrapper h3 {
        font-size: 1.05rem;
    }
    
    .blog-content-wrapper p {
        font-size: 0.92rem;
    }
}