/* =============================
   Northwestern Brand Tokens
   ============================= */
   :root {
    /* Primary Colors */
    --nu-purple: #4E2A84;
    --nu-purple-light: #836EAA;
    --nu-purple-dark: #401F68;
    --nu-gold: #FFD100;
    --nu-gold-light: #FFE066;

    /* Neutral Colors */
    --nu-gray-lightest: #F8F8F8;
    --nu-gray-light: #F0F0F0;
    --nu-gray-medium: #DDDDDD;
    --nu-gray-dark: #666666;
    --nu-gray-darkest: #333333;
    --nu-white: #FFFFFF;

    /* Typography */
    --font-sans: 'Lato', Arial, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.875rem;  /* 30px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 3rem;      /* 48px */

    /* Spacing */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */

    /* UI Elements */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease-in-out;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
  }

  /* =============================
     Reset & Flex Layout
     ============================= */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }

  html, body {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    background: var(--nu-gray-lightest);
    color: var(--nu-gray-dark);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  main, .block-container {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: var(--space-lg);
    background: var(--nu-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  /* Improved text selection */
  ::selection {
    background-color: var(--nu-purple-light);
    color: var(--nu-white);
  }

  /* =============================
     Header
     ============================= */
  header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--nu-purple);
    background: linear-gradient(135deg, var(--nu-purple) 0%, var(--nu-purple-dark) 100%);
    color: var(--nu-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }

  /* Logo container – flush left with larger size */
  header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
  }

  header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
  }

  header .logo img {
    height: 3.5rem;
    width: auto;
    transition: transform var(--transition);
  }

  header .logo img:hover {
    transform: scale(1.05);
  }

  header nav ul {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
  }

  header nav a {
    color: var(--nu-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
  }

  header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nu-gold);
    transition: width var(--transition);
  }

  header nav a:hover {
    color: var(--nu-gold-light);
  }

  header nav a:hover::after {
    width: 100%;
  }

  /* =============================
     Typography & Headings
     ============================= */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--nu-purple);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
    font-weight: 700;
  }

  h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
    position: relative;
  }

  h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
  }

  h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-lg);
    color: var(--nu-purple-dark);
  }

  h4 {
    font-size: var(--font-size-lg);
    color: var(--nu-gray-darkest);
  }

  p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-md);
  }

  strong, b {
    font-weight: 700;
    color: var(--nu-gray-darkest);
  }

  em, i {
    font-style: italic;
  }

  /* =============================
     Tab Toggle (Custom for GitHub Pages)
     ============================= */
  .tabs-container {
    margin: var(--space-xl) 0;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xs);
    justify-content: center;
    background: var(--nu-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    position: relative;
  }

  .tab-button {
    margin: 0;
    padding: var(--space-md) var(--space-sm);
    background: var(--nu-white);
    border: 2px solid var(--nu-purple);
    border-radius: var(--radius);
    color: var(--nu-purple);
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nu-purple);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition);
  }

  .tab-button:hover {
    color: var(--nu-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
  }

  .tab-button:hover::before {
    transform: scaleY(1);
  }

  .tab-button.active {
    background: var(--nu-purple);
    color: var(--nu-white);
    border-color: var(--nu-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .tab-content {
    background: var(--nu-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.5s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .tab-pane {
    display: none;
  }

  .tab-pane.active {
    display: block;
  }

  /* Keep the original Streamlit tab styles for backward compatibility */
  .stTabs [data-baseweb="tab-list"] {
    display: flex !important;
    justify-content: center;
    background: var(--nu-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: var(--space-md) 0;
    overflow-x: auto;
    padding: var(--space-sm);
  }

  .stTabs button[data-baseweb="tab"] {
    flex: 1;
    margin: 0 var(--space-xs);
    padding: var(--space-md) var(--space-md);
    background: var(--nu-white);
    border: 2px solid var(--nu-purple);
    border-radius: var(--radius);
    color: var(--nu-purple);
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 600;
    transition: all var(--transition);
  }

  .stTabs button[data-baseweb="tab"]:hover {
    background: var(--nu-purple);
    color: var(--nu-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
  }

  .stTabs [data-baseweb="tab-highlight"] {
    background: var(--nu-purple) !important;
    color: var(--nu-white) !important;
    border-color: var(--nu-gold) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow) !important;
  }

  /* =============================
     Content Styling
     ============================= */
  .content-section {
    margin-bottom: var(--space-xl);
    animation: fadeIn 0.8s ease-out;
  }

  blockquote {
    border-left: 4px solid var(--nu-purple);
    background-color: var(--nu-gray-lightest);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--nu-gray-darkest);
    box-shadow: var(--shadow-sm);
  }

  a {
    color: var(--nu-purple);
    text-decoration: none;
    border-bottom: 1px solid var(--nu-purple-light);
    transition: all var(--transition);
    font-weight: 500;
    padding: 0 2px;
  }

  a:hover {
    color: var(--nu-purple-dark);
    background-color: var(--nu-gold-light);
    border-bottom: 1px solid var(--nu-gold);
  }

  a:focus {
    outline: 2px solid var(--nu-gold);
    outline-offset: 2px;
  }

  ul, ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
    line-height: var(--line-height-relaxed);
  }

  li {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-md);
  }

  ul li::marker {
    color: var(--nu-purple);
  }

  ol li::marker {
    color: var(--nu-purple);
    font-weight: bold;
  }

  hr {
    border: 0;
    height: 1px;
    background: var(--nu-gray-medium);
    margin: var(--space-xl) 0;
    position: relative;
  }

  hr::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--nu-purple);
    top: -1px;
    left: 0;
    border-radius: 1px;
  }

  /* =============================
     Charts & Metrics
     ============================= */
  .js-plotly-plot,
  [data-testid="stMetric"],
  .plotly-chart {
    background: var(--nu-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 1rem 0;
    padding: 1rem;
    transition: transform var(--transition);
  }

  .js-plotly-plot:hover,
  [data-testid="stMetric"]:hover,
  .plotly-chart:hover {
    transform: translateY(-4px);
  }

  /* Remove card styling from demographic charts */
  #income-groups-chart .js-plotly-plot,
  #child-race-chart .js-plotly-plot,
  #hispanic-chart .js-plotly-plot {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  #income-groups-chart .js-plotly-plot:hover,
  #child-race-chart .js-plotly-plot:hover,
  #hispanic-chart .js-plotly-plot:hover {
    transform: none;
  }

  .metric-card {
    background: var(--nu-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    transition: transform var(--transition);
  }

  .metric-card:hover {
    transform: translateY(-4px);
  }

  .metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--nu-purple);
  }

  .metric-label {
    font-size: 1rem;
    color: var(--nu-gray-dark);
  }

  /* =============================
     Table Styling
     ============================= */
  .table-container {
    margin: var(--space-xl) 0;
    position: relative;
  }

  .table-container h2 {
    margin-bottom: var(--space-md);
    color: var(--nu-purple-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-xs);
  }

  .table-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--nu-gold);
    border-radius: 1.5px;
  }

  .table-responsive {
    overflow-x: auto;
    margin-top: var(--space-md);
    border-radius: var(--radius);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow for better depth */
    background-color: #FFFFFF; /* Pure white background */
    position: relative;
    max-width: 100%;
    padding: 0; /* Remove any padding */
  }

  /* Add a subtle gradient overlay to indicate scrollable content */
  .table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px; /* Wider gradient */
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(42,15,76,0.1)); /* Slight purple tint */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .table-responsive:hover::after {
    opacity: 1;
  }

  /* Add a scrollbar indicator */
  .table-responsive::-webkit-scrollbar {
    height: 8px;
    background-color: #F0F0F0;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background-color: #2A0F4C;
    border-radius: 4px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background-color: #F0F0F0;
    border-radius: 4px;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    background-color: var(--nu-white);
    border-radius: var(--radius);
    overflow: hidden;
  }

  td {
    border: 1px solid #CCCCCC; /* Slightly darker border for better visibility */
    padding: var(--space-md);
    text-align: left;
    border-left: none;
    border-top: none;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: #333333; /* Darker text for better readability */
    word-wrap: break-word; /* Allow long words to break */
    min-width: 100px; /* Ensure cells have a minimum width */
    max-width: 400px; /* Limit maximum width for better readability */
  }

  th {
    border: 1px solid #CCCCCC; /* Light gray border */
    border-left: none;
    border-top: none;
    text-align: left;
  }

  th:first-child, td:first-child {
    border-left: 1px solid #CCCCCC;
  }

  th:first-child {
    border-left: 1px solid #CCCCCC; /* Light gray border */
  }

  tr:first-child th {
    border-top: 1px solid #CCCCCC; /* Light gray border */
  }

  th {
    background-color: #F0F0F0; /* Light gray background */
    color: #000000; /* Black text */
    font-weight: 800; /* Extra bold */
    font-size: var(--font-size-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: var(--space-md) var(--space-md);
    border: 1px solid #CCCCCC; /* Light gray border */
    border-bottom: 2px solid #2A0F4C; /* Dark bottom border for definition */
  }

  tr {
    transition: background-color 0.2s ease;
  }

  tr:nth-child(odd) {
    background-color: #FFFFFF; /* Pure white for odd rows */
  }

  tr:nth-child(even) {
    background-color: #F0F0F0; /* Slightly darker for even rows */
  }

  tr:hover {
    background-color: #E6E0F0; /* Light purple on hover */
  }

  .center-align {
    text-align: center;
    font-weight: bold;
    color: #2A0F4C; /* Darker purple for better contrast */
  }

  .bold-cell {
    font-weight: 700;
    color: #2A0F4C; /* Darker purple for better contrast */
  }

  /* Add a clean border to the table */
  .table-responsive {
    border: 1px solid #CCCCCC; /* Light gray border */
    border-bottom: 2px solid #2A0F4C; /* Dark bottom border for definition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    overflow-x: auto; /* Enable horizontal scrolling */
    max-width: 100%; /* Ensure it doesn't exceed container width */
    display: block; /* Make it a block element */
  }

  /* Ensure tables take full width of their container */
  .table-responsive table {
    width: 100%;
    table-layout: auto; /* Allow table to adjust based on content */
    border-collapse: collapse;
  }

  /* Table container styling */
  .table-container {
    margin: 2rem 0;
    width: 100%;
  }

  .table-container h2 {
    margin-bottom: 1rem;
  }

  /* Improve table caption if present */
  table caption {
    font-weight: 700;
    padding: var(--space-md);
    background-color: #F0F0F0; /* Light gray background */
    color: #000000; /* Black text */
    text-align: center;
    caption-side: top;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2A0F4C; /* Dark bottom border for definition */
  }

  /* =============================
     Collapsible Panels
     ============================= */
  .collapsible-panel {
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
  }

  .collapsible-header:hover {
    background-color: #efefef;
  }

  .collapsible-header .icon {
    transition: transform 0.3s ease;
  }

  .collapsible-header.active .icon {
    transform: rotate(180deg);
  }

  .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #ffffff;
    will-change: max-height;
  }

  /* When header is active, show content */
  .collapsible-header.active + .collapsible-content {
    max-height: 2000px; /* Large enough to contain content */
  }

  .collapsible-inner {
    padding: 1.5rem;
  }

  /* Code blocks inside collapsible panels */
  .collapsible-panel pre[class*="language-"] {
    margin: 0;
    border-radius: 0;
  }

  .collapsible-panel code[class*="language-"] {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .code-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
  }

  .code-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
  }

  .code-info li {
    margin-bottom: 0.25rem;
  }

  /* =============================
     Footer (Pushed to Bottom)
     ============================= */
  footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--nu-purple);
    background: linear-gradient(135deg, var(--nu-purple) 0%, var(--nu-purple-dark) 100%);
    color: var(--nu-white);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  }

  footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: space-between;
  }

  footer .footer-inner .col {
    flex: 1 1 250px;
  }

  footer h3 {
    color: var(--nu-white);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
  }

  footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--nu-gold);
    border-radius: 1.5px;
  }

  footer p {
    margin-bottom: var(--space-sm);
    opacity: 0.9;
    font-size: var(--font-size-base);
  }

  footer a {
    color: var(--nu-gold);
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
  }

  footer a:hover {
    color: var(--nu-white);
    background-color: rgba(255, 209, 0, 0.2);
    border-bottom: 1px solid var(--nu-gold);
  }

  /* =============================
     Responsive
     ============================= */
  @media (max-width: 1200px) {
    .tabs {
      grid-template-columns: repeat(5, 1fr);
    }
    
    .tab-button {
      font-size: var(--font-size-xs);
      padding: var(--space-sm) var(--space-xs);
      white-space: normal;
      line-height: 1.1;
      min-height: 3.5rem;
    }
  }

  @media (max-width: 1024px) {
    .tabs {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
    }
    
    .tab-button {
      font-size: var(--font-size-xs);
      padding: var(--space-sm) var(--space-xs);
      white-space: normal;
      line-height: 1.1;
      min-height: 3rem;
    }
  }

  @media (max-width: 768px) {
    html {
      font-size: 14px;
    }

    header .nav-container {
      flex-direction: column;
      gap: var(--space-xs);
      padding: var(--space-sm);
    }

    header .logo img {
      height: 2.5rem;
    }

    header nav ul {
      gap: var(--space-md);
    }

    .tabs {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: var(--space-xs);
      padding: var(--space-xs);
    }

    .tab-button {
      margin: 0;
      padding: var(--space-sm) var(--space-xs);
      font-size: var(--font-size-xs);
      white-space: normal;
      line-height: 1.1;
      min-height: 3rem;
    }

    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }

    main, .block-container {
      margin: var(--space-md) auto;
      padding: var(--space-md);
    }

    .table-responsive {
      font-size: var(--font-size-sm);
    }

    th, td {
      padding: var(--space-sm);
    }

    footer {
      padding: var(--space-lg) var(--space-sm);
    }

    footer .footer-inner {
      flex-direction: column;
      text-align: center;
      gap: var(--space-lg);
    }

    footer h3::after {
      left: 50%;
      transform: translateX(-50%);
    }
  }

  @media (max-width: 480px) {
    html {
      font-size: 12px;
    }

    .tabs {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(5, 1fr);
      gap: var(--space-xs);
      padding: var(--space-xs);
    }

    /* Handle the odd number (9 tabs) by spanning the last tab across two columns */
    .tab-button:last-child {
      grid-column: span 2;
      max-width: 50%;
      justify-self: center;
    }

    .tab-button {
      margin: 0;
      padding: var(--space-md) var(--space-sm);
      font-size: var(--font-size-sm);
      white-space: normal;
      text-align: center;
      min-height: 2.5rem;
      line-height: 1.2;
    }

    main, .block-container {
      padding: var(--space-sm);
    }
  }

