/*
Theme Name: Telsa Dev Blog live
Theme URI:  https://www.teslaoutsourcingservices.com/
Author: Devendra Koshti
Author URI:  https://example.com
Description: A custom blog theme (responsive) — brand color and responsive utilities.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: tesla-dev-blog
*/

/* Blog Css Start Devendra 20-12-2025 */

:root {
    --site-header-height: 88px;
    --primary-color: #ff9922;
    --black-color: #000000;
    --white-color: #ffffff;
    --color-grey: #303031;
}

body:has(.blog-single-mn) {
    background-color: #f7f8f9;
}
main{padding-top: 0 !important;}
.blog-read-more {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.blog-read-more:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.wp-block-image img,
.single-featured-image img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.sidebar-widget {
    position: sticky;
    top: 110px;
    z-index: 20;
}

.section-lg {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0px 15px;
}

/* Blog Title Css */
h2.wp-block-heading {
    color: var(--primary-color);
}

/* Blog cards */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 14px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--text);
}

.card-text {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Pagination styling */
.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin: 18px 0;
    flex-wrap: wrap;
    row-gap: 12px;
}

.pagination-wrapper ul li {
    margin: 0 6px;
}

.pagination-wrapper ul li a,
.pagination-wrapper ul li span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
}

.pagination-wrapper ul li a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.pagination-wrapper .current {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Single post content */
.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
    line-height: 1.25;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.single-post-content p {
    margin-bottom: 1em;
}

.single-post-content blockquote {
    border-left: 4px solid var(--card-border);
    padding-left: 12px;
    color: var(--muted);
    margin: 1em 0;
}

/* Sidebar / TOC styles (compatible with previous code) */
.post-toc,
.single-post-content {
    border: 1px solid rgba(185, 185, 185, 0.4);
    padding: 30px;
    border-radius: 20px;
    background: var(--white-color);
    margin-bottom: 24px;
    box-shadow: 0 5px 20px 0 rgba(69, 67, 96, 0.1);
}

.post-toc .toc-list {
    counter-reset: section;
}

.post-toc .toc-item {
    margin-bottom: 8px;
    position: relative;
    display: flex !important;
}

.post-toc .toc-item::before {
    counter-increment: section;
    content: counter(section) ". ";
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    margin-right: 5px;
}

.post-toc .toc-link {
    display: inline-flex;
    font-weight: 400;
    color: var(--black-color);
}

.post-toc .toc-link:hover {
    color: var(--primary-color);
}

.post-toc .toc-link.is-active {
    color: var(--primary-color);
}

/* Sidebar Social Icon Style */
.blog-social-link .social-link {
    height: 40px;
    width: 40px;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 0px;
    border-radius: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-social-link .social-link i {
    font-size: 22px;
}

.blog-social-link .social-link:nth-child(1) {
    background: #0077b5;
}

.blog-social-link .social-link:nth-child(2) {
    background: var(--black-color);
}

.blog-social-link .social-link:nth-child(3) {
    background: #3c589a;
}

.blog-social-link .social-link:nth-child(4) {
    background: #cc2329;
}
.blog-social-link .social-link:nth-child(5) {
    background: #0a7aff;
}


/* CTS Style */
.canonic-light {
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0px 0px 4px 0px var(--black-color);
    border-radius: 15px;
    margin: 20px 0 20px 0;
}

.canonic-light p {
    font-size: 20px;
    color: var(--black-color);
}

.canonic-light span {
    font-size: 20px;
    color: var(--black-color);
    font-weight: 700;
}

.canonic-grey {
    padding: 50px 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0px 0px 4px 0px var(--black-color);
    border-radius: 15px;
    background-color: var(--color-grey);
    margin-bottom: 40px;
    color: var(--white-color) !important;
}

.canonic-grey h4 {
    font-size: 32px;
    color: var(--white-color) !important;
    margin-bottom: 30px;
}

.canonic-grey a {
    text-decoration: none !important;
}

.blog-popup-form {
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.modal-backdrop.show {
    opacity: 0 !important;
    z-index: -2;
}

/* Blog Main Banner Style */
.blog-banner-mn {
    width: 70%;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--color-grey);
    padding: 120px 6vw;
    gap: 20px;
    margin-bottom: 195px;
}

.blog-banner-title {
    width: 100%;
    max-width: 700px;
}

.blog-banner-title h1 {
    font-size: calc(3.2rem + 1.5vw) !important;
}

.blog-banner-img {
    max-width: 900px;
    margin-right: -51%;
    margin-bottom: -330px;
}

/* Blog Next Prev Button Css Start  02-02-2026*/
.tesla-post-nav-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.tesla-post-nav-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.tesla-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    text-decoration: none !important;
    color: #1a1a1a;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.tesla-nav-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    background: #fcfdfe;
    z-index: 1;
}

.tesla-nav-btn.prev-btn {
    text-align: left;
}

.tesla-nav-btn.next-btn {
    text-align: right;
    justify-content: flex-end;
}

.nav-arrow {
    font-size: 26px;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.prev-btn:hover .nav-arrow {
    transform: translateX(-8px);
}

.next-btn:hover .nav-arrow {
    transform: translateX(8px);
}

.prev-btn .nav-arrow {
    margin-right: 20px;
}

.next-btn .nav-arrow {
    margin-left: 20px;
}

.nav-content {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.nav-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #7d8590;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    font-weight: 700;
}

.nav-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.45;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tesla-nav-btn.disabled {
    visibility: hidden;
    pointer-events: none;
}

/* Loading Animation */
.nav-btn-loading {
    opacity: 0.6;
    cursor: wait;
}

.nav-btn-loading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    animation: tesla-nav-loading 1.2s infinite ease-in-out;
}

/* 02-02-2026 css start  */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 700 !important;
}

