/* The RTL header is in normal flow, so the hero needs less top spacing. */
         [dir="rtl"] .tp-hero-6-area .tp-hero-6-content {
            padding-top: 135px;
         }
         [dir="rtl"] .tp-hero-6-area .tp-hero-2-shape-2 {
            top: 30px;
            animation: none;
         }
         @media (max-width: 1199px) {
            [dir="rtl"] .tp-hero-6-area .tp-hero-6-content {
               padding-top: 60px;
            }
         }
         @media (max-width: 991px) {
            [dir="rtl"] .tp-hero-6-area .tp-hero-6-content {
               padding-top: 40px;
            }
         }

         /* Keep the transparent portrait complete and clear of the hero copy. */
         .tp-hero-6-thumb .ct-hero-cutout {
            display: block;
            width: min(43vw, 580px);
            height: auto;
         }
         @media (min-width: 992px) {
            .tp-hero-6-area .tp-hero-6-user {
               inset-inline-start: -180px;
               inset-inline-end: auto;
            }
         }
         @media (min-width: 992px) and (max-width: 1199px) {
            .tp-hero-6-area .tp-hero-6-thumb {
               inset-inline-end: 18px;
               inset-inline-start: auto;
            }
         }
         @media (max-width: 991px) {
            .tp-hero-6-area .tp-hero-6-content {
               padding-bottom: 28px;
            }
            .tp-hero-6-area .row > .col-md-6 {
               width: 100%;
            }
            .tp-hero-6-area .tp-hero-6-user {
               position: relative;
               inset: auto;
               width: max-content;
               max-width: 100%;
               margin: 0 auto 24px;
               animation: none;
            }
            .tp-hero-6-area .tp-hero-6-thumb {
               width: min(100%, 520px);
               margin-inline: auto;
            }
            .tp-hero-6-thumb .ct-hero-cutout {
               width: 100%;
            }
         }

         /* Hero palette: white copy with cyan and yellow accents on purple. */
         .tp-hero-6-area {
            background-color: #5045df;
         }
         .tp-hero-6-area .tp-hero-6-title,
         .tp-hero-6-area .tp-hero-6-content p,
         .tp-hero-6-area .tp-hero-6-subtitle,
         .tp-hero-6-area .tp-hero-6-user > span,
         .tp-hero-6-area .tp-hero-6-user-text p {
            color: #fff;
         }
         .tp-hero-6-area .tp-hero-6-subtitle {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.25);
         }
         .tp-hero-6-area .tp-hero-6-subtitle svg path[fill="#5956E9"] {
            fill: #a5f3fc;
         }
         .tp-hero-6-title span {
            color: inherit;
         }
         .tp-hero-6-area .tp-hero-6-title .highlight-number-wrap {
            color: #a5f3fc;
         }
         .tp-hero-6-area .tp-hero-6-btn .tp-btn-inner {
            color: #5045df;
            background: #fff;
            box-shadow: 0 8px 24px rgba(28, 21, 96, 0.18);
         }
         .tp-hero-6-area .tp-hero-6-btn .tp-btn-inner:hover,
         .tp-hero-6-area .tp-hero-6-btn .tp-btn-inner:focus-visible {
            color: #352b98;
            background: #ffd25d;
         }
         .tp-hero-6-area .tp-hero-6-btn .tp-btn-inner:focus-visible,
         .tp-hero-6-area .tp-hero-6-video a:focus-visible {
            outline: 2px solid #fff;
            outline-offset: 5px;
         }
         .tp-hero-6-area .tp-hero-6-video svg path {
            fill: #5045df;
         }
         .tp-hero-6-area .tp-hero-6-user {
            background: rgba(40, 32, 130, 0.78);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 20px 40px rgba(28, 21, 96, 0.2);
         }
         .tp-hero-6-area .tp-hero-6-user-text p i {
            color: #ffd25d;
         }
         .tp-hero-6-area .tp-hero-6-shape .shape-2 img {
            filter: brightness(0) invert(1);
         }

         /* Features section: title should be dark, only underlined word is blue */
         .category-area .tp-section-3-title {
            color: var(--tp-heading-2) !important;
         }
         .category-area .tp-section-3-title > span {
            color: var(--tp-heading-2) !important;
         }
         .category-area .tp-section-3-title > span:last-of-type {
            color: var(--tp-theme-9) !important;
         }

         /* Why us: compact cards matching the Acadia feature strip. */
         .category-area {
            background: #f7f7f9;
            padding: 65px 0;
         }
         .category-area .tp-section-3-title > span:first-of-type {
            display: inline;
         }
         .category-area .wow {
            visibility: visible !important;
            animation: none !important;
         }
         .ct-feature-grid {
            --bs-gutter-x: 30px;
            row-gap: 24px;
         }
         .ct-feature-col {
            display: flex;
            border-inline-end: 1px solid #e6e7ed;
         }
         .ct-feature-col:last-child {
            border-inline-end: 0;
         }
         .category-area .tp-category-item {
            width: 100%;
            min-height: 200px;
            margin-bottom: 0;
            padding: 45px 8px 37px;
            border: 0;
            border-radius: 0;
            background: transparent;
            text-align: center;
            transition: background-color 0.25s ease, box-shadow 0.25s ease;
         }
         .category-area .tp-category-item:hover,
         .category-area .tp-category-item:focus-within {
            transform: none;
            background: #fff;
            box-shadow: 0 20px 20px rgba(5, 5, 39, 0.1);
         }
         .category-area .tp-category-icon {
            height: 40px;
            margin-bottom: 25px;
            line-height: 1;
         }
         .category-area .ct-feature-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            line-height: 1;
            vertical-align: top;
            border-radius: 0;
            background: transparent;
         }
         .category-area .tp-category-icon img {
            display: block;
            width: 40px;
            height: 40px;
            object-fit: contain;
            transform: none;
         }
         .category-area .tp-category-content > span {
            display: block;
         }
         .category-area .tp-category-content > span,
         .category-area .tp-category-content > span > span {
            color: rgba(3, 31, 66, 0.8);
            font-size: 15px;
            font-weight: 400;
            line-height: 21px;
         }
         .category-area .tp-category-title,
         .category-area .tp-category-title > span {
            color: #031f42;
            font-size: 20px;
            font-weight: 600;
            line-height: 24px;
         }
         .category-area .tp-category-title {
            margin-bottom: 8px;
         }
         @media (min-width: 1200px) {
            .ct-feature-col:nth-child(4n) {
               border-inline-end: 0;
            }
         }
         @media (min-width: 992px) and (max-width: 1199px) {
            .ct-feature-col:nth-child(3n) {
               border-inline-end: 0;
            }
         }
         @media (min-width: 576px) and (max-width: 991px) {
            .ct-feature-col:nth-child(2n) {
               border-inline-end: 0;
            }
         }
         @media (max-width: 575px) {
            .category-area {
               padding: 45px 0;
            }
            .category-area .tp-section-3-title {
               font-size: 32px;
               line-height: 1.5;
            }
            .ct-feature-grid {
               --bs-gutter-x: 24px;
               row-gap: 0;
            }
            .ct-feature-col {
               border-inline-end: 0;
               border-bottom: 1px solid #e6e7ed;
            }
            .ct-feature-col:last-child {
               border-bottom: 0;
            }
         }
         @media (prefers-reduced-motion: reduce) {
            .category-area .tp-category-item {
               transition: none;
            }
         }

         /* Both faces share a grid cell so the full text determines the space it needs. */
         .category-area .ct-feature-card {
            position: relative;
            overflow: hidden;
            padding: 0;
         }
         .ct-feature-front {
            position: relative;
            min-height: 200px;
            padding: 45px 8px 37px;
            transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
         }
         .ct-feature-back {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
            padding: 14px 16px;
            background: #fff;
            text-align: left;
         }
         [dir="rtl"] .ct-feature-back {
            text-align: right;
         }
         .ct-feature-back-heading {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            flex-shrink: 0;
            min-height: 24px;
         }
         .ct-feature-back-icon {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            object-fit: contain;
            pointer-events: none;
         }
         .ct-feature-back-title {
            color: #5956e9;
            font-size: 16px;
            font-weight: 700;
            line-height: 24px;
         }
         .category-area .ct-feature-details {
            flex: 0 0 auto;
            margin: 0;
            overflow: visible;
            overflow-wrap: anywhere;
            color: #354b68;
            font-size: 14px;
            font-weight: 400;
            line-height: 22px;
         }
         .ct-feature-details > span {
            font: inherit;
            color: inherit;
         }
         .ct-feature-toggle {
            position: absolute;
            inset: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
         }
         .ct-feature-toggle:focus-visible,
         .ct-feature-back:focus-visible {
            outline: 2px solid #5956e9;
            outline-offset: -3px;
         }
         .ct-feature-toggle[hidden] {
            display: none;
         }
         .ct-feature-admin-toggle {
            inset: auto;
            inset-inline-end: 10px;
            bottom: 10px;
            width: 28px;
            height: 28px;
            color: #5956e9;
            border: 1px solid #deddf7;
            border-radius: 50%;
         }
         .ct-feature-ready {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
         }
         .ct-feature-ready .ct-feature-front,
         .ct-feature-ready .ct-feature-back {
            grid-area: 1 / 1;
            min-width: 0;
         }
         .ct-feature-ready .ct-feature-back {
            position: relative;
            z-index: 2;
            opacity: 0;
            transform: translateY(-100%);
            pointer-events: none;
            transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
         }
         .ct-feature-ready.ct-is-revealed .ct-feature-front {
            opacity: 0;
            transform: translateY(100%);
            pointer-events: none;
         }
         .ct-feature-ready.ct-is-revealed .ct-feature-back {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
         }
         .category-area .ct-feature-card.ct-is-revealed {
            background: #fff;
            box-shadow: 0 20px 20px rgba(5, 5, 39, 0.1);
         }
         @media (prefers-reduced-motion: reduce) {
            .ct-feature-front,
            .ct-feature-ready .ct-feature-back {
               transition: none;
            }
         }

          /* Pricing section: title should be dark, only underlined word is blue */
          .tp-membership-area .tp-section-3-title {
             color: var(--tp-heading-2) !important;
          }
          .tp-membership-area .tp-section-3-title > span {
             color: var(--tp-heading-2) !important;
          }
          .tp-membership-area .tp-section-3-title > span:last-of-type {
             color: var(--tp-theme-9) !important;
          }

          /* Pricing features: admin editing */
          .tp-pricing-5-list ul li {
             position: relative;
          }
          .pricing-feat-text {
             display: inline !important;
             width: auto !important;
             height: auto !important;
             line-height: normal !important;
             border-radius: 0 !important;
             background-color: transparent !important;
             text-align: inherit !important;
             margin-right: 0 !important;
             flex: 1 1 auto !important;
             outline: none;
          }
          .pricing-feat-text:focus {
             background: rgba(59, 130, 246, 0.08);
             border-radius: 3px;
             padding: 1px 4px;
          }
          .feat-delete-btn {
             position: absolute;
             left: 0;
             top: 50%;
             transform: translateY(-50%);
          }
          .tp-pricing-5-list ul li:hover .feat-delete-btn {
             opacity: 1 !important;
             color: #ef4444 !important;
          }
          /* Admin controls: show on card hover */
          .tp-pricing-5-item:hover .pricing-admin-controls {
             opacity: 1 !important;
          }
          .pricing-admin-controls button:hover {
             background: #f3f4f6 !important;
             color: #374151 !important;
          }

         /* Stats Section - in head to prevent FOUC */
         .tp-funfact-6-ptb { position: relative; overflow: hidden; }
         .tp-funfact-6-ptb::after {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: url('/images/features/stats_bg.png') center/cover no-repeat;
            opacity: 0.1;
            z-index: 0;
         }
         .tp-funfact-6-ptb > .container { position: relative; z-index: 1; }
         .ct-stats-title { color:#fff; font-size:24px; font-weight:800; margin-bottom:8px; }
         .ct-stats-desc { color:rgba(255,255,255,0.8); font-size:14px; margin-bottom:0; max-width:600px; margin-left:auto; margin-right:auto; line-height:1.6; }
         .ct-stat-card {
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 14px;
            padding: 20px 15px 18px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
         }
         .ct-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
         .ct-stat-icon { margin-bottom: 10px; }
         .ct-stat-icon img { height: 40px; filter: brightness(0) invert(1); transition: transform 0.3s; }
         .ct-stat-card:hover .ct-stat-icon img { transform: scale(1.08); }
         .ct-stat-label { color:rgba(255,255,255,0.7); font-size:12px; margin-bottom:5px; font-weight:500; }
         .ct-stat-number { color:#fff; font-size:36px; font-weight:900; line-height:1; margin-bottom:5px; }
         .ct-stat-sub { color:rgba(255,255,255,0.55); font-size:11px; }
         .ct-stats-desc2 { color:rgba(255,255,255,0.85); font-size:13px; margin-bottom:5px; max-width:650px; margin-left:auto; margin-right:auto; }
         .ct-stats-note { color:rgba(255,255,255,0.45); font-size:11px; margin-bottom:0; max-width:600px; margin-left:auto; margin-right:auto; }

         /* Genius Section */
         .ct-genius-section {
            position: relative;
            background: #5956E9;
            overflow: hidden;
            padding: 60px 0 50px;
         }
         .ct-genius-section::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: url('/images/home/shine.png') center center no-repeat;
            background-size: cover;
            opacity: 0.6;
            z-index: 0;
         }
         .ct-genius-section > * { position: relative; z-index: 1; }
         .ct-genius-border {
            width: 100%;
            height: 20px;
            background: linear-gradient(315deg, #5956E9 33.33%, transparent 33.33%) 0 0,
                        linear-gradient(45deg, #5956E9 33.33%, transparent 33.33%) 0 0;
            background-size: 20px 20px;
            background-repeat: repeat-x;
         }
         .category-area + .ct-genius-border {
            background-color: #f7f7f9;
         }
          .ct-genius-subtitle {
             color: #c4c0ff;
             font-size: 26px;
             text-align: center;
             margin-bottom: 20px;
             font-weight: 600;
          }
         .ct-genius-title {
            color: #fff;
            font-size: 32px;
            font-weight: 800;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
         }
         .ct-genius-img {
            text-align: center;
            margin-bottom: 10px;
         }
         .ct-genius-img img {
            max-width: 400px;
            width: 100%;
            height: auto;
         }
         .ct-genius-url {
            text-align: center;
            color: rgba(255,255,255,0.7);
            font-size: 14px;
            margin-bottom: 25px;
         }
         .ct-genius-desc {
            color: #fff;
            font-size: 14px;
            text-align: center;
            max-width: 900px;
            margin: 0 auto 20px;
            line-height: 1.7;
         }
         .ct-genius-cta {
            text-align: center;
            margin-bottom: 30px;
         }
         .ct-genius-cta a {
            display: inline-block;
            background: #e67e22;
            color: #fff;
            padding: 8px 28px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            border: 2px solid #e67e22;
         }
         .ct-genius-cta a:hover {
            background: transparent;
            color: #e67e22;
         }
         .ct-genius-ms {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
            padding: 15px 0 0;
            border-top: 1px solid rgba(255,255,255,0.1);
         }
         .ct-genius-ms img { height: 22px; }
         .ct-genius-ms p {
            color: rgba(255,255,255,0.8);
            font-size: 13px;
            margin: 0;
         }
         @media (max-width: 768px) {
            .ct-genius-subtitle {
            color: rgba(255,255,255,0.75);
            font-size: 16px;
            text-align: center;
            margin-bottom: 20px;
            font-weight: 400;
         }
         .ct-genius-title { font-size: 22px; }
            .ct-genius-img img { max-width: 280px; }
            .ct-genius-ms { justify-content: center; flex-direction: column; text-align: center; }
         }

/* The eyebrow is descriptive text; keep its approved heading-era spacing. */
.ct-home-page .category-area .tp-section-3-subtitle { margin: 0 0 8px; font-family: var(--tp-ff-heading); font-size: 18px; line-height: 1.2; }
.ct-home-page .ct-stats-value { font-family: var(--tp-ff-heading); }
