/* assets/css/blog-custom.css */

/* 1. Key Takeaways Box (Brand Blue Theme) */
.blog-key-takeaways {
    background-color: #F0F8FF; /* Very light blue background */
    border-left: 5px solid #0D80CE; /* Taprath Blue Border */
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 4px;
}
.blog-key-takeaways h3 {
    font-size: 20px;
    color: #0D80CE;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-key-takeaways ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.blog-key-takeaways li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}
.blog-key-takeaways li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #0D80CE; /* Icon Color */
    font-weight: bold;
}

/* 2. Technical Table (Blue Header) */
.rs-technical-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.rs-technical-table thead tr {
    background-color: #0D80CE;
    color: #ffffff;
}
.rs-technical-table th, .rs-technical-table td {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
}
.rs-technical-table tbody tr:nth-of-type(even) {
    background-color: #f8fcff; /* Very subtle blue tint */
}

/* 3. Feature Lists */
.blog-feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.blog-feature-list li {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #0D80CE; /* Brand Blue */
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}
.blog-feature-list li strong {
    display: block;
    color: #0D80CE;
    font-size: 18px;
    margin-bottom: 8px;
}

/* 4. Chart Containers */
.blog-chart-container {
    padding: 25px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #0D80CE; /* Brand Blue */
}
.chart-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}
.chart-caption {
    font-size: 13px;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* 5. Section Separator */
.blog-section-divider {
    margin: 60px 0;
    border-top: 1px solid #eee;
    position: relative;
}
.blog-section-divider::after {
    content: '';
    width: 100px;
    height: 3px;
    background: #0D80CE;
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

/* assets/css/blog-custom.css */

/* ... existing code ... */

/* FIX: Remove default template checkmarks/bullets for custom lists */
.blog-list-reset ul li::before {
    content: none !important;
    display: none !important;
    border: none !important;
}

.blog-list-reset ul li {
    padding-left: 0 !important; /* Remove space reserved for the default bullet */
    margin-bottom: 8px;
    display: flex; /* Ensures perfect alignment of our custom icon */
    align-items: center;
    gap: 10px;
}

/* assets/css/blog-custom.css */

/* --- 1. Professional Horizontal Blog Layout --- */

/* The Card Container */
.blog-grid-card {
    display: flex;
    flex-direction: column; /* Mobile Default */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.blog-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(13, 128, 206, 0.15);
    border-color: #0D80CE;
}

/* Image Section */
.blog-grid-thumb {
    width: 100%;
    height: 250px; /* Mobile Height */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-grid-card:hover .blog-grid-thumb img {
    transform: scale(1.05);
}

/* Content Section */
.blog-grid-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* Typography */
.blog-grid-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    gap: 15px;
}

.blog-grid-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1F1F1F;
}

.blog-grid-title a:hover {
    color: #0D80CE;
}

.blog-grid-summary {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Shows max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid-btn {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.blog-grid-btn a {
    color: #0D80CE;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-grid-btn i {
    transition: 0.3s;
}

.blog-grid-card:hover .blog-grid-btn i {
    transform: translateX(5px);
}

/* --- DESKTOP VIEW (Side-by-Side) --- */
@media (min-width: 992px) {
    .blog-grid-card {
        flex-direction: row; /* Image Left, Text Right */
        min-height: 280px; /* Consistent height */
    }

    .blog-grid-thumb {
        width: 40%; /* Image takes 40% */
        height: auto; /* Full height */
        border-right: 1px solid #f0f0f0;
    }

    .blog-grid-content {
        width: 60%; /* Content takes 60% */
        padding: 40px;
    }
}

/* --- 2. Sidebar: Product List Widget --- */
.widget-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-products li {
    border-bottom: 1px solid #eee;
}
.widget-products li:last-child {
    border-bottom: none;
}
.widget-products a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #444;
    font-weight: 500;
    transition: 0.3s;
}
.widget-products a:hover {
    color: #0D80CE;
    padding-left: 5px;
}
.widget-products i {
    color: #ccc;
}
.widget-products a:hover i {
    color: #0D80CE;
}

/* --- 3. Pagination Styling --- */
.pagination-wrapper ul {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}
.pagination-wrapper li {
    list-style: none;
}
.pagination-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #444;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}
.pagination-wrapper a:hover,
.pagination-wrapper a.current {
    background-color: #0D80CE;
    color: #fff;
    border-color: #0D80CE;
}

/* --- 4. Download Widget (Replacing Tags) --- */
.widget-download-card {
    background: #0D80CE;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    color: #fff;
}
.widget-download-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}
.widget-download-card h5 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}
.widget-download-card p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 20px;
}
.btn-white-outline {
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
    font-weight: 500;
}
.btn-white-outline:hover {
    background: #fff;
    color: #0D80CE;
}

