/*
Theme Name: improveFX Custom Theme
Theme URI: https://improvefx.com
Author: Abhishek Jha
Author URI: https://improvefx.com
GitHub Theme URI: https://improvefx.com/contact/
Description: Custom Developed Theme for improveFX Technologies Pvt. Ltd.
Version: 0.0.1
Requires at least: 5.0
Tested up to: 6.1
Requires PHP: 5.2
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: improvefx
*/



@media (min-width: 768px) {
  .body-text {
    font-size: 1.125rem; /* 18px */
  }
}

p{
	font-size: 1.0625rem;   /* ~17px */
  line-height: 1.8;
  color: #e5e7eb;
}


/* Main services card */
.glass-card {
  background: #202f4f;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

/* Optional subtle edges (keep if you like the lines) */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35),
    transparent,
    rgba(255, 255, 255, 0.15)
  );
}

/* Sub service cards 
.service-subcard {
  background: #282F63;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
*/

/* For Hero Section */
.hero-paragraph {
  max-width: 64rem;        /* ~1024px */
  margin: 0 auto 3rem;     /* center + bottom space */
}

.hero-paragraph p {
  font-size: 1.125rem;     /* 18px */
  line-height: 1.75;       /* relaxed */
  color: #d1d5db;          /* light gray */
}

/* Larger screens */
@media (min-width: 768px) {
  .hero-paragraph p {
    font-size: 1.25rem;    /* 20px */
  }
p{
    font-size: 1.125rem; /* 18px */
  }
}

.input-white {
  @apply w-full border border-gray-300 rounded-lg px-4 py-3 text-gray-900
  placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500;
}

/* SaaS Input Style */
.input-saas {
  @apply w-full
  bg-slate-50
  border border-slate-200
  text-gray-900
  placeholder-slate-400
  px-4 py-3
  rounded-xl
  text-sm
  transition
  focus:outline-none
  focus:ring-2 focus:ring-blue-600
  focus:border-blue-600;
}

/* Fix select arrow alignment */
select.input-saas {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%239CA3AF' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}


/* Accordion Transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.is-open {
  max-height: 800px;
  overflow: visible;
}

.accordion-content[hidden] {
  display: none;
}

.accordion-content:not([hidden]) {
  display: block;
}

/* Icon Rotation */
.accordion-icon svg {
  transition: transform 0.3s ease;
}

.accordion-item[data-open] .accordion-icon svg {
  transform: rotate(180deg);
}

/* Active State */
.accordion-item[data-open] {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Focus Styles for Accessibility */
.accordion-trigger:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.accordion-trigger:focus:not(:focus-visible) {
  outline: none;
}

/* Smooth Scroll for Anchor Links */
html {
  scroll-behavior: smooth;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .accordion-content,
  .accordion-icon svg,
  .accordion-item,
  .accordion-trigger {
    transition: none !important;
  }
}
/* Blog Page */
.blog-article-content {
  max-width: 100%;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #e5e7eb;
  font-size: 1rem;
  overflow-x: hidden; /* safety for any rogue wide elements */
}

/* Headings */
.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-article-content h1 { font-size: 2rem; }
.blog-article-content h2 { font-size: 1.75rem; }
.blog-article-content h3 { font-size: 1.4rem; }
.blog-article-content h4 { font-size: 1.2rem; }

/* Paragraphs & lists */
.blog-article-content p {
  margin-bottom: 1rem;
}

/* ============================================
   FIX LIST STYLES - BULLETS & NUMBERS
   ============================================ */

/* Blog and Case Study list styling */
.blog-article-content ul,
.blog-article-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding-left: 1.5rem;
  color: #e5e7eb;
}

/* Unordered lists - show bullet points */
.blog-article-content ul {
  list-style-type: disc !important;
  list-style-position: outside;
}

.blog-article-content ul ul {
  list-style-type: circle !important;
}

.blog-article-content ul ul ul {
  list-style-type: square !important;
}

/* Ordered lists - show numbers */
.blog-article-content ol {
  list-style-type: decimal !important;
  list-style-position: outside;
}

.blog-article-content ol ol {
  list-style-type: lower-alpha !important;
}

.blog-article-content ol ol ol {
  list-style-type: lower-roman !important;
}

/* List items */
.blog-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  padding-left: 0.25rem;
}

