/*
Theme Name: agileinnovating
Template: astra
Description: Agile Innovating child theme for Astra.
Author: Agile Innovating
Version: 1.7.4 - clean up
Text Domain: agile innovating

v1.7.3 NOTES:
- Keeps v1.7.0 tokens, layout, MemberPress behavior.
- Unified dashboard grid: .ai-feature-grid + .ai-feature-item.
- Adds stable carousel module (ai-carousel, ai-carousel--tall).
- Adds post grid module (ai-grid).
- Mobile refinements for dashboards, hero, global padding.
*/

/* =======================================================================
   1. TOKENS (FONTS, SPACING, COLORS, RADIUS, SHADOWS)
   ======================================================================= */

:root {
  /* Fonts */
  --ai-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --ai-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --ai-font-accent: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing (rem) */
  --ai-space-1: 0.5rem;
  --ai-space-2: 1rem;
  --ai-space-3: 1.5rem;
  --ai-space-4: 2rem;
  --ai-space-5: 2.5rem;

  /* Grays & text */
  --ai-gray-0: #ffffff;
  --ai-gray-1: #f5f5f5;
  --ai-gray-2: #e0e0e0;
  --ai-gray-3: #dadada;
  --ai-gray-4: #888888;

  --ai-text-dark: #111111;
  --ai-text-body: #222222;
  --ai-text-muted: #333333;

  /* Brand */
  --ai-blue: #0073aa;
  --ai-accent: #d2ecff;

  /* Radius */
  --ai-radius-1: 6px;
  --ai-radius-2: 8px;
  --ai-radius-3: 12px;
  --ai-radius-img: 10px;
  --ai-radius-card: 14px;
  --ai-radius-pill: 30px;

  /* Shadows */
  --ai-shadow-1: 0 2px 8px rgba(0,0,0,0.05);
  --ai-shadow-2: 0 3px 8px rgba(0,0,0,0.06);
  --ai-shadow-3: 0 6px 12px rgba(0,0,0,0.10);
	
  /* member page max width */
  --ai-member-max-width: 1200px; /* or 1320px / 1360px / 1400px */


}

/* =======================================================================
   2. TYPOGRAPHY
   ======================================================================= */

body,
p,
li {
  font-family: var(--ai-font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ai-text-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ai-font-heading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ai-text-dark);
}

/* Size hierarchy */
h1 { font-size: 42px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }

