.blog-inner-rich-text h2 i {
    font-style: italic;
    font-weight: 400;
  }
  
  .blog-inner-rich-text h2 span {
    display: block;
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 8px;
    font-style: normal;
  }
.blog-inner-rich-text a {
    color: #2C7DBF;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 120ms ease;
}

.blog-inner-rich-text a:hover,
.blog-inner-rich-text a:focus {
    color: #205f96;
    outline: none;
}

/* FIX: Make right sidebar sticky */
.blog-right-wrap {
    position: sticky;
    top: 20px;      
    height: fit-content;
}

/* FIX: Ensure parent container doesn't block sticky */
.blog-grid.inner {
    overflow: visible !important;
}

/* Mobile Fix – disable sticky to avoid hiding */
@media (max-width: 991px) {
    .blog-right-wrap {
        position: static !important;
    }
}


.blog-right-wrap .blog-post-header a {
    color: inherit;
    text-decoration: none;
}

/* Improved spacing for blog content */
.blog-inner-rich-text h2 {
    margin-top: 48px !important;
    margin-bottom: 24px !important;
    line-height: 1.3;
    font-size: 2.6rem !important;
}

.blog-inner-rich-text h3 {
    margin-top: 36px !important;
    margin-bottom: 20px !important;
    line-height: 1.4;
}

.blog-inner-rich-text h4 {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    line-height: 1.4;
    font-size: 1.5rem !important;
}

.blog-inner-rich-text h5 {
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    line-height: 1.4;
    font-size: 1.25rem !important;
}

