/*************** ADD CUSTOM CSS HERE.   ***************/

/* Breadcrumb */
.custom-breadcrumb-wrapper {
    background: #f9f9f9;
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.custom-breadcrumb-wrapper .custom-breadcrumbs {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 15px;
    color: #666;
}

.custom-breadcrumb-wrapper .custom-breadcrumbs a {
    color: #333;
    text-decoration: none;
}

.custom-breadcrumb-wrapper .custom-breadcrumbs a:hover {
    color: #c61d24;
}

.custom-breadcrumb-wrapper .custom-breadcrumbs .divider {
    margin: 0 8px;
    color: #999;
}

.custom-breadcrumb-wrapper .custom-breadcrumbs .current {
    color: #c61d24;
}

/* Custom Archive Title */
.custom-archive-header {
    margin-bottom: 30px;
    text-align: left;
}

.custom-archive-title {
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 700;
    color: #c61d24;
    display: flex;
    align-items: center;
    margin: 0;
}

.custom-title-icon {
    display: inline-flex;
    margin-right: 12px;
}

/* Custom Post Card */
.custom-post-card {
    display: flex;
    flex-wrap: nowrap;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.custom-post-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-post-thumb {
    flex: 0 0 35%;
    max-width: 35%;
}

.custom-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 2;
}

.custom-post-content {
    flex: 0 0 65%;
    max-width: 65%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.custom-post-title a {
    color: #333;
}

.custom-post-title a:hover {
    color: #c61d24;
}

.custom-post-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Sidebar */
.custom-widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #c61d24;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.custom-icon-bolt {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background: #c61d24;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 8px;
}

.custom-recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e5e5e5;
}

.custom-recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.custom-recent-post-thumb {
    flex: 0 0 100px;
    max-width: 100px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.custom-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
}

.custom-recent-post-title h4 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.custom-recent-post-title a {
    color: #333;
}

.custom-recent-post-title a:hover {
    color: #c61d24;
}

/* Custom Pagination */
.custom-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
}

.custom-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border: none;
}

.custom-pagination ul.page-numbers li {
    margin: 0;
    border: none;
}

.custom-pagination ul.page-numbers li span.page-number,
.custom-pagination ul.page-numbers li a.page-number,
.custom-pagination ul.page-numbers li span.current,
.custom-pagination .nav-pagination>li>a,
.custom-pagination .nav-pagination>li>span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
    line-height: 1;
}

.custom-pagination ul.page-numbers li a.page-number:hover,
.custom-pagination .nav-pagination>li>a:hover {
    background: #c61d24;
    color: #fff;
    border-color: #c61d24;
}

.custom-pagination ul.page-numbers li span.current,
.custom-pagination .nav-pagination > li > span.current {
    background: #c61d24;
    color: #fff;
    border-color: #c61d24;
}

/* Custom Single Post */
.custom-single-header {
    margin-bottom: 20px;
}
.custom-single-title {
    font-size: 30px;
    color: #c61d24;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.3;
}
.custom-top-author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.custom-top-author-box .author-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid #eee;
}
.custom-top-author-box .author-meta {
    display: flex;
    flex-direction: column;
}
.custom-top-author-box .author-name {
    color: #337ab7 !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.custom-top-author-box .post-date {
    font-size: 13px;
    color: #888;
}