/* Ensure list items display properly */
.blog-article-content li::marker {
  color: white; /* Blue color for bullets/numbers - optional */
}

/* For nested lists */
.blog-article-content ul ul,
.blog-article-content ol ul,
.blog-article-content ul ol,
.blog-article-content ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Global list reset - ensure lists show bullets globally */
ul:not([class]),
ol:not([class]) {
  list-style: revert;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

/* Fix for Tailwind's list reset if it's causing issues */
.prose ul,
.prose ol {
  list-style: revert !important;
  padding-left: 1.5rem !important;
}

.prose ul {
  list-style-type: disc !important;
}

.prose ol {
  list-style-type: decimal !important;
}

/* Ensure lists in the main content area show properly */
.entry-content ul,
.entry-content ol,
.content-area ul,
.content-area ol {
  list-style: revert !important;
  padding-left: 1.5rem !important;
}

.entry-content ul {
  list-style-type: disc !important;
}

.entry-content ol {
  list-style-type: decimal !important;
}

/* ============================================
   END LIST STYLES FIX
   ============================================ */

/* Links */
.blog-article-content a {
  color: #60a5fa;
  text-decoration: none;
}
.blog-article-content a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Blockquote */
.blog-article-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #d1d5db;
}

/* Images – responsive, constrained to container */
.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
  margin: 1.5rem auto;
}

/* Figures / captions */
.blog-article-content figure,
.blog-article-content .wp-caption {
  max-width: 100%;
  margin: 1.5rem auto;
}

/* Caption text only */
.blog-article-content figure figcaption,
.blog-article-content .wp-caption-text {
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #9ca3af;
  margin-top: 0.35rem;
}

/* Code & pre */
.blog-article-content pre {
  background: #020617;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.blog-article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #020617;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

/* Tables */
.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.blog-article-content th,
.blog-article-content td {
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.5rem 0.75rem;
}
.blog-article-content th {
  background: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}

/* Content Tables — mobile/tablet horizontal scroll only (desktop/laptop untouched) */
@media (max-width: 1024px) {
  .blog-article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
  }

  .blog-article-content th,
  .blog-article-content td {
    white-space: nowrap;
  }
}

/* Spacing for last elements */
.blog-article-content > *:last-child {
  margin-bottom: 0;
}


/* CSS for Header */
.site-header {
  background: #1a2332;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu > li > a {
  color: #b4c1d6;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.nav-menu > li > a:hover {
  color: #fff;
}

/* Services trigger button */
.services-trigger {
  background: none;
  border: none;
  color: #4a90e2;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

/* Mega menu core - UPDATED FOR 80% WIDTH WITH 1000PX MAX */
.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  width: 90vw; /* 80% of viewport width */
  max-width: 1300px;
  min-width: 300px;
}

.mega-menu-inner {
  padding-top: 0.75rem;
  max-height: 100%;
  overflow: hidden;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-container {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 480px;
  align-items: stretch;
  overflow: hidden;
}

/* Sidebar tabs */
.mega-menu-sidebar {
  background: #2a3645;
  padding: 1.75rem;
  border-radius: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.sidebar-header svg {
  color: #4a90e2;
  width: 32px;
  height: 32px;
}

.sidebar-header h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #4a90e2;
  border-radius: 999px;
}

.sidebar-menu li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: #b4c1d6;
  background: none;
  border: none;
  text-align: left;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
}

.sidebar-menu li button svg:first-child {
  flex-shrink: 0;
}

.sidebar-menu li button .arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s;
}

.sidebar-menu li button:hover {
  background: #354252;
  color: #fff;
}

.sidebar-menu li button:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-menu li.active button {
  background: #4a90e2;
  color: #fff;
}