.blog-inner-rich-text h2 + p,
.blog-inner-rich-text h3 + p,
.blog-inner-rich-text h4 + p,
.blog-inner-rich-text h5 + p {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.blog-inner-rich-text p {
    margin-bottom: 20px !important;
    line-height: 1.8;
}

.blog-inner-rich-text ul,
.blog-inner-rich-text ol {
    margin-top: 16px !important;
    margin-bottom: 24px !important;
    padding-left: 30px;
}

.blog-inner-rich-text li {
    margin-bottom: 12px !important;
    line-height: 1.7;
}

.blog-inner-rich-text p + h2 {
    margin-top: 56px !important;
}

.blog-inner-rich-text p + h3 {
    margin-top: 40px !important;
}

.blog-inner-rich-text img {
    margin: 32px 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-img-caption {
    margin-top: -24px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Table Styles */
.blog-inner-rich-text table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.blog-inner-rich-text table thead {
    background-color: #f5f5f5;
}

.blog-inner-rich-text table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.blog-inner-rich-text table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.blog-inner-rich-text table tbody tr:last-child td {
    border-bottom: none;
}

.blog-inner-rich-text table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Newsletter Form Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.newsletter-form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.newsletter-form-field {
    width: 100%;
}

.newsletter-form-submit {
    width: 100%;
    margin-top: 8px;
}

.newsletter-form-submit .button {
    width: 100%;
}

.subscribe-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.subscribe-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscribe-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.button:disabled,
.button.btn__disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Phone Field Side by Side Layout */
.phone-field-group {
    width: 100%;
}

.phone-field-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.phone-code-wrapper {
    flex: 0 0 150px;
    min-width: 150px;
    position: relative;
}

.phone-number-wrapper {
    flex: 1;
    min-width: 0;
}

.phone-code-select {
    width: 50px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    background-color: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.phone-code-select:focus {
    outline: none;
    border-color: #4d65ff;
    box-shadow: 0 0 0 3px rgba(77, 101, 255, 0.1);
}

.phone-number-input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #333;
}

.phone-number-input:focus {
    outline: none;
    border-color: #4d65ff;
    box-shadow: 0 0 0 3px rgba(77, 101, 255, 0.1);
}

.phone-number-input::placeholder {
    color: #999;
}

/* Error message styling */
.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Select2 custom styling */
.select2-container {
    width: 100% !important;
    display: block !important;
}

.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 4px !important;
    background-color: white !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
    color: #333 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 8px !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #333 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #333 transparent !important;
    border-width: 0 4px 5px 4px !important;
    margin-top: -3px !important;
}

.select2-container--default .select2-selection--single:focus {
    outline: none;
}

.select2-container--open .select2-selection--single {
    border-color: #4d65ff !important;
    box-shadow: 0 0 0 3px rgba(77, 101, 255, 0.1) !important;
}


/* Sidebar link base style */
.blog-right-wrap .blog-side-wrap a {
    transition: all 0.25s ease;
    padding: 6px 8px;
    border-radius: 0px;
    display: block;
    width: 100%;
}

/* Highlight active section */
.blog-right-wrap .blog-side-wrap a.active {
    color: #2C7DBF !important;
    background: rgba(44, 125, 191, 0.15);
    font-weight: 700;
    transform: translateX(6px);
    box-shadow: 0 0 10px rgba(44, 125, 191, 0.15);
}

/* Make right sidebar sticky */
.blog-right-wrap {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Fix sticky parent issue */
.blog-grid.inner {
    overflow: visible !important;
    grid-template-columns: 1.3fr .75fr !important;
}
 
    
.blog-right-wrap {
        order: 2;
}
    
.blog-grid.inner > div:not(.blog-right-wrap) {
        order: 1;
}

/* Prevent browser anchor jump conflicts */
html {
  scroll-behavior: smooth;
}

/* Add correct offset so heading is fully visible */
.blog-inner-rich-text h2,
.blog-inner-rich-text h3 {
  scroll-margin-top: 120px; /* header + spacing */
}

/* Prevent sidebar auto snap-back */
.blog-right-wrap {
  overscroll-behavior: contain;
}

/* Ensure TOC doesn't auto-jump on active change */
.blog-right-wrap .blog-side-wrap a {
  scroll-margin-top: 0 !important;
}

/* Stop micro scroll jitter */


/* Mobile: disable all auto behavior */
@media (max-width: 991px) {
  html {
    scroll-behavior: auto;
  }

  .blog-inner-rich-text h2,
  .blog-inner-rich-text h3 {
    scroll-margin-top: 80px;
  }
}

/* ===============================
   TOC SCROLLBAR FIX
================================ */

/* TOC container */
.blog-right-wrap .contributors-wrap {
    max-height: calc(100vh - 140px); /* viewport minus header */
    overflow-y: auto;
    padding-right: 6px;
}

/* Smooth scroll inside TOC */
.blog-right-wrap .contributors-wrap {
    scroll-behavior: smooth;
}

/* Custom scrollbar (Webkit browsers) */
.blog-right-wrap .contributors-wrap::-webkit-scrollbar {
    width: 6px;
}

.blog-right-wrap .contributors-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.blog-right-wrap .contributors-wrap::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
}

.blog-right-wrap .contributors-wrap::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Firefox scrollbar */
.blog-right-wrap .contributors-wrap {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Prevent body scroll interference */
.blog-right-wrap {
    overscroll-behavior: contain;
    
}

/* Mobile: disable scroll + sticky */
@media (max-width: 991px) {
    .blog-right-wrap .contributors-wrap {
        max-height: none;
        overflow: visible;
    }
}

/* ===== BLOG BUTTON (Reusable) ===== */
.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  min-height: 48px;

  background: linear-gradient(45deg, #5495f2, #a0c4f8);
  color: #ffffff !important;

  font-size: 16px;
  font-weight: 600;
  line-height: 1;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);

  text-decoration: none!important;
  white-space: nowrap;

  box-shadow: inset 0 -4px 8px rgba(3, 75, 183, 0.5);
  transition: all 0.3s ease;
}

/* Hover */
.blog-btn:hover {
  background: #e9f2ff;
  color: #141414 !important;
  box-shadow: none;
  transform: translateY(-2px);
}

/* Active */
.blog-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

/* Optional full-width version */
.blog-btn.full-width {
  width: 100%;
}

/* Fix for featured article right side images - prevent cutting */
.blog9_featured-item-link {
    align-items: flex-start !important;
}

.blog9_mini-image-wrapper {
    flex-shrink: 0;
    width: 222px;
    min-width: 222px;
    max-width: 222px;
    height: 144px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.blog9_mini-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 144px;
    max-width: 222px !important;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.blog9_featured-item-content {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
}

/* Ensure featured list items don't overflow */
.blog9_featured-item {
    width: 100%;
    overflow: hidden;
}

.blog9_featured-list {
    width: 100%;
}

/* Fallback for old structure without wrapper */
.blog9_featured-item-link > div:first-child {
    flex-shrink: 0;
    width: 222px;
    min-width: 222px;
    max-width: 222px;
    height: 144px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.blog9_featured-item-link > div:first-child .blog9_mini-image {
    object-fit: contain !important;
}

.section_cta .secondary-button{
    background-color: #ffffff;
    color: #000000!important;
}