button,
.button,
input[type="submit"],
.mepr-submit,
.ast-button {
  font-family: var(--ai-font-accent);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  h1 { font-size: 32px; line-height: 1.25; }
  h2 { font-size: 26px; line-height: 1.3; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
}

html {
  scroll-behavior: smooth;
}

/* ======================================================
   Agile Innovating — Post Typography (Clamp-Based)
   Scope: Single blog posts only
   ====================================================== */

/* H1 — Post Title */
.single-post .entry-title,
.single-post h1 {
  font-size: clamp(20px, 3.2vw, 24px);
  line-height: 1.3;
  margin-bottom: 14px;
}

/* H2 */
.single-post .entry-content h2 {
  font-size: clamp(18px, 2.8vw, 22px);
  line-height: 1.35;
  margin-top: 32px;
  margin-bottom: 12px;
}

/* H3 */
.single-post .entry-content h3 {
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.4;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* H4 */
.single-post .entry-content h4 {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.45;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* H5 */
.single-post .entry-content h5 {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 6px;
}

/* H6 */
.single-post .entry-content h6 {
  font-size: clamp(14px, 1.8vw, 15px);
  line-height: 1.5;
  margin-top: 18px;
  margin-bottom: 6px;
}

/* ======================================================
   Agile Innovating — Post Content Spacing
   Scope: Single blog posts only
   ====================================================== */

/* Base paragraph */
.single-post .entry-content p {
  margin-bottom: 1.1em;
}

/* Strong / emphasis (no size jump) */
.single-post .entry-content strong,
.single-post .entry-content b {
  font-weight: 600;
}

/* Links inside content */
.single-post .entry-content a {
  text-decoration: none;
}


/* Lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
  margin-top: 0.5em;
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}

.single-post .entry-content li {
  margin-bottom: 0.5em;
}

/* Nested lists */
.single-post .entry-content li ul,
.single-post .entry-content li ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Paragraph immediately after headings */
.single-post .entry-content h2 + p,
.single-post .entry-content h3 + p,
.single-post .entry-content h4 + p {
  margin-top: 0.4em;
}

/* Horizontal rule (if used) */
.single-post .entry-content hr {
  margin: 2.5em 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* =======================================================================
   3. GLOBAL LAYOUT
   ======================================================================= */

body .main-header-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
}

/* J make the top menu smaller height*/
.ast-site-identity {
  padding: 10px 0;
}


.site-above-footer-wrap .ast-builder-grid-row,
.site-footer-primary-section .ast-builder-grid-row,
.site-below-footer-wrap .ast-builder-grid-row {
  padding: 20px 30px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .site-above-footer-wrap .ast-builder-grid-row,
  .site-footer-primary-section .ast-builder-grid-row,
  .site-below-footer-wrap .ast-builder-grid-row {
    padding: 15px;
  }
}

.single-post .site-content,
.page .site-content {
  padding-top: 20px;
}


/* Tablet / Mobile */
@media (max-width: 768px) {
  .site-content {
    padding-top: 72px;
  }
}



/* FIXED HEADER OFFSET — ASTRA - 58 is the main header height */

/*.page-id-XXXX .site-content {
  padding-top: 96px;
}*/

/*@media (max-width: 768px) {
  .page-id-XXXX .site-content {
    padding-top: 72px;
  }
}*/

/* Force footer content left-aligned on mobile */
@media (max-width: 768px) {
  .site-footer,
  .site-footer * {
    text-align: left !important;
  }

  .ast-footer-widget-area {
    align-items: flex-start !important;
  }
}

/* =========================================================
   AI SECTION — FINAL, STABLE SYSTEM (CONSULTING DEFAULT)
   ========================================================= */

/* ---------------------------------------------------------
   1. REMOVE ASTRA GLOBAL 4em PADDING (INNER GROUPS ONLY)
---------------------------------------------------------- */

.entry-content .wp-block-group.ai-section__content,
.entry-content .wp-block-group.ai-section .wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ---------------------------------------------------------
   RESTORE TOP/BOTTOM PADDING FOR CARD GROUPS
---------------------------------------------------------- */

.entry-content .wp-block-group.ai-section .wp-block-group.ai-column-card {
  padding-top: 44px !important;
  padding-bottom: 56px !important;
}

/* ---------------------------------------------------------
   2. SECTION SPACING SYSTEM (PADDING-BASED)
---------------------------------------------------------- */

.ai-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (max-width: 768px) {
  .ai-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ---------------------------------------------------------
   SECTION TYPOGRAPHY — SHARED
---------------------------------------------------------- */

.ai-section h2 {
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ai-section h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.25;
  margin-bottom: 8px;
}

/* Lead paragraph under section titles */

.ai-section h2 + p,
.ai-section h3 + p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  margin-top: 0;
}

/* ---------------------------------------------------------
   SECTION HEADER (TITLE + LEAD ONLY)
---------------------------------------------------------- */

.ai-section__header {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .ai-section__header {
    margin-bottom: 28px;
  }
}

/* =========================================================
   3. HERO SECTION — DEFAULT = CONSULTING / PREMIUM
   ========================================================= */

.ai-section.ai-hero {
  padding-top: 120px;
  padding-bottom: 96px;

  /* DEFAULT CONSULTING LOOK */
  background: linear-gradient(180deg, #2c4f7a, #1f3b64);
  /*color: #ffffff;*/
}

@media (max-width: 768px) {
  .ai-section.ai-hero {
    padding-top: 88px;
    padding-bottom: 72px;
  }
}

/* ---------------------------------------------------------
   HERO CONTENT WIDTH
---------------------------------------------------------- */

.ai-section.ai-hero .ai-hero__content {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.ai-section.ai-hero h1 {
  /*color: #ffffff;*/
}

.ai-section.ai-hero p {
  /*color: rgba(255,255,255,0.9);*/
}


/* ---------------------------------------------------------
   HERO CALLOUT PANEL
---------------------------------------------------------- */

.ai-section.ai-hero .ai-hero__callout {
  max-width: 1100px;
  margin: 56px auto 64px;   /* slightly more vertical separation */
  padding: 56px 48px;      /* ← THIS is the key change */

  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .ai-section.ai-hero .ai-hero__callout {
    margin: 40px auto 44px;
    padding: 36px 28px;
  }
}

.ai-section.ai-hero .ai-hero__callout > .wp-block-group__inner-container {
  padding: 0;
}

.ai-section.ai-hero .ai-hero__callout p {
  margin: 0;
}

/* ---------------------------------------------------------
   HERO ISSUE CARDS (3-UP)
---------------------------------------------------------- */

.ai-section.ai-hero .ai-hero__issues {
  max-width: 1100px;
  margin: 0 auto;
  gap: 24px;
}

.ai-section.ai-hero .ai-hero__issues > .wp-block-column {
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
}

.ai-section.ai-hero .ai-hero__issues h3 h4 {
  /*margin-top: 0;*/
  /*margin-bottom: 24px;*/
  /*color: #ffcc33; by editor */
}

.ai-section.ai-hero .ai-hero__issues p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  /*color: rgba(255,255,255,0.9);*/
}

/* ---------------------------------------------------------
   MOBILE TUNING
---------------------------------------------------------- */

@media (max-width: 768px) {
  .ai-section.ai-hero .ai-hero__callout {
    margin: 36px auto 40px;
    padding: 22px;
  }

  .ai-section.ai-hero .ai-hero__issues {
    gap: 18px;
  }
}

/* =========================================================
   HERO AUTH LINK (LOGIN / SIGN UP)
   ========================================================= */

/* Anchor hero for absolute positioning */
.ai-section.ai-hero {
  position: relative;
}

/* Auth container */
.ai-hero-auth {
  position: absolute;
  top: 48px;
  right: 53px;
  z-index: 5;

  font-size: 14px;
  font-weight: 500;
}

/* Links */
.ai-hero-auth a {
  color: #0f172a;
  text-decoration: none;
  margin-left: 12px;
}

.ai-hero-auth a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ai-hero-auth {
    top: 38px;
    right: 20px;
    font-size: 13px;
  }
}


/* =========================================================
   9. CARD TYPOGRAPHY & RHYTHM — RESET (DISABLED)
   ========================================================= */

/*
.ai-compare__card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.ai-compare__card h3 + p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 26px;
}

.ai-compare__card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 8px;
}

.ai-compare__card p,
.ai-compare__card li {
  font-size: 15px;
  line-height: 1.65;
}
*/

/* =========================================================
   7. TWO-COLUMN / COMPARISON LAYOUT — RESET
   ========================================================= */

.ai-compare--wide {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .ai-compare--wide {
    max-width: 100%;
  }
}

.ai-compare {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .ai-compare {
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
  }
}

/* =========================================================
   COMPARISON CARD — SHELL (STABLE)
   ========================================================= */

.ai-compare__card {
  padding: 36px 32px;
  border-radius: 18px;
  border: 2px solid #e3e6ea;
  background: #ffffff;
}

@media (max-width: 768px) {
  .ai-compare__card {
    padding: 26px 22px;
  }
}


/* =========================================================
   COMPARISON CARD — TITLE + ICON (TRUE LEFT ALIGNMENT)
   ========================================================= */

.ai-compare__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: none;
  text-align: left;
}

/* Kill Gutenberg constrained padding/offsets INSIDE the title block */
.ai-compare__title,
.ai-compare__title > .wp-block-group__inner-container,
.ai-compare__title .wp-block-group,
.ai-compare__title .wp-block-group__inner-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

/* Ensure the inner container behaves like a row (prevents re-indent) */
.ai-compare__title > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon: no offset + never shrink */
.ai-compare__title .wp-block-image {
  margin: 0 !important;
  flex-shrink: 0;
}

.ai-compare__title .wp-block-image img {
  width: 80px;   /* keep your current working size */
  height: auto;
  display: block;
  opacity: 0.85;
}

/* Title text: no extra left margin */
.ai-compare__title h3,
.ai-compare__title p {
  margin-left: 0 !important;
}


/* =========================================================
   AI THREE-COLUMN LAYOUT SYSTEM
   ========================================================= */

.ai-section .ai-columns--3 {
  margin-top: 48px;
  gap: 32px;
}

.ai-columns--3 > .wp-block-column {
  padding: 0;
}

@media (max-width: 900px) {
  .ai-section .ai-columns--3 {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .ai-columns--3 {
    flex-direction: column;
  }
}


/* =========================================================
   THREE-COLUMN FEATURE CARD — FINAL
   ========================================================= */

.ai-column-card figure {
  margin: 0 0 12px 0;
}

.ai-column-card .wp-block-image {
  margin: 0;
  line-height: 0;
}

.ai-column-card {
  /*background: #ffffff;*/
  /*border: 2px solid #e2e7ef;*/
  border-radius: 22px;
  padding: 32px 40px 56px;
  display: flex;
  flex-direction: column;
}

/* Hover */
.ai-column-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ai-column-card:hover {
  transform: translateY(-4px);
  border-color: #c7d3e6;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

/* Icon */
.ai-column-card .ai-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.ai-column-card .ai-card-icon img,
.ai-column-card .ai-card-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

/* Text rhythm */
.ai-column-card h3 {
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.ai-column-card p:first-of-type {
  margin: 0 0 14px 0;
  font-style: italic;
  color: #5f6b7a;
}

.ai-column-card p {
  margin: 0 0 14px 0;
  line-height: 1.7;
}

.ai-column-card p:last-child {
  margin-bottom: 0;
}

/* Lists */
.ai-column-card ul,
.ai-column-card ol {
  margin: 0 0 14px 0;
  padding-left: 1.1em;
}

.ai-column-card li {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.ai-column-card li:last-child {
  margin-bottom: 0;
}

/* Feature list */
.ai-column-card .ai-feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px 0;
}

.ai-column-card .ai-feature-list li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.ai-column-card .ai-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 16px;
  font-weight: 700;
  color: #244a87;
}

/* =========================================================
   OPTIONAL BADGES — THREE-COLUMN CARDS
   ========================================================= */

/* Ensure card can anchor badge */
.ai-column-card {
  position: relative;
}

/* Badge base */
.ai-column-card .ai-column-badge {
  position: absolute;
  top: -16px;
  right: 28px;               /* aligns visually with card padding */
  padding: 12px 16px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;

  /*box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);*/
  z-index: 2;
}

/* Variants */
.ai-column-badge--free {
  background: #fbbf24;   /* warm amber */
  color: #1f2937;
}

  .ai-column-badge--paid {
  background: #fbbf24;   /* warm amber */
  color: #1f2937;
}

.ai-column-badge--launching {
  background: #fbbf24;   /* warm amber */
  color: #1f2937;
}


/* =========================================================
   CTA SECTION — SYSTEM SPACING, FLEXIBLE BACKGROUND
   ========================================================= */

.ai-section--cta {
  /* background intentionally unset — page-controlled */
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}

@media (max-width: 768px) {
  .ai-section--cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ---------------------------------------------------------
   CTA HEADER (WIDTH CONTROL)
---------------------------------------------------------- */

.ai-section--cta .ai-section__header {
  max-width: 880px;              /* matches section headers */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------
   CTA HEADLINE
---------------------------------------------------------- */

.ai-section--cta h2 {
  font-size: clamp(34px, 3.6vw, 42px);
  line-height: 1.2;
  color: #14335c;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------
   CTA LEAD COPY
---------------------------------------------------------- */

.ai-section--cta h2 + p {
  font-size: 18px;
  line-height: 1.6;
  color: #14335c;
}

/* ---------------------------------------------------------
   CTA BUTTONS
---------------------------------------------------------- */

.ai-section--cta .wp-block-buttons {
  margin-top: 36px;
  margin-bottom: 32px;
  justify-content: center;
}

/* Primary CTA button */
.ai-section--cta .wp-block-button__link {
  background-color: #1f3b64;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-section--cta .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* ---------------------------------------------------------
   CTA NOTE (OPTIONAL)
---------------------------------------------------------- */

.ai-section--cta .ai-cta-note {
  max-width: 880px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  color: #14335c;
  opacity: 0.9;
}

/* =======================================================================
   4. SIDEBAR LAYOUT
   ======================================================================= */

body.ast-left-sidebar #secondary {
  border-right: 1px solid var(--ai-gray-2);
  padding-right: 20px;
}

body.ast-right-sidebar #secondary {
  border-left: 1px solid var(--ai-gray-2);
  padding-left: 20px;
}

@media (min-width: 921px) {
  .ast-right-sidebar #secondary,
  .ast-left-sidebar #secondary {
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }
}

/* =======================================================================
   5. MEMBER HEADER & MENU
   ======================================================================= */

#member-header {
  background-color: var(--ai-accent);
  border-bottom: 1px solid #ddd;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.custom-logo {
  height: auto !important;
  width: auto !important;
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.member-logo img {
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Desktop nav */
@media (min-width: 769px) {
  #member-navigation,
  #member-navigation .menu-member-menu-container,
  .member-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100%;
  }

  .member-nav,
  #member-navigation ul.member-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .member-nav li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
  }

  .member-nav a {
    color: var(--ai-text-muted) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    white-space: nowrap;
    padding: 0.8rem 1.1rem;
    border-radius: 6px;
    transition: color 0.2s ease;
  }

  header#member-header .member-nav > li > a:hover {
    background: none !important;
    color: var(--ai-blue) !important;
  }

  header#member-header .member-nav > li.current-menu-item > a {
    background: none !important;
    color: var(--ai-blue) !important;
  }
}

/* Mobile nav */
@media (max-width: 768px) {
  header#member-header .member-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10005;
  }

  header#member-header .member-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  header#member-header {
    position: relative;
    z-index: 10000;
  }

  header#member-header #member-navigation {
    position: fixed !important;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--ai-gray-1);
    border-top: 1px solid #ddd;
    box-shadow: var(--ai-shadow-3);
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 9999;
  }

  header#member-header #member-navigation.open {
    display: flex !important;
  }

  header#member-header .member-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  header#member-header .member-nav li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  header#member-header .member-nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--ai-text-muted);
    text-decoration: none;
    font-weight: 500;
  }

  header#member-header .member-nav a:hover {
    background: rgba(0, 115, 170, 0.12) !important;
    color: var(--ai-blue) !important;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Hamburger state */
