/* Single post headings */
.single-post h3 {
    display: block;
    font-size: 30px;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 19px;
}

.single-post h3 strong {
    font-weight: 600;
}

/* Single post list items inside lower-content */
.single-post .lower-content ul li {
    line-height: 26px;
    margin-bottom: 8px;
    font-size: 17px;
    color: #0d1126;
    opacity: 70%;
    font-weight: 400;
    list-style-type: disc;
}
/* Single post list items inside lower-content */
.single-post .lower-content ol li {
    line-height: 26px;
    margin-bottom: 8px;
    font-size: 17px;
    color: #0d1126;
    opacity: 70%;
    font-weight: 400;
    list-style-type: decimal;
}

/* Generic single post list items */
/* .single-post ul li {
    line-height: 26px;
    margin-bottom: 8px;
    font-size: 17px;
    color: #0d1126;
    opacity: 70%;
    font-weight: 400;
} */
.single-post ul.post-info li {
  line-height: unset;
  margin-bottom: 0px;
  padding-top:15px;
}

@media (max-width: 767px) {
  .single-post .news-block-four .inner-box .lower-content .upper-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-post .news-block-four .inner-box .lower-content .post-date {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .single-post .news-block-four .inner-box .lower-content .post-info {
    width: 100%;
  }
}

/* Single post content box */
.single-post .lower-content {
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    position: relative;
    display: block;
    background: #fff;
    margin-left: 0px;
    margin-top: -15px !important;
    z-index: 1;
    padding: 15px 33px 20px 33px;
}

/* Tables inside single post */
.single-post table td,
.single-post table th {
    border: 1px solid #d2d2d2;
    vertical-align: middle;
    padding: 8px;
}

.single-post table tr:first-child {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
}

.single-post table tbody tr:not(:first-child):hover {
    background: #fff3e0;
    /* transform: scale(1.01); */
}

.single-post table tr {
    transition: 0.3s ease;
}

.single-post .wp-block-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #d2d2d2;
    margin-bottom: 20px;
}



/* Blog detail page: responsive tables */
.single-post .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5em;
}

.single-post .wp-block-table table {
    width: 100%;
    min-width: 0;
    table-layout: auto; /* flexible columns by default */
}

/* Keep fixed layout only when Gutenberg adds has-fixed-layout */
.single-post .wp-block-table.has-fixed-layout table {
    table-layout: fixed;
}

.single-post .wp-block-table td,
.single-post .wp-block-table th {
    white-space: normal;        /* allow wrapping */
    word-break: normal;         /* don't break every letter */
    overflow-wrap: anywhere;    /* break very long words/URLs if needed */
    padding: 0.75em 1em;
    vertical-align: top;
}

.single-post .wp-block-table th {
    font-weight: 600;
}

@media screen and (max-width: 767px) {
    .single-post .wp-block-table {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .single-post .wp-block-table table {
        font-size: 14px;
    }

    .single-post .wp-block-table td,
    .single-post .wp-block-table th {
        padding: 0.5em 8px;
        min-width: 0;
    }
}

/* FIX: restore bullets for single post body lists */
.single-post .blog-details-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-left: 0;
}
.single-post .blog-details-text ol {
  padding-left: 20px;
  margin-left: 0;
}


.single-post .blog-details-text ul li {
    display: list-item !important;
    list-style-type: disc;
    line-height: 26px;
    margin-bottom: 8px;
    font-size: 17px;
    color: #0d1126;
    opacity: 0.7;
    font-weight: 400;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}


/* Blog single: responsive comparison tables */
.single-post .wp-block-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Let the table use natural column widths */
.single-post .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* Comfortable cells, wrap only when needed */
.single-post .wp-block-table th,
.single-post .wp-block-table td {
  padding: 12px 16px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere; /* breaks very long words/URLs */
}

/* On mobiles: keep columns readable, enable swipe scroll */
@media (max-width: 767px) {
  .single-post .wp-block-table {
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 15px;
  }

  /* Make the table wider than the screen so it scrolls horizontally */
  .single-post .wp-block-table table {
    min-width: 650px; /* adjust based on how many columns you have */
  }

  .single-post .wp-block-table th,
  .single-post .wp-block-table td {
    font-size: 14px;
    padding: 10px 8px;
  }
}

/* Single post – force comparison table to be horizontally scrollable on mobile */
@media (max-width: 767px) {
  /* Make the Gutenberg table wrapper the scroll container */
  .single-post .wp-block-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; /* space for scrollbar */
  }

  /* Make the inner table wider than the viewport so it can scroll */
  .single-post .wp-block-table table {
    width: auto !important;
    min-width: 800px !important;  /* adjust (700–900px) based on your columns */
    table-layout: auto !important;
  }

  /* Let text wrap normally inside cells */
  .single-post .wp-block-table th,
  .single-post .wp-block-table td {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important; /* only break very long words/URLs */
    font-size: 14px;
    padding: 10px 8px;
  }
}

/* Final override: single post table headers centered, no broken words, horizontal scroll */
.single-post .wp-block-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.single-post .wp-block-table table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

.single-post .wp-block-table th,
.single-post .wp-block-table td {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.single-post .wp-block-table th {
  text-align: center !important;
}

/* Fallback: long blog-detail tables should scroll on the wrapper */
.single-post .blog-details-text .wp-block-table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.single-post .blog-details-text figure.wp-block-table.aligncenter {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.single-post .blog-details-text .wp-block-table table {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
