/* Custom Elements for Elementor — frontend styles */

.cefe-adv-heading__title { margin: 0; }
.cefe-adv-heading__sep { margin: 14px 0; }
.cefe-adv-heading__sep span { display: inline-block; width: 70px; height: 3px; background: #5b4bff; border-radius: 3px; }
.cefe-adv-heading__sub { margin-top: 10px; }

/* Icon box */
.cefe-icon-box { display: flex; flex-direction: column; }
.cefe-icon-box--left { flex-direction: row; align-items: flex-start; text-align: left; }
.cefe-icon-box__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin: 0 auto 20px; }
.cefe-icon-box--left .cefe-icon-box__icon { margin: 0 20px 0 0; }
.cefe-icon-box__icon svg { width: 1em; height: 1em; }
.cefe-icon-box__title { margin: 0 0 10px; }
.cefe-icon-box__desc { margin: 0; }

/* Image box */
.cefe-image-box__image img { display: block; width: 100%; height: auto; }
.cefe-image-box__title { margin: 0 0 10px; }

/* Button */
.cefe-btn-wrap { display: flex; }
.cefe-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; transition: all .25s ease; line-height: 1.2; }
.cefe-btn__icon { display: inline-flex; align-items: center; }
.cefe-btn__icon svg { width: 1em; height: 1em; }

