﻿/* Page builder frontend styles */
.pb-section { width: 100%; }
.pb-contained { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.pb-full-width { width: 100%; padding: 0 24px; }
.pb-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.pb-col { min-width: 0; }
.pb-heading { margin: 0 0 1em; line-height: 1.2; }
.pb-text { line-height: 1.75; }
.pb-text a { color: var(--clr-primary, #1d4ed8); text-decoration: underline; }
.pb-figure { margin: 0; }
.pb-image { max-width: 100%; height: auto; }
.pb-image__caption { font-size: .875rem; color: #64748b; margin-top: 8px; }
.pb-btn-wrap { }
.pb-btn { display: inline-block; padding: .625rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .9375rem; transition: all .15s; cursor: pointer; }
.pb-btn--primary { background: var(--clr-primary, #1d4ed8); color: #fff; }
.pb-btn--primary:hover { opacity: .88; }
.pb-btn--outline { border: 2px solid var(--clr-primary, #1d4ed8); color: var(--clr-primary, #1d4ed8); background: transparent; }
.pb-btn--outline:hover { background: var(--clr-primary, #1d4ed8); color: #fff; }
.pb-btn--ghost { color: var(--clr-primary, #1d4ed8); background: transparent; border: none; padding: .5rem .75rem; }
.pb-btn--ghost:hover { text-decoration: underline; }
.pb-btn--secondary { background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.pb-btn--sm { padding: .375rem .875rem; font-size: .875rem; }
.pb-btn--lg { padding: .875rem 2rem; font-size: 1.125rem; }
.pb-spacer { }
.pb-divider { display: block; }
.pb-cards { display: grid; gap: 24px; }
.pb-cards--1 { grid-template-columns: 1fr; }
.pb-cards--2 { grid-template-columns: repeat(2, 1fr); }
.pb-cards--3 { grid-template-columns: repeat(3, 1fr); }
.pb-cards--4 { grid-template-columns: repeat(4, 1fr); }
.pb-card { }
.pb-card--bordered { border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; }
.pb-card--shadow { border-radius: 10px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.pb-card--plain { }
.pb-card__icon { font-size: 2rem; margin-bottom: 12px; }
.pb-card__title { font-weight: 700; font-size: 1.0625rem; margin-bottom: 8px; }
.pb-card__text { color: #475569; font-size: .9375rem; line-height: 1.6; }
.pb-card__link { text-decoration: none; color: inherit; display: block; }
.pb-faq { }
.pb-faq__item { border-bottom: 1px solid #e2e8f0; }
.pb-faq__question { width: 100%; background: none; border: none; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: #1e293b; cursor: pointer; text-align: left; gap: 16px; }
.pb-faq__question:hover { color: var(--clr-primary, #1d4ed8); }
.pb-faq__arrow { flex-shrink: 0; transition: transform .25s; }
.pb-faq__question.is-open .pb-faq__arrow { transform: rotate(180deg); }
.pb-faq__answer { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.pb-faq__answer-inner { padding: 0 0 18px; color: #475569; line-height: 1.75; }
.pb-stats { display: grid; gap: 24px; text-align: center; }
.pb-stats--2 { grid-template-columns: repeat(2, 1fr); }
.pb-stats--3 { grid-template-columns: repeat(3, 1fr); }
.pb-stats--4 { grid-template-columns: repeat(4, 1fr); }
.pb-stat__number { font-size: 2.5rem; font-weight: 800; color: var(--clr-primary, #1d4ed8); line-height: 1; margin-bottom: 8px; }
.pb-stat__prefix, .pb-stat__suffix { font-size: 1.5rem; }
.pb-stat__label { font-size: .9375rem; color: #475569; }
.pb-quote { margin: 0; padding: 24px; border-left: 4px solid var(--clr-primary, #1d4ed8); }
.pb-quote--boxed { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid var(--clr-primary, #1d4ed8); border-radius: 8px; }
.pb-quote--minimal { border: none; padding: 0; font-style: italic; }
.pb-quote p { font-size: 1.125rem; line-height: 1.7; color: #1e293b; margin: 0 0 12px; }
.pb-quote__author { font-style: normal; font-size: .9375rem; color: #64748b; font-weight: 600; }
.pb-quote__author-title { font-weight: 400; }
.pb-html { }

/* â”€â”€ Hero â”€â”€ */
.pb-hero { position: relative; display: flex; align-items: center; justify-content: center; }
.pb-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.pb-hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 60px 24px; width: 100%; }
.pb-hero__title { font-size: clamp(1.75rem,4vw,3rem); font-weight: 800; line-height: 1.15; margin: 0; }
.pb-hero__subtitle { font-size: 1.2rem; opacity: .9; margin: 16px 0 0; }
.pb-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* â”€â”€ Steps â”€â”€ */
.pb-steps { display: grid; gap: 32px; }
.pb-steps--2 { grid-template-columns: repeat(2,1fr); }
.pb-steps--3 { grid-template-columns: repeat(3,1fr); }
.pb-steps--4 { grid-template-columns: repeat(4,1fr); }
.pb-step { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pb-step__num { width: 48px; height: 48px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-step__icon { font-size: 2rem; line-height: 1; }
.pb-step__circle { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #7c3aed; color: #7c3aed; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-step__title { font-size: 1.0625rem; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.pb-step__text { font-size: .9375rem; color: #475569; margin: 0; line-height: 1.6; }

/* â”€â”€ CTA Banner â”€â”€ */
.pb-cta { padding: 60px 32px; border-radius: 12px; }
.pb-cta__title { font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 800; margin: 0 0 16px; color: inherit; }
.pb-cta__text { font-size: 1.125rem; opacity: .9; margin: 0 0 32px; max-width: 640px; }

/* â”€â”€ Icon List â”€â”€ */
.pb-icon-list { display: grid; gap: 24px; }
.pb-icon-list--1 { grid-template-columns: 1fr; }
.pb-icon-list--2 { grid-template-columns: repeat(2,1fr); }
.pb-icon-list--3 { grid-template-columns: repeat(3,1fr); }
.pb-icon-item { display: flex; gap: 16px; align-items: flex-start; }
.pb-icon-item__icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.pb-icon-item__title { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.pb-icon-item__text { font-size: .9375rem; color: #475569; margin: 0; line-height: 1.6; }

/* â”€â”€ Testimonials â”€â”€ */
.pb-testimonials { display: grid; gap: 24px; }
.pb-testimonials--1 { grid-template-columns: 1fr; }
.pb-testimonials--2 { grid-template-columns: repeat(2,1fr); }
.pb-testimonials--3 { grid-template-columns: repeat(3,1fr); }
.pb-testimonial { padding: 28px; border-radius: 12px; }
.pb-testimonial--card { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.pb-testimonial--bordered { border: 2px solid #e2e8f0; }
.pb-testimonial--minimal { padding: 16px 0; }
.pb-testimonial__stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.pb-testimonial__text { font-size: .9375rem; color: #334155; line-height: 1.7; margin: 0 0 20px; font-style: italic; }
.pb-testimonial__author { display: flex; align-items: center; gap: 12px; }
.pb-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pb-testimonial__avatar--ph { width: 44px; height: 44px; border-radius: 50%; background: #7c3aed; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.pb-testimonial__name { font-weight: 700; color: #0f172a; font-size: .9375rem; }
.pb-testimonial__title { color: #64748b; font-size: .875rem; }

/* â”€â”€ Alert â”€â”€ */
.pb-alert { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: 8px; border-left: 4px solid; }
.pb-alert--info    { background: #eff6ff; border-color: #3b82f6; }
.pb-alert--success { background: #f0fdf4; border-color: #22c55e; }
.pb-alert--warning { background: #fffbeb; border-color: #f59e0b; }
.pb-alert--danger  { background: #fef2f2; border-color: #ef4444; }
.pb-alert__icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.pb-alert--info    .pb-alert__icon { color: #3b82f6; }
.pb-alert--success .pb-alert__icon { color: #22c55e; }
.pb-alert--warning .pb-alert__icon { color: #f59e0b; }
.pb-alert--danger  .pb-alert__icon { color: #ef4444; }
.pb-alert__title { font-weight: 700; }
.pb-alert__text { color: #334155; }

/* â”€â”€ Video â”€â”€ */
.pb-video { }
.pb-video__wrap { position: relative; height: 0; overflow: hidden; border-radius: 8px; }
.pb-video__wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.pb-video__caption { font-size: .875rem; color: #64748b; text-align: center; margin: 10px 0 0; }

/* â”€â”€ Team â”€â”€ */
.pb-team { display: grid; gap: 28px; }
.pb-team--2 { grid-template-columns: repeat(2,1fr); }
.pb-team--3 { grid-template-columns: repeat(3,1fr); }
.pb-team--4 { grid-template-columns: repeat(4,1fr); }
.pb-team__member { text-align: center; }
.pb-team__photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; }
.pb-team__photo--ph { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto 16px; }
.pb-team__name { font-size: 1.0625rem; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.pb-team__title { font-size: .875rem; color: #7c3aed; font-weight: 600; margin: 0 0 8px; }
.pb-team__bio { font-size: .875rem; color: #475569; line-height: 1.6; margin: 0 0 12px; }
.pb-team__links { display: flex; gap: 8px; justify-content: center; }
.pb-team__social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; color: #475569; font-weight: 700; font-size: .8125rem; text-decoration: none; transition: background .2s, color .2s; }
.pb-team__social:hover { background: #7c3aed; color: #fff; }

/* â”€â”€ Gallery â”€â”€ */
.pb-gallery { display: grid; gap: 12px; }
.pb-gallery--2 { grid-template-columns: repeat(2,1fr); }
.pb-gallery--3 { grid-template-columns: repeat(3,1fr); }
.pb-gallery--4 { grid-template-columns: repeat(4,1fr); }
.pb-gallery__item { margin: 0; overflow: hidden; border-radius: 8px; }
.pb-gallery__img-wrap { position: relative; height: 0; overflow: hidden; }
.pb-gallery__img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pb-gallery__item:hover img { transform: scale(1.05); }
.pb-gallery__caption { font-size: .8125rem; color: #64748b; text-align: center; padding: 8px 4px 0; }

/* â”€â”€ Checklist â”€â”€ */
.pb-checklist { display: grid; gap: 12px; }
.pb-checklist--1 { grid-template-columns: 1fr; }
.pb-checklist--2 { grid-template-columns: repeat(2,1fr); }
.pb-checklist__item { display: flex; align-items: flex-start; gap: 10px; }
.pb-checklist__marker { font-size: 1rem; font-weight: 700; line-height: 1.5; flex-shrink: 0; }
.pb-checklist--check .is-checked   .pb-checklist__marker { color: #22c55e; }
.pb-checklist--check .is-unchecked .pb-checklist__marker { color: #94a3b8; }
.pb-checklist--cross .is-checked   .pb-checklist__marker { color: #ef4444; }
.pb-checklist--arrow .pb-checklist__marker { color: #7c3aed; }
.pb-checklist__text { font-size: .9375rem; color: #334155; line-height: 1.6; }

/* â”€â”€ Scroll fade-up animation â”€â”€ */
@keyframes pbFadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
.pb-animate { opacity: 0; }
.pb-animate.is-visible { animation: pbFadeUp .55s ease both; }

@media (max-width: 768px) {
    .pb-row { grid-template-columns: 1fr !important; gap: 16px; }
    .pb-col { grid-column: 1 / -1 !important; }
    .pb-cards--3, .pb-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .pb-stats--4 { grid-template-columns: repeat(2, 1fr); }
    .pb-contained, .pb-full-width { padding: 0 16px; }
    /* New widgets */
    .pb-steps--2, .pb-steps--3, .pb-steps--4 { grid-template-columns: repeat(2,1fr); }
    .pb-icon-list--3 { grid-template-columns: repeat(2,1fr); }
    .pb-testimonials--3 { grid-template-columns: repeat(2,1fr); }
    .pb-team--3, .pb-team--4 { grid-template-columns: repeat(2,1fr); }
    .pb-gallery--3, .pb-gallery--4 { grid-template-columns: repeat(2,1fr); }
    .pb-hero__inner { padding: 40px 16px; }
    .pb-cta { padding: 40px 20px; }
}
@media (max-width: 480px) {
    .pb-cards--2, .pb-cards--3, .pb-cards--4 { grid-template-columns: 1fr; }
    .pb-stats--2, .pb-stats--3, .pb-stats--4 { grid-template-columns: repeat(2, 1fr); }
    /* New widgets */
    .pb-steps--2, .pb-steps--3, .pb-steps--4 { grid-template-columns: 1fr; }
    .pb-icon-list--2, .pb-icon-list--3 { grid-template-columns: 1fr; }
    .pb-testimonials--2, .pb-testimonials--3 { grid-template-columns: 1fr; }
    .pb-team--2, .pb-team--3, .pb-team--4 { grid-template-columns: repeat(2,1fr); }
    .pb-gallery--2, .pb-gallery--3, .pb-gallery--4 { grid-template-columns: repeat(2,1fr); }
    .pb-checklist--2 { grid-template-columns: 1fr; }
    .pb-hero__title { font-size: 1.75rem; }
}