.sidebar-menu li.active button .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Content area */
.mega-menu-content {
  background: #2d3847;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.service-panel {
  display: none;
}

.service-panel.active {
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Service card with inline icon */
.service-card {
  background: #354252;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card:hover {
  background: #3d4d5f;
  border-color: #4a90e2;
  transform: translateY(-3px);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #4a90e2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-chip-icon svg {
  color: #fff;
}

.service-card h4 {
  color: #fff;
  font-size: 0.98rem;
  margin: 0;
  font-weight: 600;
}

.service-card p {
  color: #b4c1d6;
  margin: 0;
  font-size: 0.9rem;
}

/* Footer section */
.mega-menu-footer {
  background: #354252;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tech-label {
  color: #7a8a9e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  background: #4a90e2;
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.cta-section p {
  color: #b4c1d6;
  margin: 0 0 0.3rem 0;
  font-size: 0.9rem;
}

.cta-link {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.cta-link:hover {
  color: #5ea3ff;
}

.btn-get-started {
  background: #4a90e2;
  color: #fff;
  padding: 0.6rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-get-started:hover {
  background: #5ea3ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* hamburger animation */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.desktop-only { 
  display: flex; 
}
.mobile-only  { 
  display: none; 
}

/* Responsive / layout tweaks - UPDATED FOR 80% WIDTH WITH 1000PX MAX */
@media (max-width: 1250px) {
  .mega-menu {
    width: 85vw;
  }
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .service-card {
    padding: 1rem 1rem;
  }

  .mega-menu-content {
    padding: 1.5rem 1.5rem;
  }
  
  .mega-menu {
    width: 90vw;
  }
}

@media (max-width: 1024px) {
  .mega-menu-container {
    grid-template-columns: 260px 1fr;
  }

  .mega-menu-content {
    max-height: calc(100vh - 110px);
  }

  .mega-menu-sidebar {
    max-height: calc(100vh - 110px);
  }
  
  .mega-menu {
    width: 92vw;
  }
}

/* ============================================
   MOBILE MENU STYLES - UPDATED
   ============================================ */
@media (max-width: 768px) {
  .desktop-only { 
    display: none; 
  }
  .mobile-only  { 
    display: block; 
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1002;
  }

  /* Mobile Navigation Container */
  .mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0b1220;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .mobile-navigation.open {
    transform: translateX(0);
  }

  .mobile-nav-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Mobile Nav Levels */
  .mobile-nav-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b1220;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 80px;
  }

  .mobile-nav-level.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Header - UPDATED with justify-content: space-between */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #1a2332;
    background: #0b1220;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .mobile-back-btn {
    background: none;
    border: none;
    color: #4a90e2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    order: 2; /* Push to right */
  }

  .mobile-nav-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    order: 1; /* Keep on left */
    flex: 0 1 auto;
  }

  /* Mobile Menu List */
  .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    flex: 1;
  }

  .mobile-menu-list li a,
  .mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: #e5ecff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #1a2332;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu-list li a:hover,
  .mobile-menu-item:hover {
    background: #1a2332;
    color: #fff;
  }

  .mobile-menu-item {
    color: #4a90e2;
    font-weight: 600;
  }

  /* Mobile Services List */
  .mobile-services-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    flex: 1;
  }

  .mobile-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #b4c1d6;
    background: none;
    border: none;
    border-bottom: 1px solid #1a2332;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .mobile-service-item:hover {
    background: #1a2332;
    color: #fff;
  }

  .mobile-service-item svg:first-child {
    flex-shrink: 0;
    color: #4a90e2;
  }

  .mobile-service-item svg:last-child {
    margin-left: auto;
    color: #4a90e2;
  }

  /* Mobile Service Details */
  .mobile-service-details {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
  }

  .mobile-service-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-service-link {
    display: block;
    padding: 0.75rem 1rem;
    background: #1a2332;
    border-radius: 8px;
    color: #e5ecff;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid #4a90e2;
  }

  .mobile-service-link:hover {
    background: #2a3645;
    color: #fff;
  }

  /* Hide desktop mega menu on mobile */
  .mega-menu {
    display: none;
  }

  /* Tablet adjustments */
  @media (min-width: 481px) and (max-width: 768px) {
    .mobile-menu-list li a,
    .mobile-menu-item,
    .mobile-service-item {
      padding: 1.25rem 1.5rem;
      font-size: 1.05rem;
    }

    .mobile-nav-header {
      padding: 1.25rem 1.5rem;
    }

    .mobile-service-details {
      padding: 1.25rem 1.5rem;
    }

    .mobile-service-link {
      padding: 1rem 1.25rem;
      font-size: 1rem;
    }
  }

  /* Hide desktop navigation completely on mobile */
  .main-navigation {
    display: none !important;
  }
}