/* Team */
.cefe-team { overflow: hidden; }
.cefe-team__photo img { display: block; width: 100%; height: auto; }
.cefe-team__body { text-align: center; }
.cefe-team__name { margin: 0 0 4px; }
.cefe-team__position { margin-bottom: 10px; }
.cefe-team__social { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.cefe-team__social a { display: inline-flex; text-decoration: none; transition: color .2s ease; }
.cefe-team__social a svg { width: 1em; height: 1em; }

/* Testimonials */
.cefe-testimonial { position: relative; }
.cefe-testimonial__track { position: relative; }
.cefe-testimonial__slide { display: none; }
.cefe-testimonial__slide.is-active { display: block; }
.cefe-testimonial__stars { letter-spacing: 2px; margin-bottom: 12px; color: #ffb400; }
.cefe-testimonial__content { margin-bottom: 18px; }
.cefe-testimonial__meta { display: flex; align-items: center; gap: 12px; }
.cefe-testimonial__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cefe-testimonial__author { font-weight: 600; }
.cefe-testimonial__role { font-size: .9em; opacity: .8; }
.cefe-testimonial__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1px solid #5b4bff; color: #5b4bff; cursor: pointer; font-size: 22px; line-height: 1; }
.cefe-testimonial__arrow--prev { left: -18px; }
.cefe-testimonial__arrow--next { right: -18px; }
.cefe-testimonial__dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.cefe-testimonial__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d7d7e5; cursor: pointer; }
.cefe-testimonial__dot.is-active { background: #5b4bff; }

/* Pricing */
.cefe-pricing { position: relative; text-align: center; }
.cefe-pricing__ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: #ff5c5c; color: #fff; padding: 5px 40px; font-size: 12px; letter-spacing: .5px; }
.cefe-pricing__plan { margin: 0 0 12px; }
.cefe-pricing__price { margin-bottom: 18px; font-size: 40px; font-weight: 700; line-height: 1; }
.cefe-pricing__currency { font-size: .5em; vertical-align: super; }
.cefe-pricing__period { font-size: .38em; font-weight: 400; }
.cefe-pricing__features { list-style: none; margin: 0 0 22px; padding: 0; }
.cefe-pricing__features li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.cefe-pricing__features li.is-excluded { opacity: .45; text-decoration: line-through; }
.cefe-pricing__btn { display: inline-block; padding: 12px 30px; border-radius: 6px; text-decoration: none; }

/* FAQ */
.cefe-faq__heading { margin: 0; }
.cefe-faq__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; background: #f6f6fb; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cefe-faq__icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.cefe-faq__icon::before, .cefe-faq__icon::after { content: ""; position: absolute; background: currentColor; transition: transform .2s ease; }
.cefe-faq__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.cefe-faq__icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.cefe-faq__item.is-open .cefe-faq__icon::after { transform: scaleY(0); }
.cefe-faq__a-inner { padding: 16px 20px; }

/* Counter */
.cefe-counter__icon { line-height: 1; margin-bottom: 12px; }
.cefe-counter__icon svg { width: 1em; height: 1em; }
.cefe-counter__number { font-size: 42px; font-weight: 700; line-height: 1; }

/* Post grid / archive loop */
.cefe-post-grid, .cefe-archive-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cefe-post-card { overflow: hidden; border-radius: 8px; }
.cefe-post-card__thumb img { display: block; width: 100%; height: auto; }
.cefe-post-card__title { margin: 0 0 8px; font-size: 20px; }
.cefe-post-card__title a { text-decoration: none; }
.cefe-post-card__meta { display: flex; gap: 12px; font-size: 13px; opacity: .75; margin-bottom: 10px; }
.cefe-post-card__more { display: inline-block; margin-top: 12px; text-decoration: none; font-weight: 600; }
.cefe-pagination { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cefe-pagination a, .cefe-pagination span { padding: 6px 12px; border-radius: 4px; text-decoration: none; }
.cefe-pagination .current { background: #5b4bff; color: #fff; }

/* Theme widgets */
.cefe-logo img { display: block; max-width: 100%; height: auto; }
.cefe-logo__title { margin: 0; font-size: 24px; font-weight: 700; }
.cefe-logo__title a { text-decoration: none; }

.cefe-nav__list { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; align-items: center; }
.cefe-nav--vertical .cefe-nav__list { flex-direction: column; align-items: flex-start; }
.cefe-nav__list li { position: relative; }
.cefe-nav__list a { display: block; text-decoration: none; padding: 8px 0; transition: color .2s ease; }
.cefe-nav__list ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 99; }
.cefe-nav__list li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.cefe-nav__list ul a { padding: 8px 16px; }
.cefe-nav__toggle { display: none; width: 42px; height: 38px; background: transparent; border: 1px solid currentColor; border-radius: 4px; cursor: pointer; position: relative; }
.cefe-nav__toggle-bar, .cefe-nav__toggle-bar::before, .cefe-nav__toggle-bar::after { content: ""; position: absolute; left: 11px; width: 18px; height: 2px; background: currentColor; }
.cefe-nav__toggle-bar { top: 18px; }
.cefe-nav__toggle-bar::before { top: -6px; left: 0; }
.cefe-nav__toggle-bar::after { top: 6px; left: 0; }

.cefe-search { display: flex; }
.cefe-search__input { flex: 1 1 auto; border: 0; outline: 0; min-width: 0; }
.cefe-search__btn { border: 0; cursor: pointer; padding: 0 22px; }

.cefe-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.cefe-post-meta a { text-decoration: none; }
.cefe-post-meta__sep { opacity: .5; }

.cefe-archive-title__text { margin: 0; }
.cefe-archive-title__desc { margin-top: 10px; }
.cefe-featured img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.cefe-empty { opacity: .7; }

.cefe-header, .cefe-footer { width: 100%; }
.cefe-site-content { min-height: 40vh; }
.cefe-default-article, .cefe-default-card { max-width: 800px; margin: 0 auto 30px; padding: 0 20px; }
.cefe-default-title { margin-bottom: 14px; }
.cefe-default-404 { text-align: center; padding: 80px 20px; }

/* Popup */
.cefe-popup { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
.cefe-popup.is-open { display: flex; }
.cefe-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.cefe-popup__box { position: relative; background: #fff; max-width: 680px; width: 100%; max-height: 85vh; overflow: auto; border-radius: 10px; padding: 30px; }
.cefe-popup__close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 1024px) {
	.cefe-post-grid, .cefe-archive-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.cefe-post-grid, .cefe-archive-loop { grid-template-columns: 1fr; }
	.cefe-icon-box--left { flex-direction: column; }
	.cefe-icon-box--left .cefe-icon-box__icon { margin: 0 0 16px; }
	.cefe-testimonial__arrow--prev { left: 0; }
	.cefe-testimonial__arrow--next { right: 0; }
	.cefe-nav__toggle { display: block; }
	.cefe-nav__list { display: none; flex-direction: column; align-items: flex-start; width: 100%; }
	.cefe-nav.is-open .cefe-nav__list { display: flex; }
	.cefe-nav__list ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
}
