/*
 Theme Name:   Mighti Child
 Theme URI:    https://mighti.themewant.com/
 Description:  Mighti Child
 Author:       Themewant
 Author URI:   http://themewant.com
 Template:     mighti
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

@media (max-width: 767px) {
  .single-rt-portfolios .title-areas-wrapper-pd,
  .single-rt-portfolios .inner-page.project-details .title-areas-wrapper-pd {
    display: block !important;
    padding: 0 20px !important;
  }

  .single-rt-portfolios .title-areas-wrapper-pd .right,
  .single-rt-portfolios .title-areas-wrapper-pd .right .speen-shape {
    display: none !important;
  }

  .single-rt-portfolios .title-areas-wrapper-pd .left-area .title {
    font-size: 34px !important;
    line-height: 40px !important;
    margin-top: 30px !important;
  }

  .single-rt-portfolios .title-areas-wrapper-pd .left-area .bottom-area {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-top: 28px !important;
    padding-top: 28px !important;
  }

  .single-rt-portfolios .title-areas-wrapper-pd .left-area .bottom-area .single-categoiry::after {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .single-rt-portfolios .project-details {
    overflow-x: hidden !important;
  }

  .single-rt-portfolios .container,
  .single-rt-portfolios .container-2,
  .single-rt-portfolios .container-150 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* =========================================================
   OBSIDIAN THEME SURFACES

   BASE:
   dark  = #000000
   light = #FFFFFF

   RAISED:
   dark  = #0F1116
   light = #F8F8F8
   ========================================================= */


/* ---------- BASE SURFACE ---------- */

html[data-theme="dark"] .obs-surface-base {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .obs-surface-base {
    background-color: #ffffff !important;
    color: #0F1116 !important;
}


/* ---------- RAISED / ALTERNATE SURFACE ---------- */

html[data-theme="dark"] .obs-surface-raised {
    background-color: #0F1116 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .obs-surface-raised {
    background-color: #F8F8F8 !important;
    color: #0F1116 !important;
}


/* ---------- HEADINGS ---------- */

html[data-theme="dark"] .obs-surface-base .elementor-heading-title,
html[data-theme="dark"] .obs-surface-raised .elementor-heading-title,
html[data-theme="dark"] .obs-surface-base h1,
html[data-theme="dark"] .obs-surface-base h2,
html[data-theme="dark"] .obs-surface-base h3,
html[data-theme="dark"] .obs-surface-base h4,
html[data-theme="dark"] .obs-surface-raised h1,
html[data-theme="dark"] .obs-surface-raised h2,
html[data-theme="dark"] .obs-surface-raised h3,
html[data-theme="dark"] .obs-surface-raised h4 {
    color: #ffffff !important;
}

html[data-theme="light"] .obs-surface-base .elementor-heading-title,
html[data-theme="light"] .obs-surface-raised .elementor-heading-title,
html[data-theme="light"] .obs-surface-base h1,
html[data-theme="light"] .obs-surface-base h2,
html[data-theme="light"] .obs-surface-base h3,
html[data-theme="light"] .obs-surface-base h4,
html[data-theme="light"] .obs-surface-raised h1,
html[data-theme="light"] .obs-surface-raised h2,
html[data-theme="light"] .obs-surface-raised h3,
html[data-theme="light"] .obs-surface-raised h4 {
    color: #0F1116 !important;
}

/* ---------- BODY COPY ---------- */

html[data-theme="dark"] .obs-surface-base p,
html[data-theme="dark"] .obs-surface-raised p {
    color: #ffffff;
}

html[data-theme="light"] .obs-surface-base p,
html[data-theme="light"] .obs-surface-raised p {
    color: #74787c;
}

/* =========================================================
   SINGLE BLOG POSTS — MINIMAL FIXES
   ========================================================= */

/* Keep SplitText character animation from breaking words */
.rts_hero__title .rts-split-word {
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Stop the hero title from splitting words */
.single-post .blog-details-bd-wrapper .title,
.single-post .blog-details-bd-wrapper .title * {
    word-break: none !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Keep title large but not ridiculous */
.single-post .blog-details-bd-wrapper .title {
    max-width: 1320px !important;
    font-size: clamp(54px, 4.6vw, 78px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
}

/* Keep the banner from becoming too tall */
.single-post .blog-details-breadcrumb {
    min-height: unset !important;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Hide accidental GSAP / ScrollTrigger markers everywhere */
.gsap-marker-start,
.gsap-marker-end,
.gsap-marker-scroller-start,
.gsap-marker-scroller-end {
    display: none !important;
}

/* =========================================================
   SINGLE POST BLOCKQUOTES
   ========================================================= */

.single-post .elementor-widget-text-editor blockquote {
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;

    margin: 48px 0 !important;

    /* Extra top space reserved for quote badge */
    padding: 112px 72px 60px !important;

    border: 0 !important;
    background-color: #F8F8F8 !important;
    color: #0F1116 !important;

    text-align: center !important;
}


/* DARK MODE — raised surface */

html[data-theme="dark"]
.single-post .elementor-widget-text-editor blockquote {
    background-color: #0F1116 !important;
    color: #ffffff !important;
}


/* =========================================================
   QUOTE BADGE
   Remove it from document flow so it cannot cover the text
   ========================================================= */

.single-post .elementor-widget-text-editor blockquote::before {
    position: absolute !important;

    top: 34px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 60px !important;
    height: 60px !important;

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

    border-radius: 50% !important;

    background-color: #ffffff !important;
    color: #0F1116 !important;

    opacity: 1 !important;
    z-index: 1;
}


/* Keep badge the same in dark mode:
   white disk / dark quote mark */

html[data-theme="dark"]
.single-post .elementor-widget-text-editor blockquote::before {
    background-color: #ffffff !important;
    color: #0F1116 !important;
}


/* =========================================================
   QUOTE COPY
   ========================================================= */

.single-post .elementor-widget-text-editor blockquote p {
    position: relative;
    z-index: 2;

    max-width: 1100px !important;
    margin: 0 auto !important;

    color: inherit !important;
    font-size: clamp(26px, 2.2vw, 40px) !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}


/* Mighti also generates an ::after quote.
   Your copy already contains closing quotation marks,
   so suppress the duplicate theme-generated one. */

.single-post .elementor-widget-text-editor blockquote::after {
    display: none !important;
    content: none !important;
}


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

@media (max-width: 767px) {

    .single-post .elementor-widget-text-editor blockquote {
        margin: 36px 0 !important;
        padding: 96px 24px 38px !important;
    }

    .single-post .elementor-widget-text-editor blockquote::before {
        top: 26px !important;
        width: 56px !important;
        height: 56px !important;
    }

    .single-post .elementor-widget-text-editor blockquote p {
        font-size: 23px !important;
        line-height: 1.35 !important;
    }
}