/* Active Category Highlighting in Top Navigation */
.center-section a.active-category,
.navigation-bar a.active-category {
    color: #ff6b35 !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #ff6b35 !important;
    padding-bottom: 4px !important;
}

.center-section a {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.center-section a:hover {
    color: #ff6b35 !important;
}

/* Universal Tag / Category Badge Styling (Orange Background + Bold White Text) */
.tag,
.image-area .tag,
.bottom-share-bar .tag,
.content-catagory-tag,
span.tag {
    background-color: #ff6b35 !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    margin: 0 !important;
    z-index: 5 !important;
    line-height: normal !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3) !important;
}

/* Button Styling (Sign Up, Subscribe, Read More, CTA, Details) */
.tp-btn,
.subscribe-btn,
.continue-reading-btn,
.cta-btn {
    display: inline-block !important;
    padding: 10px 24px !important;
    background-color: #ff6b35 !important;
    color: #ffffff !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.tp-btn:hover,
.subscribe-btn:hover,
.continue-reading-btn:hover,
.cta-btn:hover {
    background-color: #e05523 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

/* Checkbox Pseudo-Element Override (Fixes Slate Grey Box Bug) */
input[type=checkbox] ~ label::before {
    background-color: #ffffff !important;
    border: 2px solid #ff6b35 !important;
    border-radius: 3px !important;
    width: 16px !important;
    height: 16px !important;
    top: 2px !important;
    left: 0 !important;
}

input[type=checkbox]:checked ~ label::before {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
}

input[type=checkbox]:checked ~ label::after {
    opacity: 1 !important;
}

html[data-theme='dark'] input[type=checkbox] ~ label::before {
    background-color: #161b22 !important;
    border-color: #ff6b35 !important;
}

html[data-theme='dark'] input[type=checkbox]:checked ~ label::before {
    background-color: #ff6b35 !important;
}

/* Right Sidebar Posts & Widgets - Light Mode Default */
.eblog-right-side-post {
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #eee !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

/* Fix for About Me Author Box */
.eblog-right-side-post.author {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.eblog-right-side-post.author p.title {
    background: #ff6b35 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    border: none !important;
}

.eblog-right-side-post.author h4.title {
    color: #222222 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.eblog-right-side-post.author p.desc {
    color: #666666 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* Fix Widget Titles */
.eblog-right-side-post > .title {
    color: #222222 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #ff6b35 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
}

/* Feature post inside sidebar - title text should not have border-bottom */
.featured-post.sidebar .title,
.featured-post.sidebar h4.title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 8px !important;
}

.featured-post.sidebar .title a,
.featured-post.sidebar h4.title a {
    color: #222222 !important;
    text-decoration: none !important;
}

.featured-post.sidebar .title a:hover,
.featured-post.sidebar h4.title a:hover {
    color: #ff6b35 !important;
}

/* Header FOLLOW US Icons Styling (Clean icons, no white background circles) */
.follow-us-header-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.follow-us-header-icons a i {
    color: #333333 !important;
    font-size: 15px !important;
    transition: color 0.3s ease !important;
}

.follow-us-header-icons a:hover i {
    color: #ff6b35 !important;
}

html[data-theme='dark'] .follow-us-header-icons a i {
    color: #ffffff !important;
}

html[data-theme='dark'] .follow-us-header-icons a:hover i {
    color: #ff6b35 !important;
}

/* Social Icons in About Me, Footer */
.social-icons,
.social-wrapper {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 !important;
}

.social-icons a,
.social-wrapper a,
.social-wrapper li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: #f5f5f5 !important;
    color: #ff6b35 !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.social-icons a i,
.social-wrapper a i,
.social-wrapper li a i {
    color: #ff6b35 !important;
    font-size: 14px !important;
}

.social-icons a:hover,
.social-wrapper a:hover,
.social-wrapper li a:hover {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
}

.social-icons a:hover i,
.social-wrapper a:hover i,
.social-wrapper li a:hover i {
    color: #ffffff !important;
}

/* Newsletter Input Form Styling */
.newsletter-area input,
.newsletter-form input,
.single-input-wrapper input {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #dddddd !important;
    border-radius: 6px !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    outline: none !important;
}

.newsletter-area input:focus,
.newsletter-form input:focus,
.single-input-wrapper input:focus {
    border-color: #ff6b35 !important;
}

.subscribe-btn {
    width: 100% !important;
    text-align: center !important;
}

/* Hero Banner & Image Overlay Cards - Maximum Contrast Text Rules */
.eblog-banner-news .blog-content,
.eblog-banner-area .blog-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 60%, transparent 100%) !important;
    padding: 30px 25px !important;
    border-radius: 0 0 10px 10px !important;
}

.eblog-banner-news .blog-content *,
.eblog-banner-area .blog-content * {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.eblog-banner-news .heading-title a,
.eblog-banner-area .heading-title a {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Top Category Grid Card Styling Override */
.eblog-top-category-area .category-wrapper,
.eblog-top-category-area .category-wrapper.area-3 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.eblog-top-category-area .category-wrapper .image-area {
    position: relative !important;
    width: 100% !important;
    height: 160px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.eblog-top-category-area .category-wrapper .image-area img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.eblog-top-category-area .category-wrapper .content-area {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border-radius: 8px !important;
    transform: none !important;
}

.eblog-top-category-area .category-wrapper .content-area .title,
.eblog-top-category-area .category-wrapper .content-area p.title {
    margin: 0 !important;
    padding: 0 5px !important;
    text-align: center !important;
    width: 100% !important;
    border-bottom: none !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.eblog-top-category-area .category-wrapper .content-area .title a,
.eblog-top-category-area .category-wrapper .content-area p.title a {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9) !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    white-space: nowrap !important;
}

.eblog-top-category-area .category-wrapper .image-area:hover .content-area {
    background: rgba(255, 107, 53, 0.75) !important;
    transition: background 0.3s ease !important;
}

/* Fix Dark Mode Toggle Icon Colors */
.tp-dark-light {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 8px !important;
    margin: 0 !important;
}

.tp-dark-light i,
.tp-dark-light span,
.tp-dark-light .moon-icon i {
    color: #222222 !important;
    font-size: 18px !important;
}

html[data-theme='dark'] .tp-dark-light i,
html[data-theme='dark'] .tp-dark-light span,
html[data-theme='dark'] .tp-dark-light .sun-icon i {
    color: #ffb703 !important;
    font-size: 18px !important;
}

/* ==========================================================================
   COMPLETE DARK MODE HIGH-CONTRAST OVERRIDES
   ========================================================================== */
html[data-theme='dark'] body,
html[data-theme='dark'] main {
    background-color: #0d1117 !important;
    color: #e2e8f0 !important;
}

/* General Headings & Titles in Dark Mode */
html[data-theme='dark'] h1,
html[data-theme='dark'] h2,
html[data-theme='dark'] h3,
html[data-theme='dark'] h4,
html[data-theme='dark'] h5,
html[data-theme='dark'] h6,
html[data-theme='dark'] .heading-title,
html[data-theme='dark'] .heading-title a,
html[data-theme='dark'] .title-animation,
html[data-theme='dark'] .card-title,
html[data-theme='dark'] .card-title-link,
html[data-theme='dark'] .post-detail-title {
    color: #ffffff !important;
}

html[data-theme='dark'] .card-title-link:hover,
html[data-theme='dark'] .heading-title a:hover,
html[data-theme='dark'] .title-animation:hover {
    color: #ff6b35 !important;
}

/* Meta Text, Descriptions, & Subtitles in Dark Mode */
html[data-theme='dark'] .card-meta,
html[data-theme='dark'] .blog-meta,
html[data-theme='dark'] .blog-meta li,
html[data-theme='dark'] .blog-meta span,
html[data-theme='dark'] .post-meta-line,
html[data-theme='dark'] .desc,
html[data-theme='dark'] p {
    color: #cbd5e1 !important;
}

/* Breadcrumbs in Dark Mode */
html[data-theme='dark'] .breadcrumb-link {
    color: #ffffff !important;
}

html[data-theme='dark'] .breadcrumb-current {
    color: #ff6b35 !important;
}

/* Post Detail Text in Dark Mode */
html[data-theme='dark'] .post-content-body {
    color: #e2e8f0 !important;
}

/* Sidebar Widgets in Dark Mode */
html[data-theme='dark'] .eblog-right-side-post,
html[data-theme='dark'] .eblog-right-side-post.author,
html[data-theme='dark'] .featured-post.sidebar {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

html[data-theme='dark'] .eblog-right-side-post > .title,
html[data-theme='dark'] .eblog-right-side-post h4.title,
html[data-theme='dark'] .eblog-right-side-post h5,
html[data-theme='dark'] .eblog-right-side-post h6,
html[data-theme='dark'] .eblog-right-side-post a:not(.tp-btn) {
    color: #f0f6fc !important;
}

html[data-theme='dark'] .eblog-right-side-post p,
html[data-theme='dark'] .eblog-right-side-post .desc {
    color: #8b949e !important;
}

html[data-theme='dark'] .eblog-right-side-post.author p.title {
    background-color: #ff6b35 !important;
    color: #ffffff !important;
}

html[data-theme='dark'] .single-input-wrapper input,
html[data-theme='dark'] .newsletter-area input {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #ffffff !important;
}

/* Category Section Titles in Dark Mode */
html[data-theme='dark'] .section-title,
html[data-theme='dark'] .category-title {
    background-color: transparent !important;
    color: #ffffff !important;
}

html[data-theme='dark'] .section-title-area::after,
html[data-theme='dark'] .header-divider {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Navigation Header in Dark Mode */
html[data-theme='dark'] .header-four,
html[data-theme='dark'] .navigation-bar,
html[data-theme='dark'] .eblog-header-area {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}

html[data-theme='dark'] .center-section a,
html[data-theme='dark'] .navigation-bar a {
    color: #ffffff !important;
}

/* Relevant Keyword Highlighting (Bold + Accent Orange) */
.keyword-highlight,
strong.keyword-highlight,
b.keyword-highlight {
    color: #ff6b35 !important;
    font-weight: 700 !important;
    display: inline;
}

html[data-theme='dark'] .keyword-highlight,
html[data-theme='dark'] strong.keyword-highlight,
html[data-theme='dark'] b.keyword-highlight {
    color: #ff6b35 !important;
    font-weight: 700 !important;
    display: inline;
}

/* Category Bottom Pagination Controls (Strict Horizontal Centered) */
.category-pagination-footer,
.eblog-pagination-area {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    display: block !important;
    margin-top: 50px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    float: none !important;
}

.category-pagination-footer nav,
.eblog-pagination-area nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.pagination-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
}

.pagination-wrapper .page-item {
    display: inline-block !important;
    margin: 0 4px !important;
    float: none !important;
    list-style: none !important;
}

.pagination-wrapper .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme='dark'] .pagination-wrapper .page-link:not(.active) {
    background-color: #161b22 !important;
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}

/* Fixed Top Navigation Header — stays pinned while scrolling */
/* position:fixed used instead of sticky because the parent has overflow-x:hidden */
.eblog-header-area,
.header-four,
.header--sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

html[data-theme='dark'] .eblog-header-area,
html[data-theme='dark'] .header-four,
html[data-theme='dark'] .header--sticky {
    background-color: #161b22 !important;
    border-bottom: 1px solid #30363d !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* Push page content down so it doesn't hide under the fixed 80px header */
.home-four.home-page {
    padding-top: 80px !important;
}

/* Dark mode breadcrumb bar — matches dark header */
html[data-theme='dark'] .eblog-breadcrumb-area {
    background-color: #21262d !important;
    border-bottom-color: #30363d !important;
}

html[data-theme='dark'] .eblog-breadcrumb-area .breadcrumb-link {
    color: #c9d1d9 !important;
}