/* Small screen adjustments */
@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .mega-menu {
    width: 95vw;
  }
}

/* Body lock when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}



.text-gray{
	color:#d1d5db;
}


/* ============================================
   TYPOGRAPHY SYSTEM - HEADINGS & PARAGRAPHS
   ============================================ */

/* ---------- HEADINGS ---------- */
/* H1 - Page Title */
h1,
.text-h1 {
  font-size: 2.25rem; /* 36px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 640px) {
  h1,
  .text-h1 {
    font-size: 2.75rem; /* 44px */
  }
}

@media (min-width: 1024px) {
  h1,
  .text-h1 {
    font-size: 3rem; /* 48px */
  }
}

/* H2 - Section Header */
h2,
.text-h2 {
  font-size: 2rem; /* 32px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 640px) {
  h2,
  .text-h2 {
    font-size: 2.375rem; /* 38px */
  }
}

@media (min-width: 1024px) {
  h2,
  .text-h2 {
    font-size: 2.8125rem; /* 45px */
  }
}

/* H3 - Subsection Title */
h3,
.text-h3 {
  font-size: 1.5rem; /* 24px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 640px) {
  h3,
  .text-h3 {
    font-size: 1.6875rem; /* 27px */
  }
}

@media (min-width: 1024px) {
  h3,
  .text-h3 {
    font-size: 1.875rem; /* 30px */
  }
}

/* H4 - Minor Heading */
h4,
.text-h4 {
  font-size: 1.125rem; /* 18px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 640px) {
  h4,
  .text-h4 {
    font-size: 1.1875rem; /* 19px */
  }
}

@media (min-width: 1024px) {
  h4,
  .text-h4 {
    font-size: 1.25rem; /* 20px */
  }
}

/* H5 - Small Heading */
h5,
.text-h5 {
  font-size: 1rem; /* 16px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 640px) {
  h5,
  .text-h5 {
    font-size: 1.125rem; /* 18px */
  }
}

@media (min-width: 1024px) {
  h5,
  .text-h5 {
    font-size: 1.25rem; /* 20px */
  }
}

/* H6 - Smallest Heading */
h6,
.text-h6 {
  font-size: 0.875rem; /* 14px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 640px) {
  h6,
  .text-h6 {
    font-size: 1rem; /* 16px */
  }
}

@media (min-width: 1024px) {
  h6,
  .text-h6 {
    font-size: 1.125rem; /* 18px */
  }
}

/* ---------- PARAGRAPHS ---------- */
/* Body Text - Standard Paragraph - MAX SIZE 18px */
p,
.text-body {
  font-size: 1rem; /* 16px - text-base */
  line-height: 1.625; /* leading-relaxed - UNCHANGED for paragraphs */
  color: #D8DDE6; /* text-gray - custom class */
}

@media (min-width: 768px) {
  p,
  .text-body {
    font-size: 1.125rem; /* 18px - md:text-lg */
  }
}

@media (min-width: 1024px) {
  p,
  .text-body {
    font-size: 1.125rem; /* 18px - MAX SIZE */
  }
}

/* Small Text - Badges, Meta, Footnotes */
.text-small {
  font-size: 0.75rem; /* 12px - text-xs */
  font-weight: 500;
  color: #60A5FA; /* text-blue-400 */
}