h4.wp-block-heading {
    font-size: 14px;
}

/* table css start  */
thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

table:not(.variations):not(.shop_table) {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem auto;
    border-radius: 0;
    background-color: rgba(190, 190, 190, 0.2);
}

table:not(.variations):not(.shop_table) tbody,
table:not(.variations):not(.shop_table) tfoot,
table:not(.variations):not(.shop_table) thead {
    border: 0.1rem solid rgba(185, 185, 185, 0.4);
    color: inherit;
}

table:not(.variations):not(.shop_table) caption,
table:not(.variations):not(.shop_table) td,
table:not(.variations):not(.shop_table) tr {
    text-align: start;
}

table:not(.variations):not(.shop_table) th {
    font-weight: 600;
}

table:not(.variations):not(.shop_table) td,
table:not(.variations):not(.shop_table) th {
    padding: 0.7rem;
}

table:not(.variations):not(.shop_table) tbody tr:nth-child(odd) {
    border-bottom: 0;
    background-color: var(--white-color);
}

table:not(.variations):not(.shop_table) thead tr,
table:not(.variations):not(.shop_table) tfoot tr {
    background: transparent;
}

table:not(.variations):not(.shop_table) tfoot td,
table:not(.variations):not(.shop_table) tfoot th,
table:not(.variations):not(.shop_table) thead td,
table:not(.variations):not(.shop_table) thead th {
    font-weight: 500;
    text-align: start;
}

table:not(.variations):not(.shop_table) caption {
    font-weight: 500;
}

.wp-block-calendar tbody td,
.wp-block-calendar th {
    border-color: rgba(185, 185, 185, 0.4);
}

.wp-block-calendar table th {
    background: rgba(185, 185, 185, 0.4);
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table thead {
    border-bottom: 3px solid;
}

.wp-block-table tfoot {
    border-top: 3px solid;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid;
    padding: 0.5em;
}

.wp-block-table .has-fixed-layout {
    table-layout: fixed;
    width: 100%;
}

.wp-block-table .has-fixed-layout td,
.wp-block-table .has-fixed-layout th {
    word-break: break-word;
}

.wp-block-table.aligncenter,
.wp-block-table.alignleft,
.wp-block-table.alignright {
    display: table;
    width: auto;
}

.wp-block-table.aligncenter td,
.wp-block-table.aligncenter th,
.wp-block-table.alignleft td,
.wp-block-table.alignleft th,
.wp-block-table.alignright td,
.wp-block-table.alignright th {
    word-break: break-word;
}

.wp-block-table .has-subtle-light-gray-background-color {
    background-color: #f3f4f5;
}

.wp-block-table .has-subtle-pale-green-background-color {
    background-color: #e9fbe5;
}

.wp-block-table .has-subtle-pale-blue-background-color {
    background-color: #e7f5fe;
}

.wp-block-table .has-subtle-pale-pink-background-color {
    background-color: #fcf0ef;
}

.wp-block-table.is-style-stripes {
    background-color: initial;
    border-collapse: inherit;
    border-spacing: 0;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f0f0f0;
}

.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd) {
    background-color: #f3f4f5;
}

.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) {
    background-color: #e9fbe5;
}

.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) {
    background-color: #e7f5fe;
}

.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) {
    background-color: #fcf0ef;
}

.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
    border-color: #0000;
}

/* table css start  */
.emphasispara {
    margin: 0 0 calc(3.2rem) 0;
    padding: calc(3.2rem) calc(1.5 * 3.2rem);
    border-left: 4px solid var(--color-red);
    position: relative;
}

/* Drop Cap */
p.drop-cap::first-letter {
    color: rgb(0, 0, 0);
    padding-right: 8px;
    -webkit-initial-letter: 2;
    initial-letter: 2;
}

li {
    margin-bottom: 0.4rem;
}

.single-post-content img {
    width: 100% !important;
    margin: 0 auto !important;
}

.svg-inline--fa {
    display: inline-block;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
}
.blog-banner {margin-top: 60px;margin-bottom: 6%;padding: 3% 0;}
.back-to-home-btn{padding: 15px 30px;font-size: 16px;color: var(--white-color);border: 1px solid var(--primary-color);border-radius: 8px;font-weight: 700;letter-spacing: 1px;transition: all .4s ease;background-color: var(--primary-color);text-transform: capitalize;pointer-events:auto; text-decoration: none;}
.back-to-home-btn:hover{background-color: var(--white-color);border: 1px solid var(--primary-color);color: var(--primary-color);}
@keyframes tesla-nav-loading {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@media (max-width: 1199px) {
    .blog-banner-mn {
        min-height: auto;
        width: 100%;
        flex-wrap: wrap;
        gap: 60px;
        margin-bottom: 25%;
    }

    .blog-banner-img {
        margin-right: 0;
        margin-bottom: -30%;
    }
}
@media screen and (max-width:991px) {
    .blog-banner{margin-top: 46px;}    
}
@media (max-width: 767px) {
    .blog-banner-mn {
        padding-bottom: 40px;
    }

    .tesla-post-nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .tesla-nav-btn {
        padding: 18px;
    }

    .nav-title {
        font-size: 15px;
    }
}

@media screen and (max-width: 576px) {
    td {
        font-size: 14px;
    }

    .blog-banner-mn {
        gap: 30px;
    }

    .emphasispara {
        padding: 24px;
    }
}