/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.accordion-wrapper {
  width: 100%;
  overflow: hidden;
}

.item-description p {
  word-break: break-word;
  overflow-wrap: break-word;
}

.accordion-header {
  width: 100%;
  box-sizing: border-box; /* ensures padding doesn't add to width */
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.item-content {
  flex: 1;
  min-width: 0; /* critical — prevents text from overflowing */
  overflow: hidden;
}

.item-title,
.item-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* OR use white-space: normal; if you want wrapping */
}

.elementor-widget-theme-post-content {
  font-family: "IBM Plex Sans", Sans-serif;
  color: #FFFFFF;
}

/* ── SEO Read More & FAQ accordion ─────────────────────────── */

#vb-seo-sections {
  background: #2B1E72;
  padding: 80px 40px;
  font-family: "IBM Plex Sans", Sans-serif;
}

.vb-seo-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ── Heading ── */

.vb-faq-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

/* ── Accordion list ── */

.vb-accordion-list {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Each accordion item (card) ── */

.vb-accordion-item {
  background: #403480;
  border-radius: 8px;
  border: 1px solid rgba(229, 231, 235, 0.20);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s;
}

.vb-accordion-item:hover {
  background: #4A3D8F;
}

/* ── Trigger row ── */

.vb-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px 24px;
  margin: 0;
  font-family: "IBM Plex Sans", Sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

/* ── Chevron icon ── */

.vb-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.vb-open .vb-chevron {
  transform: rotate(180deg);
}

/* ── Panel (answer / read-more body) ── */

.vb-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.vb-open .vb-accordion-panel {
  max-height: 4000px;
  padding: 0 24px 24px;
}

.vb-accordion-panel p {
  margin: 0 0 12px;
  font-family: "IBM Plex Sans", Sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #E3E3E3;
}

.vb-accordion-panel p:last-child {
  margin-bottom: 0;
}

/* ── Mobile ── */

@media (max-width: 767px) {
  #vb-seo-sections {
    padding: 50px 16px;
  }
  .vb-seo-inner {
    padding: 0;
    gap: 32px;
  }
  .vb-faq-heading {
    font-size: 24px;
    line-height: 36px;
  }
  .vb-accordion-trigger {
    padding: 16px;
    font-size: 14px;
  }
  .vb-accordion-panel p {
    font-size: 13px;
  }
}