/* Custom Bottom Author Box */
.custom-bottom-author-box {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eaeaea;
    margin-top: 40px;
    margin-bottom: 20px;
    background: #fff;
    align-items: flex-start;
}
.custom-bottom-author-box .author-avatar img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.custom-bottom-author-box .author-info {
    flex: 1;
}
.custom-bottom-author-box .author-name {
    margin-bottom: 8px;
    margin-top: 0;
}
.custom-bottom-author-box .author-name a {
    color: #c61d24 !important;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}
.custom-bottom-author-box .author-desc {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* Custom Share Buttons */
.custom-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}
.custom-share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    text-decoration: none !important;
    transition: opacity 0.3s;
}
.custom-share-buttons .share-btn:hover {
    opacity: 0.85;
}
.custom-share-buttons .share-facebook { background: #3b5998; }
.custom-share-buttons .share-email { background: #e74c3c; }
.custom-share-buttons .share-pinterest { background: #cb2027; }
.custom-share-buttons .share-twitter { background: #55acee; }
.custom-share-buttons .share-linkedin { background: #007bb5; }

/* Custom Table of Contents */
/* Custom Table of Contents */
/* Custom Table of Contents */
.custom-toc {
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin: 25px 0;
    border-radius: 2px;
    display: block;
    width: 100%;
}
details.custom-toc-details summary {
    list-style: none; /* Hide default marker */
}
details.custom-toc-details summary::-webkit-details-marker {
    display: none; /* Hide default marker in Safari/Chrome */
}
.custom-toc-header {
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    padding: 12px 20px;
    background: #fafafa;
    outline: none;
}
.custom-toc-header:hover {
    background: #f0f0f0;
}
.custom-toc-header .toc-icon {
    display: flex;
    align-items: center;
    color: #444;
}
.custom-toc-header .toc-title {
    margin-right: auto;
}
.custom-toc-header .toc-toggle-icon {
    color: #888;
    display: flex;
    align-items: center;
}
.custom-toc-header .toc-toggle-icon svg {
    transition: transform 0.3s ease;
}
details.custom-toc-details[open] .custom-toc-header .toc-toggle-icon svg {
    transform: rotate(180deg);
}
.custom-toc-content {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}
.custom-toc ol {
    counter-reset: toc-item;
    list-style-type: none;
    padding-left: 25px;
    margin: 0;
}
.custom-toc > .custom-toc-content > ol {
    padding-left: 0;
}
.custom-toc ol li {
    display: block;
    margin-bottom: 10px;
    line-height: 1.5;
}
.custom-toc ol li:last-child {
    margin-bottom: 0;
}
.custom-toc ol li:before {
    content: counters(toc-item, ".") ". ";
    counter-increment: toc-item;
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}
.custom-toc ol li a {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.custom-toc ol li a:hover {
    color: #c61d24;
}

/* Blog Content Readability Optimization */
.entry-content.single-page {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}
.entry-content.single-page p {
    margin-bottom: 20px;
}
.entry-content.single-page h2, 
.entry-content.single-page h3, 
.entry-content.single-page h4, 
.entry-content.single-page h5, 
.entry-content.single-page h6 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}
.entry-content.single-page h2 {
    font-size: 24px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
    position: relative;
}
.entry-content.single-page h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #c61d24;
}
.entry-content.single-page h3 {
    font-size: 20px;
}
.entry-content.single-page h4 {
    font-size: 18px;
}
.entry-content.single-page strong,
.entry-content.single-page b {
    color: #111;
    font-weight: 700;
}
.entry-content.single-page em,
.entry-content.single-page i {
    color: #444;
}
.entry-content.single-page a {
    color: #c61d24;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.entry-content.single-page a:hover {
    color: #a0151c;
    text-decoration: underline;
}
.entry-content.single-page blockquote {
    border-left: 4px solid #c61d24;
    background: #f9f9f9;
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}
.entry-content.single-page blockquote p:last-child {
    margin-bottom: 0;
}
.entry-content.single-page ul,
.entry-content.single-page ol {
    margin-bottom: 25px;
    padding-left: 20px;
}
.entry-content.single-page li {
    margin-bottom: 8px;
}
.entry-content.single-page img {
    border-radius: 4px;
    margin: 20px 0;
    max-width: 100%;
    height: auto;
}
/* Table Optimization */
.entry-content.single-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #fff;
    border: 1px solid #eaeaea;
}
.entry-content.single-page table th,
.entry-content.single-page table td {
    padding: 12px 15px;
    border: 1px solid #eaeaea;
    vertical-align: middle;
}
.entry-content.single-page table th {
    background-color: #c61d24;
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.entry-content.single-page table tr:nth-child(even) td {
    background-color: #fbfbfb;
}
.entry-content.single-page table tr:hover td {
    background-color: #f1f1f1;
}

@media only screen and (max-width: 48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    
    /* Custom Single Post Responsive */
    .custom-single-title {
        font-size: 22px;
        line-height: 1.4;
    }
    
    .custom-bottom-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    
    .custom-bottom-author-box .author-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .custom-bottom-author-box .author-desc {
        font-size: 14px;
    }
    
    .custom-share-buttons {
        justify-content: center;
    }
    
    .custom-share-buttons .share-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
    
    .custom-toc {
        margin: 15px 0;
    }
    
    .custom-toc-header {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .custom-toc-content {
        padding: 15px;
    }
    
    .entry-content.single-page h2 {
        font-size: 20px;
    }
    
    .entry-content.single-page h3 {
        font-size: 18px;
    }
    
    .entry-content.single-page table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .custom-post-card {
        flex-direction: column;
    }

    .custom-post-thumb {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .custom-post-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 15px;
    }


}
/* Remove image caption background */
.wp-caption-text,
figcaption {
    background: transparent !important;
    background-color: transparent !important;
}