@media (min-width: 640px) {
  .text-small {
    font-size: 0.875rem; /* 14px - sm:text-sm */
  }
}

/* Lead/Intro Text - MAX SIZE 20px */
.text-lead {
  font-size: 1.125rem; /* 18px - text-lg */
  line-height: 1.625;
  color: #D8DDE6;
}

@media (min-width: 768px) {
  .text-lead {
    font-size: 1.25rem; /* 20px - md:text-xl */
  }
}

@media (min-width: 1024px) {
  .text-lead {
    font-size: 1.25rem; /* 20px - MAX SIZE */
  }
}

/* ---------- CUSTOM TEXT COLOR CLASS ---------- */
.text-gray {
  color: #D8DDE6; 
}

/* ---------- UTILITY HELPERS ---------- */
/* Max width for better readability */
.text-max-width {
  max-width: 48rem; /* 768px - good for paragraphs */
}

.text-center-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- RESPONSIVE TEXT HELPERS ---------- */

/* ---------- FALLBACK FOR OLDER BROWSERS ---------- */
@supports not (font-size: clamp(1rem, 1vw, 1.25rem)) {
  .text-body {
    font-size: 1.125rem;
  }
}

/* ---------- ACCESSIBILITY ---------- */
/* Ensure text remains readable at 200% zoom */
@media screen and (max-width: 320px) {
  h1, .text-h1 { font-size: 1.75rem; }  /* Slightly reduced for very small screens */
  h2, .text-h2 { font-size: 1.5rem; }
  h3, .text-h3 { font-size: 1.25rem; }
  h4, .text-h4 { font-size: 1.125rem; }
  p, .text-body { font-size: 1rem; }
}

/* Card Heading - For span elements inside cards */
.card-heading {
  font-size: 1.125rem; /* 18px - mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

/* Card Paragraph - For paragraph elements inside cards */
.card-paragraph {
  font-size: 0.875rem; /* 14px - mobile */
  line-height: 1.5;
  color: #D8DDE6;
}

@media (min-width: 640px) {
  .card-heading {
    font-size: 1.25rem; /* 20px */
  }
  
  .card-paragraph {
    font-size: 0.9375rem; /* 15px */
  }
}

@media (min-width: 1024px) {
  .card-heading {
    font-size: 1.375rem; /* 22px */
  }
  
  .card-paragraph {
    font-size: 1rem; /* 16px */
  }
}

/* ============================================
   BLOG CONTENT TABLES - MOBILE SCROLL WRAPPER
   Desktop is untouched; wrapper only activates
   horizontal scroll below 768px so wide tables
   don't squeeze columns on mobile.
   ============================================ */
.table-scroll-wrapper {
  width: 100%;
}

@media (max-width: 768px) {
  .table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll-wrapper table {
    width: max-content;
    min-width: 100%;
  }
}



/* Mobile Close Button */
.mobile-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1003;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
}

/* Ensure close button is visible when menu is open */
.mobile-navigation.open .mobile-close-btn {
  display: flex;
}

/* For small screens */
@media (max-width: 480px) {
  .mobile-close-btn {
    top: 1rem;
    right: 1rem;
  }
}


/* Mobile Close Button - FIXED for clickability */
.mobile-close-btn {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(11, 18, 32, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100000 !important; /* Very high z-index */
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto !important; /* Ensure it can be clicked */
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.mobile-close-btn:active {
  transform: scale(0.9);
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
  pointer-events: none; /* Don't block clicks on the button */
}

/* Show close button when mobile nav is open */
.mobile-navigation.open .mobile-close-btn {
  display: flex !important;
}

/* For small screens */
@media (max-width: 480px) {
  .mobile-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
  }
  
  .mobile-close-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Ensure no other element blocks the close button */
.mobile-navigation,
.mobile-nav-container,
.mobile-nav-level {
  pointer-events: auto;
}

/* Make sure the close button is above everything */
.mobile-nav-level {
  z-index: 1;
}

.mobile-close-btn {
  z-index: 100000 !important;
}