﻿/* ==========================================================================
   MAIN BLOG CONTAINER & GLOBAL TEXT
   ========================================================================== */

.cbx-blog-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* Removed padding/margin to prevent conflicts with parent theme */
}

/* Rule to increase font size and set color to black */
.cbx-blog-container p,
.cbx-blog-container ul,
.cbx-blog-container ol,
.cbx-blog-container blockquote,
.cbx-blog-container .cbx-pricing-table {
    font-size: calc(1em + 2px);
    color: #000;
}

.cbx-blog-hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 2.5rem 0;
}



/* ==========================================================================
   HEADERS & ANCHOR JUMP FIX
   ========================================================================== */

/* This fix ensures that when you "jump" to a section, it stops 20px early 
   to clear your sticky header or give breathing room. */
.cbx-blog-container h1,
.cbx-blog-container h2,
.cbx-blog-container h3 {
    color: #111;
    position: relative;
}

/* ==========================================================================
   HEADERS & ANCHOR JUMP FIX (UPDATED)
   ========================================================================== */

/* 1. We added 'p[id]' to the list so your paragraph link works too. 
   2. We increased height to 80px (standard header size). */

.cbx-blog-container h1::before,
.cbx-blog-container h2::before,
.cbx-blog-container h3::before,
.cbx-blog-container p[id]::before { 
    content: "";
 
    visibility: hidden;
    pointer-events: none;
}

.cbx-blog-container h1 {
    font-size: 2.1rem;
    font-weight: 500;
    text-align: center;
    padding-bottom: 0rem;
    margin: 0;
}

.cbx-blog-container .cbx-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin: 0.0rem 0 0;
    font-weight: 400;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 0rem;
    margin-bottom: 0rem;
}

.cbx-blog-container h2 {
    font-size: 1.75rem;
    margin-top: 1rem; 
    padding-bottom: .3rem;
}

/* Hide a line break directly after a heading */
.cbx-blog-container h1 + br,
.cbx-blog-container h2 + br,
.cbx-blog-container h3 + br {
    display: none !important;
}

.cbx-blog-container h2 + p,
.cbx-blog-container h2 + br + p {
    margin-top: 0;
    padding-top: 0;
}


.cbx-blog-container h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
 
}

/* ==========================================================================
   PRICING TABLE STYLES
   ========================================================================== */

.cbx-pricing-table {
    width: 100%;
    margin: 2rem auto;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.cbx-pricing-table th,
.cbx-pricing-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.cbx-pricing-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555;
}

.cbx-pricing-table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

