/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Plugin-specific styles */
.b3-wordpress-plugin-content {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.b3-wordpress-plugin-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.b3-wordpress-plugin-content p {
    line-height: 1.6;
    margin-bottom: 1em;
    color: #666;
}

/* ================================
   Custom CSS - Add your styles below
   ================================ */

/* This is components.css from content engine */ 
/* ===========================================
   GLOBAL VARIABLES & COMMON STYLES
   =========================================== */

   :root {
    --component-border-radius: 8px;
    --component-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --component-spacing: 1.5rem;
    --component-transition: all 0.3s ease;
    --primary-text: #333333;
    --secondary-text: #555555;
    --accent-color: #3498db;
    --light-bg: #f7f9fc;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --white: #ffffff;
  }
  
  /* Common Component Container */
  [data-component-id] {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: var(--component-border-radius);
    background-color: var(--white);
    box-shadow: var(--component-box-shadow);
    transition: var(--component-transition);
  }
  
  [data-component-id]:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* Component Titles */
  .checklist-title,
  .table-title,
  .faq-title,
  .list-subheading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
  }
  
  /* ===========================================
     ### LIST
     =========================================== */
  
  .content-engine-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
  }
  
  .content-engine-list li {
    margin-bottom: 1rem;
  }
  
  .list-item-container {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: var(--component-border-radius);
    transition: var(--component-transition);
  }
  
  .list-item-image {
    flex-shrink: 0 !important;
    width: 84px !important;
    height: 84px !important;
    margin-right: 1rem !important;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--component-transition);
  }
  
  .list-item-container:hover .list-item-image img {
    transform: scale(1.05);
  }
  
  .list-text {
    flex: 1;
    line-height: 1.6;
  }
  
  .list-text strong {
    color: var(--accent-color);
    font-weight: 600;
  }
  
  /* ===========================================
     ### TWEET
     =========================================== */
  
  .embed-tweet {
    margin: var(--component-spacing) 0;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    text-align: center;
  }
  
  .embed-tweet .twitter-tweet {
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  /* ===========================================
     ### YOUTUBE_VIDEO
     =========================================== */
  
  .youtube-video {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: var(--component-spacing) auto;
    padding: 0;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    overflow: hidden;
  }
  
  .youtube-video iframe {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    display: block;
  }
  
  @media (min-width: 768px) {
    .youtube-video iframe {
      height: 350px;
    }
  }
  
  @media (min-width: 1200px) {
    .youtube-video iframe {
      height: 400px;
    }
  }
  
  /* ===========================================
     ### TIKTOK_VIDEO
     =========================================== */
  
  .tiktok-video {
    position: relative;
    width: 100%;
    margin: var(--component-spacing) 0;
    padding: 1rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .tiktok-video::before {
    content: "🎵 TikTok Video";
    font-size: 1.2rem;
  }
  
  /* ===========================================
     ### SPOTIFY
     =========================================== */
  
  .spotify-embed {
    position: relative;
    width: 100%;
    margin: var(--component-spacing) 0;
    padding: 1rem;
    min-height: 152px;
    background: linear-gradient(135deg, #1db954, #191414);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .spotify-embed::before {
    content: "🎵 Spotify Player";
    font-size: 1.2rem;
  }
  
  /* ===========================================
     ### FAQ
     =========================================== */
  
  .faq-widget {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: var(--component-spacing) 0;
    counter-reset: faq-counter;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .faq-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
  }
  
  .faq-widget h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .faq-item {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
  }
  
  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
  }
  
  .faq-item.active {
    border-color: #1d4ed8;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  }
  
  .faq-content {
    flex: 1;
    padding: 1.5rem;
    padding-left: 4rem;
  }
  
  .faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    position: relative;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding-right: 3rem;
  }
  
  .faq-question:hover {
    color: #1d4ed8;
  }
  
  .faq-question::before {
    counter-increment: faq-counter;
    content: counter(faq-counter);
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  }
  
  .faq-question .icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    color: #3b82f6;
    font-weight: bold;
  }
  
  .faq-item.active .faq-question .icon {
    transform: translateY(-50%) rotate(180deg);
    color: #1d4ed8;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-top 0.3s ease;
    margin-top: 0;
    line-height: 1.7;
    color: #475569;
    font-size: 0.95rem;
  }
  
  .faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 1rem;
  }
  
  .faq-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .faq-emoji::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .faq-item:hover .faq-emoji {
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    transform: scale(1.05);
  }
  
  .faq-item:hover .faq-emoji::before {
    opacity: 0.1;
  }
  
  .faq-item.active .faq-emoji {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    transform: scale(1.1);
  }
  
  /* Enhanced animations */
  @keyframes faqPulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  .faq-item.active .faq-question::before {
    animation: faqPulse 2s infinite;
  }
  
  /* ===========================================
     ### CHECKLIST
     =========================================== */
  
  .checklist-widget {
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    margin: var(--component-spacing) 0;
  }
  
  .checklist-widget h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  .checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .checklist-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-bg);
    border-radius: 6px;
    transition: var(--component-transition);
    cursor: pointer;
  }
  
  .checklist-item:hover {
    background-color: rgba(52, 152, 219, 0.05);
  }
  
  .checklist-item input[type="checkbox"] {
    margin-right: 0.8rem;
    cursor: pointer;
    transform: scale(1.1);
  }
  
  .checklist-item.completed {
    background-color: rgba(34, 197, 94, 0.1);
    text-decoration: line-through;
    opacity: 0.8;
  }
  
  .checklist-item.completed input[type="checkbox"] {
    background-color: var(--accent-color);
  }
  
  .checklist-item-text {
    flex: 1;
    font-size: 1rem;
  }
  
  .checklist-item-emoji {
    margin-left: 1rem;
    font-size: 1.2rem;
  }
  
  .completed-message {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    background-color: var(--success-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    opacity: 0;
    height: 0;
    transition: var(--component-transition);
  }
  
  .completed-message.show {
    opacity: 1;
    height: auto;
  }
  
  /* ===========================================
     ### STEP_BY_STEP_GUIDE
     =========================================== */
  
  .step-by-step-guide-widget {
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    margin: var(--component-spacing) 0;
    overflow: hidden;
    padding: 1.5rem;
  }
  
  .step-by-step-guide-widget h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  .steps-wrapper {
    position: relative;
  }
  
  .steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  
  .step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .step.active {
    display: block;
    opacity: 1;
  }
  
  .step-image {
    width: 300px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .step-image:hover img {
    transform: scale(1.05);
  }
  
  .step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .step-content {
    color: var(--secondary-text);
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem;
  }
  
  .step-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
  }
  
  .step-navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .step-navigation-button {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--secondary-text);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--component-transition);
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .step-navigation-button:hover {
    background-color: var(--light-bg);
    border-color: var(--accent-color);
  }
  
  .step-navigation-button.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
  }
  
  .step-navigation-button.prev,
  .step-navigation-button.next {
    font-weight: 600;
    padding: 0.5rem 1rem;
  }
  
  .step-navigation-button.prev:hover,
  .step-navigation-button.next:hover {
    background-color: var(--accent-color);
    color: var(--white);
  }
  
  .step-navigation-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .step-navigation-button:disabled:hover {
    background-color: var(--white);
    color: var(--secondary-text);
  }
  
  /* ===========================================
     ### TABLE
     =========================================== */
  
  .rich-data-table {
    overflow: hidden;
    width: 100%;
    margin: 1.5rem 0;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .rich-data-table .table-wrapper {
    width: 100%;
    overflow-x: auto;
  }
  
  .rich-data-table .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.95rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    overflow: hidden;
  }
  
  /* Header styling */
  .rich-data-table .table th,
  .prose table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    font-weight: 600;
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
  }
  
  /* First and last header cells rounded corners */
  .rich-data-table .table th:first-child,
  .prose table th:first-child {
    border-top-left-radius: var(--component-border-radius);
  }
  
  .rich-data-table .table th:last-child,
  .prose table th:last-child {
    border-top-right-radius: var(--component-border-radius);
  }
  
  /* Cell styling */
  .rich-data-table .table td,
  .prose table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
  }
  
  /* Remove right border from last column */
  .rich-data-table .table td:last-child,
  .prose table td:last-child {
    border-right: none;
  }
  
  /* First column styling (row headers) */
  .rich-data-table .table td:first-child,
  .prose table td:first-child {
    background-color: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    border-right: 2px solid #e2e8f0;
  }
  
  /* Alternating row colors */
  .rich-data-table .table tbody tr:nth-child(even),
  .prose table tbody tr:nth-child(even) {
    background-color: #f9fafb;
  }
  
  .rich-data-table .table tbody tr:nth-child(odd),
  .prose table tbody tr:nth-child(odd) {
    background-color: var(--white);
  }
  
  /* Hover effects */
  .rich-data-table .table tbody tr:hover,
  .prose table tbody tr:hover {
    background-color: #e6f3ff !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
  }
  
  .rich-data-table .table tbody tr:hover td:first-child,
  .prose table tbody tr:hover td:first-child {
    background-color: #dbeafe !important;
  }
  
  /* Last row rounded corners */
  .rich-data-table .table tbody tr:last-child td:first-child,
  .prose table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--component-border-radius);
  }
  
  .rich-data-table .table tbody tr:last-child td:last-child,
  .prose table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--component-border-radius);
  }
  
  /* Remove bottom border from last row */
  .rich-data-table .table tbody tr:last-child td,
  .prose table tbody tr:last-child td {
    border-bottom: none;
  }
  
  /* Enhanced styling for strong text in tables */
  .rich-data-table .table td strong,
  .prose table td strong {
    color: #1e40af;
    font-weight: 600;
  }
  
  /* ===========================================
     ### CODE_SNIPPET
     =========================================== */
  
  .code-snippet {
    margin: var(--component-spacing) 0;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    overflow: hidden;
  }
  
  .code-snippet-heading {
    background-color: #2d3748;
    color: var(--white);
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
  }
  
  .code-snippet-before-text,
  .code-snippet-after-text {
    padding: 1rem;
    background-color: var(--light-bg);
    font-style: italic;
    color: var(--secondary-text);
  }
  
  .code-snippet pre {
    margin: 0;
    padding: 1rem;
    background-color: #2d3748;
    overflow-x: auto;
  }
  
  .code-snippet code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* ===========================================
     ### TIMELINE
     =========================================== */
  
  .timeline-widget {
    margin: var(--component-spacing) 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  .timeline-events {
    position: relative;
    padding-left: 2rem;
  }
  
  .timeline-events::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
  }
  
  .timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 6px;
  }
  
  .timeline-event::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--white);
  }
  
  .event-title {
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
  }
  
  .event-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
  }
  
  .event-description {
    margin-top: 0.5rem;
    line-height: 1.6;
  }
  
  /* ===========================================
     ### QUIZ
     =========================================== */
  
  .interactive-quiz {
    margin: var(--component-spacing) 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .quiz-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .quiz {
    margin-bottom: 1rem;
  }
  
  .quiz-question {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
    font-size: 1.1rem;
  }
  
  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .quiz-option {
    padding: 0.8rem;
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--component-transition);
    border: 1px solid transparent;
  }
  
  .quiz-option:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--accent-color);
  }
  
  /* ===========================================
     ### COMMUNITY_POLL
     =========================================== */
  
  .community-poll {
    margin: var(--component-spacing) 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .poll-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
  }
  
  .answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .answer-option {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--component-transition);
  }
  
  .answer-option:hover {
    background-color: rgba(52, 152, 219, 0.1);
  }
  
  .answer-option input {
    margin-right: 0.8rem;
    cursor: pointer;
  }
  
  /* ===========================================
     ### CALCULATOR
     =========================================== */
  
  .calculator-widget {
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    margin: var(--component-spacing) 0;
    overflow: hidden;
    padding: 1.5rem;
  }
  
  .calculator-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .calculator {
    margin: 1.5rem 0;
  }
  
  .calculator::before {
    content: "🧮";
  }
  
  .calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .calculator-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .calculator-input label {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.9rem;
  }
  
  .calculator-input .input {
    display: flex;
    flex-direction: column;
  }
  
  .calculator-input input,
  .calculator-input select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
  }
  
  .calculator-input input:focus,
  .calculator-input select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
  }
  
  .calculator-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .calculator-input-group .input {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .calculator-submit-container {
    margin-top: 1rem;
  }
  
  .calculator-submit-container button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .calculator-submit-container button:hover {
    background-color: #2980b9;
  }
  
  .calculator-outputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
  }
  
  .calculator-output h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-text);
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .calculator-output p {
    margin: 0 0 1rem 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .calculator-output .output {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
  }
  
  .calculator-output .output .result {
    margin: 0 0.25rem;
  }
  
  /* ===========================================
     ### GOOGLE_MAP
     =========================================== */
  
  .embed-map,
  .google-map {
    margin: var(--component-spacing) 0;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    font-weight: 600;
  }
  
  .google-map::before {
    content: "🗺️ Interactive Map";
  }
  
  /* ===========================================
     ### AMAZON_PRODUCTS
     =========================================== */
  
  .amazon-products-list {
    margin: var(--component-spacing) 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .amazon-products-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  .products {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .amazon-product {
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 6px;
    transition: var(--component-transition);
  }
  
  .amazon-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* ===========================================
     ### RECIPE
     =========================================== */
  
  .recipe-widget {
    margin: var(--component-spacing) 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
  }
  
  .recipe-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  .recipe-ingredients {
    margin-bottom: 2rem;
  }
  
  .recipe-ingredients h4,
  .recipe-instructions h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
  }
  
  .recipe-ingredients ul {
    list-style: none;
    padding: 0;
  }
  
  .recipe-ingredients li {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-bg);
    border-radius: 4px;
  }
  
  .recipe-ingredients li.with-image {
    align-items: flex-start;
  }
  
  .item-image {
    width: 40px;
    height: 40px;
    margin-right: 0.8rem;
    border-radius: 4px;
    object-fit: cover;
  }
  
  .recipe-instructions ol {
    padding-left: 0;
    counter-reset: step-counter;
  }
  
  .recipe-instructions li {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--light-bg);
    border-radius: 6px;
    padding-left: 3rem;
    list-style: none;
  }
  
  .recipe-instructions li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
  }
  
  .recipe-notes {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
  }
  
  /* ===========================================
     ### CHART
     =========================================== */
  
  .rich-data-chart,
  .prose .rich-data-chart {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .rich-data-chart canvas,
  .prose .rich-data-chart canvas {
    width: 100% !important;
    height: 100% !important;
  }
  
  .chart-title,
  .prose .chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0 15px;
    color: #1e40af;
    text-align: center;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
  }
  
  .prose .rich-data-chart::before {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background-color: #e5e7eb;
    margin-bottom: 1rem;
  }
  
  .prose .rich-data-chart::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background-color: #e5e7eb;
    margin-top: 1rem;
  }
  
  /* ===========================================
     ### PRESENTATION
     =========================================== */
  
  .reveal-presentation {
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
  }
  
  .reveal-presentation section {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 30px;
  }
  
  .reveal-presentation section:last-child {
    border-bottom: none;
  }
  
  .reveal-presentation h2 {
    color: #1a73e8;
    margin-top: 0;
  }
  
  .reveal-presentation pre {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    white-space: pre;
    overflow-x: auto;
  }
  
  .reveal-presentation code {
    font-family: 'Courier New', monospace;
  }
  
  .reveal-presentation ul, .reveal-presentation ol {
    padding-left: 20px;
  }
  
  .reveal-presentation p {
    margin-bottom: 1rem;
  }
  
  .reveal-presentation .context {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
  }
  
  .reveal-presentation .before-context, .reveal-presentation .after-context {
    background-color: #f9f9f9;
    padding: 10px;
    margin: 20px 0;
    border-left: 3px solid #ddd;
    font-style: italic;
  }
  
  .reveal-presentation [data-markdown] {
    display: block;
  }
  
  .reveal-presentation [data-markdown] textarea {
    display: none;
  }
  
  .reveal-presentation section::before {
    content: attr(data-markdown-content);
    white-space: pre-wrap;
  }
  
  .reveal-presentation .emoji {
    font-size: 1.2em;
  }
  
  /* ===========================================
     RESPONSIVE DESIGN & GENERAL IMPROVEMENTS
     =========================================== */
  
  @media (max-width: 768px) {
    .list-item-container {
      flex-direction: column;
      text-align: center;
    }
  
    .list-item-image {
      width: 60px !important;
      height: 60px !important;
      margin-right: 0 !important;
      margin-bottom: 1rem !important;
    }
  
    .rich-data-table .table {
      font-size: 0.8rem;
    }
  
    .rich-data-table .table th,
    .rich-data-table .table td {
      padding: 0.5rem;
    }
  
    .faq-emoji {
      font-size: 1rem;
    }
  
    .step-by-step-guide-widget {
      padding: 1rem;
    }
  
    .step-by-step-guide-widget h2 {
      font-size: 1.4rem;
    }
  
    .steps {
      gap: 0.5rem;
    }
  
    .step-image {
      width: 250px;
      height: 150px;
    }
  
    .step-title {
      font-size: 1.1rem;
    }
  
    .step-content {
      padding: 0 0.5rem;
    }
  
    .step-navigation-buttons {
      gap: 0.25rem;
    }
  
    .step-navigation-button {
      padding: 0.3rem 0.6rem;
      font-size: 0.75rem;
    }
  
    .calculator-input-group {
      gap: 0.75rem;
    }
  
    .calculator-output .output {
      font-size: 1.25rem;
    }
  
    .calculator-widget {
      padding: 1rem;
    }
  
    .calculator-title {
      font-size: 1.4rem;
    }
  
    /* Mobile-specific image sizing for better reading */
    .prose img {
      max-width: 85%;
    }
  }
  
  @media (max-width: 480px) {
    .youtube-video iframe {
      height: 250px;
    }
  
    .timeline-events::before {
      left: 0.5rem;
    }
  
    .timeline-event {
      padding-left: 2rem;
    }
  }
  
  /* Prose Integration */
  .prose h2 {
    color: #1e40af;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
  }
  
  .prose h3 {
    color: #3b82f6;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.25rem;
  }
  
  .prose p {
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  
  .blog-article {
    line-height: 1.8;
    color: #374151;
  }
  
  .prose img {
    max-width: 50%;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
  }
  
  .prose blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
  }
  
  .prose ul, .prose ol:not(.lemoolah-list) {
    padding-left: 1.5rem;
    margin: 1rem 0;
  }
  
  .prose li:not(.lemoolah-list li) {
    margin-bottom: 0.5rem;
  }
  
  .prose .lemoolah-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
  }
  
  .article-detail .rich-data-table {
    margin: 2rem 0;
  }
  
  .prose .list-item-container {
    transition: var(--component-transition);
  }
  
  .prose .list-item-image {
    border-radius: 6px;
  }
  
  .prose .list-item-image img {
    border-radius: 6px;
  }
  
  .prose a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
  }
  
  .prose a:hover {
    color: #1e40af;
  }
  
  .bg-gray-50 .rich-data-table,
  .bg-gray-100 .rich-data-table {
    background-color: var(--white);
    border: 1px solid var(--border-color);
  }
  
  .bg-gray-50 .rich-data-table,
  .bg-gray-50 .rich-data-chart {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* ===========================================
     ### ARTICLE PREVIEW HEADER STYLING
     =========================================== */
  
  /* Main article title */
  .blog-article h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
  }
  
  /* Regular h2 headings */
  .blog-article h2:not(.subheading) {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.75rem 0 1rem 0;
    color: #1f2937;
    position: relative;
  }
  
  /* Styled subheading h2 elements */
  .blog-article h2.subheading {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1e40af;
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  /* Subheading with parts (secondary/primary spans) */
  .blog-article h2.subheading.has-parts .secondary {
    opacity: 0.9;
    font-weight: 400;
  }
  
  .blog-article h2.subheading.has-parts .primary {
    font-weight: 700;
  }
  
  /* Regular h3 headings */
  .blog-article h3:not(.subheading) {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 0.75rem 0;
    color: #374151;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
  }
  
  /* Styled subheading h3 elements */
  .blog-article h3.subheading {
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid #3b82f6;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
  }
  
  /* Enhanced paragraph styling */
  .blog-article p {
    margin: 1rem 0;
    line-height: 1.7;
    color: #374151;
  }
  
  /* Enhanced strong text */
  .blog-article strong {
    color: #1f2937;
    font-weight: 600;
  }
  
  /* Enhanced link styling */
  .blog-article a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
  }
  
  .blog-article a:hover {
    color: #1d4ed8;
    text-decoration-color: #3b82f6;
  }
  
  /* Table of Contents enhanced styling */
  .toc-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
  }
  
  .toc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
  }
  
  .toc-title {
    color: #1e293b;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #cbd5e1;
  }
  
  .toc-title svg {
    color: #3b82f6;
    margin-right: 0.5rem;
  }
  
  .toc-link {
    color: #1e40af;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    text-decoration: none;
    display: block;
    position: relative;
    margin-bottom: 0.25rem;
  }
  
  .toc-link:hover {
    color: #1e3a8a;
    background-color: #dbeafe;
    text-decoration: none;
    transform: translateX(4px);
  }
  
  .toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
  }
  
  .toc-link:hover::before {
    width: 20px;
  }
  
  /* TOC hierarchy styling */
  .toc-link.toc-h1 {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .toc-link.toc-h1::before {
    content: '📋';
    position: static;
    margin-right: 0.5rem;
    transform: none;
    width: auto;
    height: auto;
    background: none;
  }
  
  .toc-link.toc-h1:hover::before {
    width: auto;
  }
  
  .toc-link.toc-h2 {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-left: 3px solid #60a5fa;
    position: relative;
  }
  
  .toc-link.toc-h2::before {
    content: '▶';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #60a5fa;
    font-size: 0.75rem;
    width: auto;
    height: auto;
    background: none;
    transition: transform 0.3s ease;
  }
  
  .toc-link.toc-h2:hover::before {
    transform: translateY(-50%) rotate(90deg);
    width: auto;
  }
  
  .toc-link.toc-h3 {
    font-size: 0.85rem;
    padding: 0.4rem 1rem 0.4rem 3rem;
    border-left: 2px solid #93c5fd;
    color: #475569;
    position: relative;
  }
  
  .toc-link.toc-h3::before {
    content: '•';
    position: absolute;
    left: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #93c5fd;
    font-size: 1rem;
    width: auto;
    height: auto;
    background: none;
  }
  
  .toc-link.toc-h3:hover::before {
    color: #3b82f6;
    width: auto;
  }
  
  /* Smooth scrolling for anchor links */
  html {
    scroll-behavior: smooth;
  }
  
  /* Highlight target heading when navigated to */
  :target {
    animation: highlight 2s ease-in-out;
  }
  
  @keyframes highlight {
    0% {
      background-color: #fef3c7;
      box-shadow: 0 0 0 4px #fbbf24;
    }
    100% {
      background-color: transparent;
      box-shadow: none;
    }
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .blog-article h1 {
      font-size: 1.875rem;
    }
    
    .blog-article h2.subheading {
      font-size: 1.25rem;
      padding: 0.75rem 1rem;
    }
    
    .blog-article h3:not(.subheading) {
      font-size: 1.25rem;
    }
    
    .toc-container {
      margin: 1rem 0;
      padding: 1rem;
    }
    
    .toc-title {
      font-size: 1.1rem;
    }
    
    .toc-link.toc-h1 {
      padding: 0.5rem 0.75rem;
      font-size: 0.9rem;
    }
    
    .toc-link.toc-h2 {
      padding: 0.4rem 0.75rem 0.4rem 1.5rem;
      font-size: 0.85rem;
    }
    
    .toc-link.toc-h2::before {
      left: 0.75rem;
    }
    
    .toc-link.toc-h3 {
      padding: 0.3rem 0.75rem 0.3rem 2.25rem;
      font-size: 0.8rem;
    }
    
    .toc-link.toc-h3::before {
      left: 1.75rem;
    }
  }
  
  .rich-data-table .table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
  }
  
  /* ===========================================
     ### REGULAR TABLE STYLING (AI Generated)
     =========================================== */
  
  /* Styling for regular tables generated by AI - only within specific article content containers */
  /* This targets only tables within article content, not admin interfaces */
  .blog-article .prose table,
  .article-detail .prose table,
  .article-content .prose table,
  [data-article-content] table {
    width: 100%;
    margin: 1.5rem 0;
    background-color: var(--white);
    border-radius: var(--component-border-radius);
    box-shadow: var(--component-box-shadow);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 0.95rem;
  }
  
  /* Header styling for article tables only */
  .blog-article .prose table th,
  .article-detail .prose table th,
  .article-content .prose table th,
  [data-article-content] table th {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: var(--white);
    font-weight: 600;
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
  }
  
  /* First and last header cells rounded corners */
  .blog-article .prose table th:first-child,
  .article-detail .prose table th:first-child,
  .article-content .prose table th:first-child,
  [data-article-content] table th:first-child {
    border-top-left-radius: var(--component-border-radius);
  }
  
  .blog-article .prose table th:last-child,
  .article-detail .prose table th:last-child,
  .article-content .prose table th:last-child,
  [data-article-content] table th:last-child {
    border-top-right-radius: var(--component-border-radius);
  }
  
  /* Cell styling for article tables only */
  .blog-article .prose table td,
  .article-detail .prose table td,
  .article-content .prose table td,
  [data-article-content] table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
  }
  
  /* Remove right border from last column */
  .blog-article .prose table td:last-child,
  .article-detail .prose table td:last-child,
  .article-content .prose table td:last-child,
  [data-article-content] table td:last-child {
    border-right: none;
  }
  
  /* First column styling (row headers) */
  .blog-article .prose table td:first-child,
  .article-detail .prose table td:first-child,
  .article-content .prose table td:first-child,
  [data-article-content] table td:first-child {
    background-color: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    border-right: 2px solid #e2e8f0;
  }
  
  /* Alternating row colors */
  .blog-article .prose table tbody tr:nth-child(even),
  .article-detail .prose table tbody tr:nth-child(even),
  .article-content .prose table tbody tr:nth-child(even),
  [data-article-content] table tbody tr:nth-child(even) {
    background-color: #f9fafb;
  }
  
  .blog-article .prose table tbody tr:nth-child(odd),
  .article-detail .prose table tbody tr:nth-child(odd),
  .article-content .prose table tbody tr:nth-child(odd),
  [data-article-content] table tbody tr:nth-child(odd) {
    background-color: var(--white);
  }
  
  /* Hover effects */
  .blog-article .prose table tbody tr:hover,
  .article-detail .prose table tbody tr:hover,
  .article-content .prose table tbody tr:hover,
  [data-article-content] table tbody tr:hover {
    background-color: #e6f3ff !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
  }
  
  .blog-article .prose table tbody tr:hover td:first-child,
  .article-detail .prose table tbody tr:hover td:first-child,
  .article-content .prose table tbody tr:hover td:first-child,
  [data-article-content] table tbody tr:hover td:first-child {
    background-color: #dbeafe !important;
  }
  
  /* Last row rounded corners */
  .blog-article .prose table tbody tr:last-child td:first-child,
  .article-detail .prose table tbody tr:last-child td:first-child,
  .article-content .prose table tbody tr:last-child td:first-child,
  [data-article-content] table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--component-border-radius);
  }
  
  .blog-article .prose table tbody tr:last-child td:last-child,
  .article-detail .prose table tbody tr:last-child td:last-child,
  .article-content .prose table tbody tr:last-child td:last-child,
  [data-article-content] table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--component-border-radius);
  }
  
  /* Remove bottom border from last row */
  .blog-article .prose table tbody tr:last-child td,
  .article-detail .prose table tbody tr:last-child td,
  .article-content .prose table tbody tr:last-child td,
  [data-article-content] table tbody tr:last-child td {
    border-bottom: none;
  }
  
  /* Enhanced styling for strong text in tables */
  .blog-article .prose table td strong,
  .article-detail .prose table td strong,
  .article-content .prose table td strong,
  [data-article-content] table td strong {
    color: #1e40af;
    font-weight: 600;
  }
  
  /* Mobile responsiveness for article tables */
  @media (max-width: 768px) {
    .blog-article .prose table,
    .article-detail .prose table,
    .article-content .prose table,
    [data-article-content] table {
      font-size: 0.85rem;
    }
    
    .blog-article .prose table th,
    .blog-article .prose table td,
    .article-detail .prose table th,
    .article-detail .prose table td,
    .article-content .prose table th,
    .article-content .prose table td,
    [data-article-content] table th,
    [data-article-content] table td {
      padding: 0.75rem 0.8rem;
    }
  } 