header#member-header .member-menu-toggle span {
  background-color: var(--ai-text-dark) !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
}

header#member-header .member-menu-toggle:hover span,
header#member-header .member-menu-toggle.active span {
  background-color: var(--ai-blue) !important;
}

@media (min-width: 769px) {
  header#member-header .member-menu-toggle {
    display: none !important;
  }
}

header#member-header .member-menu-toggle:focus {
  box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
  border-radius: 6px;
  outline: none;
}

/* --------------------------
   HERO COVER MOBILE SAFE-SPACING FIX
   Prevent header from overlapping text on mobile only
--- */
@media (max-width: 768px) {
    #hero .wp-block-cover__inner-container {
        padding-top: 60px !important;  /* Adjust to 60–100px if needed */
    }
}

/* =======================================================================
   6. MEMBER MENU DROPDOWNS
   ======================================================================= */

.member-nav-wrap {
  position: relative;
}

.member-menu ul.member-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-menu ul.member-nav li {
  position: relative;
}

.member-menu ul.member-nav li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--ai-gray-0);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 0.3rem 0;
}

@media (min-width: 769px) {
  .member-menu ul.member-nav li:hover > ul.sub-menu,
  .member-menu ul.member-nav li:focus-within > ul.sub-menu {
    display: block;
  }
}