/* =============================
   Insights Card Styles
   ============================= */
.insights-card {
  background: var(--nu-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--nu-gray-medium);
  margin: var(--space-lg) 0;
  overflow: hidden;
}

.insights-content {
  padding: var(--space-xl);
}

.insight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}

.insight-item:last-child {
  margin-bottom: 0;
}

.insight-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--nu-purple) 0%, var(--nu-purple-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nu-white);
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow);
}

.insight-text {
  flex: 1;
  padding-top: var(--space-sm);
}

.insight-text h4 {
  margin: 0 0 var(--space-sm) 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--nu-purple-dark);
  line-height: 1.3;
}

.insight-text p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--nu-gray-darkest);
}

/* Responsive design for insights card */
@media (max-width: 768px) {
  .insight-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .insight-icon {
    align-self: center;
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  .insights-content {
    padding: var(--space-lg);
  }

  .insight-text h4 {
    font-size: var(--font-size-md);
  }

  .insight-text p {
    font-size: var(--font-size-sm);
  }
}

/* Data Governance Page Styling */
.access-level-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--nu-purple);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.access-level-card h4 {
    margin-top: 0;
    color: var(--nu-purple);
    font-size: 1.25rem;
}

.feature-list {
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.faq-section {
    margin: 1.5rem 0;
}

.faq-item {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.faq-item dt {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-item dd {
    margin-left: 0;
    padding-left: 1rem;
}

.section-subheader {
    color: var(--nu-purple);
    margin: 1.5rem 0 0.75rem;
}

.action-button-container {
    margin: 2rem 0;
    text-align: center;
}

.nu-button {
    background-color: var(--nu-purple);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.nu-button:hover {
    background-color: #3d1d68;
    text-decoration: none;
    color: white;
}