/* --- 2. Individual Post Styling Fixes --- */

/* Restrict the Hero Image Height */
.blog-details-thumb img, 
.rs-postbox-details-thumb img {
    width: 100%;
    height: 450px; /* Fixed professional height */
    object-fit: cover; /* Crops image neatly */
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Typography Constraints */
.blog-details-content h1, 
.rs-postbox-details-title {
    font-size: 36px; /* Reduced from massive size */
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.blog-details-content p, 
.rs-postbox-details-content p {
    font-size: 18px; /* Standard readable size */
    line-height: 1.8; /* "Airy" text is easier to read */
    color: #444;
    margin-bottom: 25px;
    max-width: 95%; /* Prevents lines from getting too long to read */
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .blog-details-thumb img, 
    .rs-postbox-details-thumb img {
        height: 250px; /* Smaller image on phone */
    }
    .blog-details-content h1, 
    .rs-postbox-details-title {
        font-size: 28px;
    }
}

/* =========================================
   EMERGENCY FIXES - PASTE AT BOTTOM OF FILE
   ========================================= */

/* 1. FIX IMAGE DISPLAY (Stop Cropping) */
/*.blog-details-thumb img, 
.rs-postbox-details-thumb img {
    width: 100% !important;
    height: auto !important;        
    max-height: 600px !important;   
    object-fit: contain !important; 
    background-color: #f9f9f9;      
    border-radius: 8px;
}*/

/* 2. FIX DOUBLE ICONS (Remove Default Theme Bullets) */

/* A. Fix for "Key Takeaways" Box */
.blog-key-takeaways ul, 
.blog-key-takeaways li {
    list-style: none !important;
    list-style-type: none !important;
}

.blog-key-takeaways li::before {
    content: none !important;       /* Hides the default theme dot/check */
    display: none !important;
}

.blog-key-takeaways li {
    padding-left: 0 !important;
    display: flex !important;       /* Aligns your custom icon correctly */
    gap: 10px;
}

/* B. Fix for "Red Cross" & Custom Lists */
ul.blog-list-reset,
ul.blog-list-reset li {
    list-style: none !important;
    list-style-type: none !important;
}

ul.blog-list-reset li::before {
    content: none !important;       /* Hides the default theme dot */
    display: none !important;
    border: none !important;
}

ul.blog-list-reset li {
    padding-left: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
}

/* =======================================================
   FINAL FIX: REMOVE DOUBLE ICONS (Override Main Theme)
   ======================================================= */

/* 1. Target the lists specifically inside the blog content wrapper */
.rs-postbox-details-content .blog-key-takeaways ul li::before,
.rs-postbox-details-content .blog-list-reset li::before {
    content: none !important; /* Forces the theme's bullet to disappear */
    display: none !important;
    border: none !important;
}

/* 2. Reset padding so your custom icons fit perfectly */
.rs-postbox-details-content .blog-key-takeaways ul li,
.rs-postbox-details-content .blog-list-reset li {
    padding-left: 0 !important; /* Removes theme indentation */
    margin-bottom: 12px;
    display: flex !important;   /* Aligns your icon and text side-by-side */
    align-items: flex-start;
    gap: 12px;                  /* Space between icon and text */
}

/* 3. Ensure your icons (Check/Cross) are visible and sized correctly */
.rs-postbox-details-content .blog-key-takeaways li i,
.rs-postbox-details-content .blog-list-reset li i {
    position: relative !important;
    top: 4px; /* Fine-tune alignment with text */
    left: auto !important;
    margin-right: 0 !important;
    font-weight: normal !important;
}