.member-menu ul.member-nav li ul.sub-menu li {
  display: block;
  width: 100%;
}

.member-menu ul.member-nav li ul.sub-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--ai-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.member-menu ul.member-nav li ul.sub-menu li a:hover {
  background: rgba(0,115,170,0.12);
  color: var(--ai-blue);
}

@media (max-width: 768px) {
  .member-menu ul.member-nav li ul.sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
  }

  .member-menu ul.member-nav li.menu-item-has-children > a::after {
    content: " ▾";
    float: right;
  }

  .member-menu ul.member-nav li.open > ul.sub-menu {
    display: block;
  }

  .member-menu .menu-item-has-children > a {
    cursor: pointer;
  }
}

/* =======================================================================
   7. MEMBER PAGE LAYOUT
   ======================================================================= */

body.member-area {
  background: var(--ai-gray-0);
}

.member-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ai-space-4);
}

.member-content-area {
  background: var(--ai-gray-0);
  padding: var(--ai-space-4);
  box-shadow: var(--ai-shadow-1);
  border-radius: var(--ai-radius-card);
}

.member-container .member-content-area {
  margin-top: var(--ai-space-3);
}

@media (max-width: 921px) {
  .member-container {
    padding: 0 var(--ai-space-2);
  }
}

.ast-plain-container.ast-no-sidebar #primary {
  margin: 0 0 40px !important;
}