.cbx-pricing-bonus-cell { color: #28a745; font-weight: bold; text-align: center; }
.cbx-pricing-includes-cell { font-size: 0.9em; color: #444; }
.cbx-pricing-includes-cell small { color: #777; }
.cbx-pricing-coupon-text { text-align: center; font-size: 0.9em; color: #666; margin-top: -1rem; }

/* ==========================================================================
   LISTS, QUOTES, & ALERTS
   ========================================================================== */

.cbx-blog-container ul { list-style-type: disc; margin-left: 20px; padding-left: 10px; }
.cbx-blog-container ol { list-style-type: decimal; margin-left: 20px; padding-left: 10px; }
.cbx-blog-container ul li, .cbx-blog-container ol li { margin-bottom: 1.5rem; }

.cbx-blog-container blockquote {
    border-left: 4px solid #007bff;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.cbx-pro { color: #28a745; font-weight: 700; }
.cbx-con { color: #dc3545; font-weight: 700; }

.cbx-alert { padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 5px solid; border-radius: 4px; }
.cbx-alert-info { background-color: #e7f3fe; border-color: #2196F3; color: #0c5460; }
.cbx-alert-warning { background-color: #fff3cd; border-color: #ffc107; color: #856404; }
.cbx-alert-success { background-color: #d4edda; border-color: #28a745; color: #155724; }

/* ==========================================================================
   SEO & INTERACTIVE (TOC, VIDEO, Images, ACCORDION)
   ========================================================================== */

.cbx-toc-box {
    background-color: #f9f9f9;
    border-bottom: 1px solid #dddddd;
    border-radius: 0px;
    padding: 0px 0 0px 0;
    
    display: inline-block;
    min-width: 50%;
}

.cbx-toc-box p.cbx-toc-title {
    font-weight: bold; 
    font-size: 1.0rem; 
    margin-bottom: 10px; 
    color: #1e1e1e; /* Changed to pure black */
    display: inline-block; 
    padding-bottom: 3px;
    /* Removed border-bottom entirely */
}

.cbx-toc-box ul { margin: 0 !important; list-style-type: none !important; padding-left: 0 !important; }
.cbx-toc-box ul li { margin-bottom: 0.5rem !important; font-size: .90rem !important; }

/* ===== ADDED: TOC link color (original had no <a> styling inside the TOC) ===== */
.cbx-toc-box ul li a { color: #064588; text-decoration: none; }
.cbx-toc-box ul li a:hover { text-decoration: none; }

/* ===== ADDED: Multi-column TOC variant — apply class "re-toc-columns" (plus
   "re-toc-3col" for 3 columns on desktop) to .cbx-toc-box when the list has
   more than ~6 items, instead of the default left-aligned half-width box. ===== */
.cbx-toc-box.cbx-toc-columns {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding-bottom: 5px;
    box-sizing: border-box;
}
.cbx-toc-box.cbx-toc-columns p.cbx-toc-title { display: inline-block; float: none; }
.cbx-toc-box.cbx-toc-columns ul {
    column-count: 2;
    column-gap: 2.5rem;
    text-align: left;
    max-width: 720px;
    margin: 0 auto !important;
    display: block !important;
}
.cbx-toc-box.cbx-toc-columns ul li { break-inside: avoid; margin-bottom: 0.6rem !important; }
@media (min-width: 900px) {
    .cbx-toc-box.cbx-toc-columns.cbx-toc-3col ul { column-count: 3; max-width: 960px; }
}
@media (max-width: 600px) {
    .cbx-toc-box.cbx-toc-columns ul { column-count: 1; }
}

.cbx-video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    margin: 2rem 0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.cbx-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

details.cbx-details { margin-bottom: 1rem; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; background: #fff; }
details.cbx-details summary { padding: 1rem; font-weight: bold; cursor: pointer; background-color: #fcfcfc; list-style: none; position: relative; }
details.cbx-details summary::after { content: '+'; position: absolute; right: 1rem; color: #007bff; font-size: 1.5rem; }
details.cbx-details[open] summary::after { content: '-'; }

/* ===== ADDED: padding for the accordion answer content — original only
   styled the <summary>, not the expanded body. Wrap each answer in
   <div class="re-details-body">...</div> to use this. ===== */
details.cbx-details .cbx-details-body { padding: 0 1rem 1rem 1rem; }

/* Responsive Video Container Grid */
.cbx-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.cbx-video-card {
  background: #121212;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #2a2a2a;
}

.cbx-video-card .cbx-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.cbx-video-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cbx-video-card .cbx-video-info {
  padding: 12px 16px;
  color: #e0e0e0;
}

.cbx-video-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.cbx-video-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #a0a0a0;
}

/* Image Slider Container */
.cbx-slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #111;
}

/* Slider Track */
.cbx-slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

/* Individual Slide */
.cbx-slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.cbx-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Slide Caption Overlay */
.cbx-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Navigation Controls (Prev/Next) */
.cbx-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.cbx-slider-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.cbx-slider-prev { left: 12px; }
.cbx-slider-next { right: 12px; }

/* Pagination Dots */
.cbx-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  background: #111;
}

.cbx-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cbx-slider-dot.cbx-active,
.cbx-slider-dot:hover {
  background: #007bff;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .cbx-slide img {
    height: 280px;
  }
  .cbx-slider-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}


/* ==========================================================================
   AUTHOR & CTA , USE THE ONE WITH THE IMAGE SOURCE
   ========================================================================== */


   .cbx-author-box { display: flex; align-items: center; background: #f9f9f9; padding: 1.5rem; margin-top: 3rem; border-radius: 8px; border: 1px solid #eee; }

/* Set default avatar background image directly in CSS */
.cbx-author-img { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 1.5rem; 
    background-image: url('https://centricbeats.com/photos/Centric-Beats.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0; /* Prevents image from squishing on mobile */
}

.cbx-author-box { display: flex; align-items: center; background: #f9f9f9; padding: 1.5rem; margin-top: 3rem; border-radius: 8px; border: 1px solid #eee; }
.cbx-author-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-right: 1.5rem; }

.cbx-blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1e1e1e;
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 1px solid #333333;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cbx-blog-cta:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.cbx-blog-cta:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.cbx-blog-cta::after {
    content: "→";
    transition: transform 0.15s ease;
}

.cbx-blog-cta:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   MOBILE & LAYOUT CARDS
   ========================================================================== */

.cbx-blog-post-card { max-width: 1100px; margin: 2rem auto; padding: 0; background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }

@media (max-width: 767px) {
  .cbx-blog-post-card { background-color: transparent; box-shadow: none; border-radius: 0; padding: 0; margin: 1rem 0; }
  .cbx-pricing-table { box-shadow: none; }
  .cbx-author-box { flex-direction: column; text-align: center; }
  .cbx-author-img { margin-right: 0; margin-bottom: 1rem; }
}


/* Optimized Wrapping for 2026 Layouts */
.cbx-blog-img-wrap-left {
    float: left;
    margin: 0 1.5rem 0.5rem 0;
    width: 30%; /* Slightly smaller to ensure text has room */
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    shape-outside: margin-box; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cbx-blog-img-wrap-right {
    float: right;
    margin: 0 0 0.5rem 1.5rem;
    width: 30%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    shape-outside: margin-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Clearfix to prevent layout collapse */
.cbx-blog-container::after {
    content: "";
    clear: both;
    display: table;
}








/* ==========================================================================
   UPCOMING EVENTS WIDGET (COMPLETE CSS)
   ========================================================================== */

/* Fetch Button Styling */
.cbx-events-btn {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 26px !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    display: inline-block;
    margin: 1rem 0 1.5rem 0;
}

.cbx-events-btn:hover {
    background-color: #333333 !important;
    transform: translateY(-1px);
}

.cbx-events-btn:disabled {
    background-color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Loading, Error, and Results Visibility States */
#cbx-events-loading {
    display: none;
    margin: 1rem 0;
    color: #555;
    font-weight: bold;
}

#cbx-events-error {
    display: none;
}

#cbx-events-results {
    display: none;
}

/* Uncontained Output Display Area */
#cbx-events-info-display {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
}

/* Uncontained Output Display Area */
#cbx-events-info-display {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    color: #333333; /* Default body text color for white background */
}

/* Styled Content Elements Inside Results */
#cbx-events-info-display h3, 
#cbx-events-info-display h4 {
    color: #b38600; /* Darkened gold/amber for contrast on white */
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cbx-events-info-display strong {
    color: #111111; /* Deep charcoal/black for strong text */
    font-weight: 700;
}

#cbx-events-info-display ul, 
#cbx-events-info-display li {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#cbx-events-info-display li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: #b38600; /* Matching the darker accent color */
    font-size: 14px;
}

#cbx-events-info-display hr {
    border: 0;
    height: 1px;
    background: #dddddd; /* Lighter divider for white background */
    margin: 15px 0;
}

.cbx-events-response {
    display: block !important;
    width: 100% !important;
    background: #ffffff;
    color: #222222;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ==========================================================================
   IMAGE WRAPPERS & CAPTIONS (NEW)
   ========================================================================== */

.cbx-image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.cbx-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.cbx-image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.75rem;
    font-style: italic;
}
.cbx-blog-img-wrap-left {
    float: left;
    margin: 0 1.5rem 0.5rem 0;
    width: 30%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    shape-outside: margin-box; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cbx-blog-img-wrap-right {
    float: right;
    margin: 0 0 0.5rem 1.5rem;
    width: 30%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    shape-outside: margin-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Clearfix to prevent layout collapse */
.cbx-blog-container::after {
    content: "";
    clear: both;
    display: table;
}

.cbx-important-note {
    background: #f5f7fa;
    border-left: 4px solid #222;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 4px;
    line-height: 1.6;
}

.cbx-important-note strong {
    font-weight: 700;
}

/* ==========================================================================
   MOCKUP PLACEHOLDER BLOCKS (ADDED)
   Used only where a real screenshot/photo/video couldn't be sourced yet —
   swap the .cbx-mockup-frame div for a real <img> or iframe when available.
   ========================================================================== */

.cbx-mockup-frame {
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e1e1e 0%, #333 60%, #007bff 140%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 3rem 1.5rem;
}

.cbx-mockup-frame .cbx-mockup-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.5rem;
    display: block;
}

.cbx-mockup-frame .cbx-mockup-title {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Optional "play button" circle for video mockups */
.cbx-mockup-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 2px solid rgba(255,255,255,0.6);
}



/* ==========================================================================
   SCROLL OFFSET FOR ANCHOR LINKS
   ========================================================================== */
html {
    scroll-padding-top: 100px; /* Adjust this value to match your needs/header height */
    scroll-behavior: smooth; /* Adds a nice gliding animation when clicking TOC links */
}




.cbx-blog-container figure {
    margin: 1.5rem 0;
    padding: 0;
}

.cbx-blog-container .cbx-blog-img-fluid {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.cbx-blog-container .cbx-toc-box {
    margin-bottom: 2em;
}


h1[id],
h2[id],
h3[id],
h4[id],
p[id] {
    scroll-margin-top: 100px;
}

