    /*
    Theme Name: Tesla Dev Blog
    Theme URI:  https://www.scantobimservices.co.uk/
    Author: Devendra Koshti
    Author URI:  https://www.scantobimservices.co.uk/
    Description: A custom blog theme (responsive) — brand color and responsive utilities.
    Version:     1.0.1
    Requires at least: 6.0
    Requires PHP: 7.4
    License:     GNU General Public License v2 or later
    Text Domain: tesla-dev-blog
    */

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

    :root {
        --site-header-height: 150px;
        --primary-color: #176B61;
        --black-color: #000000;
        --white-color: #ffffff;
        --color-grey: #303031;
    }
    body{
        background-color: var(--white-color) !important;
    }
    a{
        text-decoration: none !important;
    }
    body:has(.blog-single-mn) {
        background-color: #f7f8f9;
    }

    .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: static;
        z-index: 20;
    }

    /* Keep the complete left column (TOC, social links and contact button)
       visible together while the article scrolls. */
    @media (min-width: 1200px) {
        .blog-sticky-sidebar {
            position: sticky;
            top: 110px;
            align-self: flex-start;
            height: fit-content;
            overflow-x: hidden;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(34, 48, 67, 0.35) transparent;
        }

        /* JS adds this class when the transformed smooth-scroll wrapper is
           present, because native sticky cannot track that wrapper. */
        .blog-sticky-sidebar.blog-sticky-enhanced {
            position: relative;
            top: auto;
            will-change: transform;
        }

        .blog-sticky-sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .blog-sticky-sidebar::-webkit-scrollbar-thumb {
            background: rgba(34, 48, 67, 0.35);
            border-radius: 999px;
        }
    }

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

    .card-link {
        font-size: 18px;
        background: var(--primary-color);
        transition: transform 0.3s ease;
        padding: 10px 20px;
        color: var(--white-color);
        border: 1px solid transparent;
        text-decoration: none;
        display: inline-block;
        border-radius: 50px;
        font-weight: 400;
    }

    .blog-post-title {
        font-size: clamp(20px,2.4vw,30px)!important;
        line-height: 1.25;
        margin: 0 0 6px;
        color: var(--primary-color) !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
    }

    .blog-post-excerpt {
        color: rgba(33, 37, 41, 0.75);
        /* font-size: 0.95rem; */
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
    }
    p.small{
        color:#000;
        font-size: 14px;
    }
    .blog-card .blog-card-img {
    overflow: hidden;
    border-radius: 12px;
    padding: 40px 0 40px 30px;
    position: relative;
    height: 380px;
}
    .blog-card .blog-card-img::after{
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        border-radius: 12px;
        background-image: linear-gradient(180deg, #0D403B 0%, #176B61 50%, #aed5d0 100%);
        z-index: -1;

    }
    .blog-card .blog-card-img img{
        transition: transform 0.3s ease;
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;

    }
    .blog-card:hover img{
        transform: scale(1.1);
    }
    .blog-card:hover .card-link {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background: var(--white-color);
    }

    /* Pagination styling */
    .pagination-wrapper ul {
        display: flex;
        justify-content: center;
        padding-left: 0;
        list-style: none;
        margin: 2.7% 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 a{color: var(--primary-color);}
    .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 !important;
        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);
        font-weight: 700;
    }

    /* 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%;
        border: none;
        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: #000000;
    }

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

    .blog-social-link .social-link:nth-child(4) {
        background: #006AFF;
    }

    /* CTS Style */
    .canonic-light {
        padding: 30px;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0px 0px 4px 0px var(--primary-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(--primary-color);
        font-weight: 700;
    }
    .canonic-light p a{
        color: var(--primary-color) !important;
    }
    .canonic-light a{
        color: white !important;
    }
    .canonic-light a:hover{
        color: var(--primary-color) !important;
    }
    .canonic-grey {
        padding: 30px;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0px 0px 4px 0px var(--primary-color);
        border-radius: 15px;
        background-color: var(--color-grey);
        margin-bottom: 40px;
        color: var(--white-color) !important;
    }

    .canonic-grey h4, .canonic-grey h3, .canonic-grey .wp-block-heading {
        color: var(--white-color) !important;
        margin-top: 0px !important;
        margin-bottom: 30px;
    }

    .canonic-grey a {
        text-decoration: none !important;
        color:var(--white-color);
        font-weight: 600;
    }
    .canonic-grey .wp-element-button:hover{background: var(--white-color); color: var(--primary-color);}
    .canonic-grey .wp-element-button{
        background-color: var(--white-color);
        color: var(--primary-color);
    }
    .blog-popup-form {
        background: rgba(0, 0, 0, 0.5);
        z-index: 99999;
    }

    /* Blog Main Banner Style */
    .sec-1-home-3{
        background:#fefefe;
    }
    @media (min-width: 768px) {
        .md\:grid-cols-7 {
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }
    }
    .border-dark\/01 {
        border-right: 1px solid #1d1d1d;
    }

    @keyframes rotate-infinite {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    }
    .rotate-infinite {
    animation: rotate-infinite 15s linear infinite;
    }


    html{
        margin-top: 0 !important;
    }
    .blog-banner-mn {   
        background: var(--color-grey);
        padding: 120px 0px;
        gap: 20px;
        margin-bottom: 110px;
    }

    h1.blog-title::before{
        display: none;
        text-align: start;

    }
    h1.blog-title {
        margin: 0px !important;
        padding: 0px !important;
        color: #000000;
        font-size: clamp(35px, 2.9vw, 80px) !important;
        word-spacing: 5px;
        font-weight: 900 !important;

    }
    .blog-path .black-text{
        color:var(--white-color);
        margin-left: 10px;
    }
    .blog-path ol li svg {
        fill:var(--primary-color);
    }

    /* 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;
    }

  .canonic-light h3, .canonic-light h4, .canonic-light .wp-block-heading, .canonic-grey h3, .canonic-grey .wp-block-heading{
        font-size: 14px !important; 
        margin-top: 0;
    }

    /* 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 */
    /* Fallback for all browsers (including Firefox) */
    p.drop-cap::first-letter {
        float: left;
        font-size: 32px;
        margin-right: 8px;
        font-weight: 500;
    }

    /* Use real initial-letter where supported */
    @supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
        p.drop-cap::first-letter {
            float: none;
            margin-right: 8px;
            font-weight: 500;
            -webkit-initial-letter: 2;
            initial-letter: 2;
        }
    }


    .svg-inline--fa {
        display: inline-block;
        height: 1em;
        overflow: visible;
        vertical-align: -0.125em;
    }
    .canonic-light .wp-element-button {color: var(--white-color); background: var(--primary-color); font-weight: 500;}
    .canonic-light .wp-element-button:hover{color: var(--white-color); background: var(--primary-color);}
    .breadcrumb-services {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: wrap;
    padding: 2px;
    margin-bottom: 0;
    list-style: none;
    row-gap: 15px;
    }
    .breadcrumb-left {
        margin-left: 15px;
    }
    .wp-block-list{
        list-style: disc !important;
        padding-left: 20px !important;
    }
    .wp-block-list li{
        padding-left: 10px !important;
    }
    .canonic-dark {
        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(--black-color);
        margin-bottom: 40px;
        color: var(--white-color);
    }
    .single-post-content li {list-style: unset;}
    @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-img {
            margin-right: 0;
            margin-bottom: -30%;
        }
        .blog-single-mn {
        padding-top: 180px;
    }
    }

    @media (max-width: 767px) {
        h1.blog-title{
            padding-top: 15px !important;
        }

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

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

        .nav-title {
            font-size: 15px;
        }
        .blog-single-mn {
        padding-top: 120px;
        padding-bottom: 120px;
        }
    }

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

        .emphasispara {
            padding: 24px;
        }
        .blog-single-mn {
        padding-bottom: 80px;
    }
    }

   
    .footer a {color:var(--white-color);}
    /* banner new CSS Start */
    .bim-banner {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background: #fff;
    }

    .bim-banner::before {
      content: "";
      position: absolute;
      width: 450px;
      height: 450px;
      left: -220px;
      bottom: -330px;
      border-radius: 50%;
      background: #e7f4f3;
      z-index: -1;
    }

    .bim-highlight {
      display: inline-block;
      color: #fff;
      background: #d6142d;
      padding: 0.05em 0.35em 0.12em;
      transform: skewX(-12deg);
      margin-left: 0.12em;
    }

    .bim-highlight span {
      display: inline-block;
      transform: skewX(12deg);
    }

    .bim-image-wrap {
      position: relative;
      isolation: isolate;
      padding: 20px 20px 20px 44px;
    }

    .bim-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    background: linear-gradient(316deg, #0D403B 0%, #176B61 50%, #aed5d0 100%);
    clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
}

    .bim-image {
      width: 100%;
      height: 440px;
      object-fit: cover;
      object-position: center;
      clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
      background: #e7eeee;
    }

    .bim-dots {
      position: absolute;
      right: 25px;
      bottom: 18px;
      width: 90px;
      height: 65px;
      background-image: radial-gradient(#08716d 1.5px, transparent 1.5px);
      background-size: 15px 15px;
      opacity: 0.4;
      pointer-events: none;
    }

    @media (max-width: 1023px) {
      .bim-image {
        height: 360px;
      }
    }

    @media (max-width: 767px) {
      .bim-image-wrap {
        padding: 8px;
      }

      .bim-image-wrap::before,
      .bim-image {
        clip-path: none;
        border-radius: 14px;
      }

      .bim-image {
        height: 260px;
      }

      .bim-dots {
        display: none;
      }
    }

    @media (max-width: 480px) {
      .bim-image {
        height: 220px;
      }
    }
    /* banner new CSS End */



    /* =========================================================
   GET IN TOUCH POPUP MODAL
   ========================================================= */


/* ---------------------------------------------------------
   FULL SCREEN BACKGROUND / BLACK FILM
   --------------------------------------------------------- */

.blog-popup-form {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 20px !important;

    z-index: 999999 !important;

    display: none;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.70);

    overflow-x: hidden;
    overflow-y: auto;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* ---------------------------------------------------------
   ACTIVE / OPEN STATE
   --------------------------------------------------------- */

.blog-popup-form.active {
    display: flex !important;

    opacity: 1 !important;

    visibility: visible !important;
}


/* ---------------------------------------------------------
   MODAL DIALOG
   --------------------------------------------------------- */

.blog-popup-dialog {
    position: relative;

    width: 100%;
    max-width: 900px;

    margin: auto;

    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    transform: translateY(-25px) scale(0.98);

    transition:
        transform 0.30s ease;
}


/* ---------------------------------------------------------
   MODAL OPEN ANIMATION
   --------------------------------------------------------- */

.blog-popup-form.active .blog-popup-dialog {
    transform: translateY(0) scale(1);
}


/* ---------------------------------------------------------
   WHITE MODAL BOX
   --------------------------------------------------------- */

.blog-popup-content {
    position: relative;

    width: 100%;
    max-width: 900px;

    margin: 0;

    padding: 0;

    background: #ffffff;

    border: none;

    border-radius: 12px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.45);

    overflow: hidden;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   MODAL BODY
   --------------------------------------------------------- */

.blog-popup-body {
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   INNER CONTENT
   --------------------------------------------------------- */

.blog-popup-inner {
    position: relative;

    width: 100%;

    margin: 0;
    z-index: 999999;


    background: #ffffff;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   CONTACT US HEADING
   --------------------------------------------------------- */

.blog-popup-inner h2 {
    margin: 0 50px 25px 0 !important;

    padding: 0 !important;

    font-size: 32px;

    line-height: 1.25;

    font-weight: 700;

    color: #223043;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.blog-popup-close {
    position: absolute !important;

    top: 20px !important;
    right: 20px !important;

    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background: #f1f3f5 !important;

    cursor: pointer;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 1 !important;

    box-shadow: none !important;

    outline: none !important;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


/* ---------------------------------------------------------
   CLOSE BUTTON - X
   --------------------------------------------------------- */

.blog-popup-close::before,
.blog-popup-close::after {
    content: "";

    position: absolute;

    width: 17px;

    height: 2px;

    border-radius: 2px;

    background: #223043;

    transition:
        background-color 0.25s ease;
}


.blog-popup-close::before {
    transform: rotate(45deg);
}


.blog-popup-close::after {
    transform: rotate(-45deg);
}


/* ---------------------------------------------------------
   CLOSE BUTTON HOVER
   --------------------------------------------------------- */

.blog-popup-close:hover {
    background: #223043 !important;

    transform: rotate(90deg);
}


.blog-popup-close:hover::before,
.blog-popup-close:hover::after {
    background: #ffffff;
}


/* ---------------------------------------------------------
   CLOSE BUTTON FOCUS
   --------------------------------------------------------- */

.blog-popup-close:focus {
    outline: none !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   PREVENT BACKGROUND SCROLL
   --------------------------------------------------------- */

body.blog-popup-open {
    overflow: hidden !important;
}


/* =========================================================
   FORM INSIDE POPUP
   ========================================================= */

.blog-popup-inner form {
    position: relative;

    width: 100%;

    max-width: 100%;

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   FORM ROW
   --------------------------------------------------------- */

.blog-popup-inner form .form-row {
    width: 100%;

    margin-left: 0;
    margin-right: 0;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   INPUT / TEXTAREA / SELECT
   --------------------------------------------------------- */

.blog-popup-inner input,
.blog-popup-inner textarea,
.blog-popup-inner select {
    max-width: 100%;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   IMAGES INSIDE FORM
   --------------------------------------------------------- */

.blog-popup-inner img {
    max-width: 100%;

    height: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .blog-popup-form {
        padding: 20px !important;
    }

    .blog-popup-dialog {
        max-width: 700px;
    }


    .blog-popup-inner h2 {
        font-size: 30px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .blog-popup-form {
        padding: 15px !important;
    }

    .blog-popup-dialog {
        width: 100%;

        max-width: 100%;
    }

    .blog-popup-content {
        border-radius: 10px;
    }


    .blog-popup-inner h2 {
        font-size: 26px;

        margin-top: 0 !important;

        margin-right: 45px !important;

        margin-bottom: 20px !important;
    }

    .blog-popup-close {
        top: 15px !important;

        right: 15px !important;

        width: 34px !important;

        height: 34px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .blog-popup-form {
        padding: 10px !important;
    }


    .blog-popup-inner h2 {
        font-size: 24px;

        margin-bottom: 18px !important;
    }

}


/* =========================================================
   VERY SMALL SCREEN
   ========================================================= */

@media (max-height: 600px) {

    .blog-popup-form {
        align-items: flex-start;

        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

}