/* =======================================================================
   8. MEMBERPRESS ACCOUNT PAGE
   ======================================================================= */

.mepr-account-wrapper {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  min-height: 100%;
}

.mepr-account-sidebar {
  flex: 0 0 250px;
  background: var(--ai-gray-0) !important;
  padding: 1.25rem 0;
  box-sizing: border-box;
}

.mepr-account-sidebar nav,
.mepr-account-sidebar .mepr-nav-wrapper,
.mepr-account-sidebar .mepr-account-nav {
  display: block !important;
  width: 100%;
}

.mepr-account-sidebar nav ul,
.mepr-account-sidebar .mepr-nav-wrapper ul,
.mepr-account-sidebar .mepr-account-nav ul {
  display: flex !important;
  flex-direction: column !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mepr-account-sidebar nav ul li,
.mepr-account-sidebar .mepr-nav-wrapper ul li,
.mepr-account-sidebar .mepr-account-nav ul li {
  width: 100% !important;
  margin-bottom: 0.15rem !important;
}

.mepr-account-sidebar nav ul li:last-child,
.mepr-account-sidebar .mepr-nav-wrapper ul li:last-child,
.mepr-account-sidebar .mepr-account-nav ul li:last-child {
  margin-bottom: 0 !important;
}

.mepr-account-sidebar nav ul li a,
.mepr-account-sidebar .mepr-nav-wrapper ul li a,
.mepr-account-sidebar .mepr-account-nav ul li a {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  color: var(--ai-text-muted) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.mepr-account-sidebar nav ul li a:hover {
  background-color: #f7f7f8 !important;
  color: #000 !important;
}

.mepr-account-sidebar nav ul li.mepr-active-tab a,
.mepr-account-sidebar nav ul li.current-menu-item a {
  background-color: #f5f5f5 !important;
  color: var(--ai-text-dark) !important;
  font-weight: 600 !important;
  border-left: 3px solid #10A37F !important;
  padding-left: calc(1rem - 3px) !important;
}

.mepr-account-main {
  flex: 1;
  background: var(--ai-gray-0);
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--ai-gray-3);
  min-height: 100%;
}

@media (max-width: 768px) {
  .mepr-account-wrapper {
    flex-direction: column;
  }

  .mepr-account-main {
    border-left: none;
    border-top: 1px solid var(--ai-gray-3);
  }
}

.mepr-account-sidebar .mepr-account-nav ul li.mp-nav-item {
  margin-bottom: 4px !important;
  padding: 0 !important;
}

.mepr-account-sidebar .mepr-account-nav ul li.mp-nav-item a {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.mepr-account-sidebar nav ul li a,
.mepr-account-sidebar .mepr-account-nav ul li a,
.mepr-account-sidebar .mepr-nav-wrapper ul li a {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.mepr-account-sidebar nav ul li {
  line-height: 1.1 !important;
}

.mepr-account-sidebar .mepr-account-nav ul li.mepr-active-tab a {
  background-color: #f2f2f3 !important;
  border-left: 3px solid #0073e6 !important;
  font-weight: 600 !important;
  color: var(--ai-text-dark) !important;
  border-radius: 0 6px 6px 0 !important;
  padding-left: 12px !important;
  transition: all 0.2s ease-in-out;
}

.mepr-account-sidebar .mepr-account-nav ul li.mepr-active-tab a:hover {
  background-color: #e9eaeb !important;
}

/* MemberPress Unauthorized Message Box */
.memberpress-message-box {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.memberpress-message-box a {
  color: #0274be;
  font-weight: 600;
  text-decoration: none;
}

.memberpress-message-box a:hover {
  text-decoration: underline;
}

/* =======================================================================
   9. POST PREV / NEXT LINKS
   ======================================================================= */

.ai-post-nav-wrapper {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.2rem !important;
  flex-wrap: nowrap !important;
  padding: 20px 0 30px;
  margin-top: 20px;
  border-top: 1px solid var(--ai-gray-2);
}

.ai-post-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--ai-text-body) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.ai-post-nav:hover {
  color: var(--ai-accent) !important;
}

.ai-post-nav-separator {
  font-size: 14px;
  font-weight: 600;
  color: var(--ai-gray-4);
  user-select: none;
}

@media (max-width: 600px) {
  .ai-post-nav-wrapper {
    gap: 0.9rem !important;
  }
}

.single-post .entry-footer,
.single-post .entry-content > .wp-block-group,
.single-post .entry-content {
  border-top: none !important;
}

.single-post .ast-single-post .entry-content::after {
  content: none !important;
  border: none !important;
}

.ast-single-post .ast-single-post-order {
  border-top: none !important;
}

/* =======================================================================
   10. INLINE NAV PILL LINKS
   ======================================================================= */

.wp-block-group.ai-inline-nav,
.wp-block-group.ai-inline-nav p {
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.wp-block-group.ai-inline-nav {
  max-width: 1100px;
  margin-top: 25px !important;
}

.wp-block-group.ai-inline-nav a {
  display: inline-block;
  padding: 8px 18px;
  margin: 6px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: var(--ai-radius-pill);
  background: var(--ai-gray-0);
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  color: var(--ai-text-muted) !important;
  transition: all 0.25s ease;
}

.wp-block-group.ai-inline-nav a:hover,
.wp-block-group.ai-inline-nav a.active {
  background-color: var(--ai-accent) !important;
  border-color: var(--ai-accent) !important;
  color: #002244 !important;
  box-shadow: var(--ai-shadow-2);
}

/* inline nav below carousel */
.ai-carousel.wp-block-group {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ai-carousel + .ai-inline-nav {
  margin-top: 10px !important;
  padding-top: 0 !important;
}

/* =======================================================================
   11. DASHBOARD HERO + GRID
   ======================================================================= */

.ai-dashboard-hero {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.ai-dashboard-hero img {
  max-width: 240px;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.ai-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #ececec;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-feature-item img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.ai-feature-text h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 600;
}

.ai-feature-text p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}

.ai-feature-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.ai-feature-item:hover {
  background: #f8fbff;                   
    border-color: #d8e9ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}


/* Mobile adjustments for AI cards (unified) */
@media (max-width: 480px) {

  /* Modern system card */
  .ai-feature-item {
    padding: 14px 12px;
  }

  .ai-feature-text h3 {
    font-size: 18px;
  }

}
/* ==========================================================
   DASHBOARD GRID — FORCE EXACTLY 3 COLUMNS ON DESKTOP
   Applies to all .ai-feature-grid layouts
   ========================================================== */

@media (min-width: 769px) {
  .ai-feature-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
  }
}


/* =======================================================================
   12. UTILITY CLASSES
   ======================================================================= */

.ai-text-center { text-align: center !important; }
.ai-text-right  { text-align: right !important; }
.ai-text-muted  { color: var(--ai-text-muted) !important; }

.ai-mt-2 { margin-top: var(--ai-space-2) !important; }
.ai-mt-3 { margin-top: var(--ai-space-3) !important; }
.ai-mt-4 { margin-top: var(--ai-space-4) !important; }

.ai-mb-2 { margin-bottom: var(--ai-space-2) !important; }
.ai-mb-3 { margin-bottom: var(--ai-space-3) !important; }
.ai-mb-4 { margin-bottom: var(--ai-space-4) !important; }

.ai-pt-2 { padding-top: var(--ai-space-2) !important; }
.ai-pt-3 { padding-top: var(--ai-space-3) !important; }

.ai-px-2 { padding-inline: var(--ai-space-2) !important; }
.ai-px-3 { padding-inline: var(--ai-space-3) !important; }

.ai-radius-1    { border-radius: var(--ai-radius-1) !important; }
.ai-radius-2    { border-radius: var(--ai-radius-2) !important; }
.ai-radius-3    { border-radius: var(--ai-radius-3) !important; }
.ai-radius-img  { border-radius: var(--ai-radius-img) !important; }
.ai-radius-card { border-radius: var(--ai-radius-card) !important; }
.ai-radius-pill { border-radius: var(--ai-radius-pill) !important; }

/* =======================================================================
   13. MOBILE: DASHBOARD / HERO / GRID REFINEMENTS
   ======================================================================= */

@media (max-width: 768px) {

  .ai-feature-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    padding-inline: 12px;
    overflow-x: hidden;
    margin-top: 20px;
  }

  .ai-feature-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px 14px !important;
  }

  .ai-feature-item img {
    margin-bottom: 10px;
  }

  .ai-feature-text {
    text-align: center !important;
  }

  .ai-dashboard-hero {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding-inline: 12px;
  }

  .ai-dashboard-hero img {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  .ai-feature-text h3 {
    font-size: 18px !important;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .ai-feature-text p {
    font-size: 15px;
    line-height: 1.5;
  }

  .ai-dashboard-hero + .ai-feature-grid {
    margin-top: 12px !important;
  }

  .ai-feature-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
  }
}

@media (max-width: 480px) {
  .ai-feature-item {
    padding: 14px 12px !important;
  }
  .ai-feature-text h3 {
    font-size: 17px !important;
  }
  .ai-dashboard-hero img {
    max-width: 280px !important;
  }
}

/* =======================================================================
   14. GLOBAL MOBILE PADDING + HOMEPAGE EXCEPTION
   ======================================================================= */

@media (max-width: 768px) {
  .site-content,
  .entry-content,
  .ast-container,
  .wp-block-group,
  .wp-block-columns {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  body.home .site-content,
  body.home .entry-content,
  body.home .ast-container,
  body.home .wp-block-group,
  body.home .wp-block-columns {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =======================================================================
   15. SPECTRA CAROUSEL / GROUP — LEGACY MOBILE FIXES (SAFE)
   ======================================================================= */

@media (max-width: 768px) {

  /* tighten Spectra slide padding */
  .uagb-slick-carousel .slick-slide {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* earlier tall-spacing guardrails (leave for safety) */
  .uagb-post__inner-wrap .uagb-post__text {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .uagb-post__image {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
  }

  .slick-slide,
  .slick-track {
    height: auto !important;
  }

  .ai-carousel.wp-block-group,
  .wp-block-group.ai-carousel {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
  }

  .ai-carousel .wp-block-group__inner-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .ai-carousel [style*="blockGap"] {
    block-gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
  }

  .wp-block-group.ai-carousel,
  .wp-block-group.ai-carousel .wp-block-group__inner-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .wp-block-group.ai-carousel.is-layout-constrained {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    display: block !important;
  }
}

/* =======================================================================
   16. CAROUSEL MODULE (SPECTRA POST CAROUSEL)
   ======================================================================= */

/* remove extra top spacing when carousel is first block */
.ast-single-entry .entry-content > .ai-carousel:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* safety for first element */
.ast-single-entry .entry-content > *:first-child {
  margin-top: 0 !important;
}

/* container */
.ai-carousel {
  max-width: 1100px;
  margin: 0 auto 50px auto;
  text-align: center;
}

/* base image style */
.ai-carousel .uagb-post__image img {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* tall portrait mode (ai-carousel--tall) */
/* mobile: natural height, no forced size */
@media (max-width: 768px) {

  .ai-carousel--tall .uagb-post__image img {
    height: auto !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto;
  }

  .ai-carousel--tall .uagb-post__inner-wrap {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .ai-carousel--tall .slick-track,
  .ai-carousel--tall .slick-slide {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* desktop: controlled max height */
@media (min-width: 769px) {

  .ai-carousel--tall .uagb-post__image img {
    max-height: 650px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .ai-carousel--tall .uagb-post__inner-wrap {
    display: flex;
    justify-content: center;
  }
}

/* CTA alignment */
.ai-carousel .uagb-post__cta {
  display: flex;
  justify-content: center;
}

.ai-carousel .uagb-post__read-more {
  margin: 12px auto 0 auto;
}

/* arrows */
.ai-carousel .slick-prev,
.ai-carousel .slick-next {
  transform: translateY(-50%);
}

/* =======================================================================
   17. POST GRID MODULE (ai-grid: Blog + Case Studies)
   ======================================================================= */

/* remove top gap when grid present */
.content-area.member-content-area.fullwidth:has(.ai-grid) {
  margin-top: 0 !important;
}

/* main grid container */
.ai-grid {
  max-width: 1200px;
  margin: 0 auto 60px auto;
}

/* landscape images */
.ai-grid--wide .uagb-post__image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}

/* card layout */
.ai-grid .uagb-post__inner-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* title hover */
.ai-grid .uagb-post__title a:hover {
  color: #0170B9 !important;
}

/* CTA alignment */
.ai-grid .uagb-post__cta {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

/* card hover */
.ai-grid .uagb-post-grid-byline,
.ai-grid .uagb-post__inner-wrap {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-grid .uagb-post__inner-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ============================================================
   AI CAROUSEL — REMOVE ALL UNWANTED TOP SPACING
   Works for:
   • Standard Astra pages
   • Astra single entry templates
   • Gutenberg Group wrappers
   • MemberPress fullwidth templates
   ============================================================ */


/* 1. Astra adds top space when carousel is first block on a page */
.ast-single-entry .entry-content > .ai-carousel:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* 2. Remove spacing added by Gutenberg Group block wrapper */
.wp-block-group.ai-carousel,
.wp-block-group.ai-carousel .wp-block-group__inner-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* 3. Reset blockGap added inline by Gutenberg (row/column spacing) */
.ai-carousel [style*="blockGap"] {
    row-gap: 0 !important;
    column-gap: 0 !important;
    gap: 0 !important;
}


/* 4. Prevent the Group block from enforcing fixed height */
.wp-block-group.ai-carousel {
    height: auto !important;
    max-height: none !important;
}


/* 5. MemberPress fullwidth template also injects extra margin */
.content-area.member-content-area.fullwidth:has(.ai-carousel) {
    margin-top: 0 !important;
}


/* ===========================================================
   LOCKED TILE (Upgrade Tooltip System)
   Applies to: .ai-feature-item.ai-locked
   =========================================================== */

/* Base locked style */
.ai-feature-item.ai-locked {
  position: relative;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Prevent clicking */
.ai-feature-item.ai-locked a {
  pointer-events: none !important;
}

/* Tooltip bubble */
.ai-feature-item.ai-locked::after {
  content: "Upgrade to Access";
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  
  background: #002244;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

/* Tooltip arrow */
.ai-feature-item.ai-locked::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #002244 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Hover effect */
.ai-feature-item.ai-locked:hover::after,
.ai-feature-item.ai-locked:hover::before {
  opacity: 1;
}

/* Optional hover brightening */
.ai-feature-item.ai-locked:hover {
  background: #f1f1f1;
}