/* Leafdragger — public page content styles (API; admin preview + frontend) */

.component-content {
    padding: 10px;
    min-height: 30px;
}

.leafdragger-preview {
    /* No shell background — public /blogs|/pages inherit site bg; avoids dark-mode extension mismatch */
    /* Fixed px base: admin panel root rem ≠ browser/site (Metronic ~13px vs 16px) */
    font-size: 16px;
    font-family: Dana, Tahoma, sans-serif;
}

.leafdragger-preview-component {
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.page-content-wrapper {
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
    font-family: inherit;
}

/* Builder inline font-size: 1rem follows document root — normalize inside preview */
.leafdragger-preview .page-content-wrapper [style*="font-size: 1rem"],
.leafdragger-preview .page-content-wrapper [style*="font-size:1rem"] {
    font-size: 16px !important;
}

/* Body paragraphs slightly inset vs flush headings (RTL/LTR) */
.leafdragger-preview .page-content-wrapper p,
.leafdragger-preview .page-content-wrapper .component-content p {
    margin-top: 0;
    margin-bottom: 8px;
    padding-inline-start: 10px;
    padding-inline-end: 0;
}

.leafdragger-preview .page-content-wrapper p:last-child,
.leafdragger-preview .page-content-wrapper .component-content p:last-child {
    margin-bottom: 0;
}

/* Vertical rhythm between saved components */
.leafdragger-preview .page-content-wrapper > .component-content {
    margin-bottom: 20px;
    padding: 0;
    min-height: 0;
    display: flow-root;
}

.leafdragger-preview .page-content-wrapper > .component-content:last-child {
    margin-bottom: 0;
}

/* Extra air before a heading block that follows another component */
.leafdragger-preview .page-content-wrapper > .component-content:not(:first-child):has(> :is(h1, h2, h3, h4, h5, h6):first-child:last-child) {
    padding-top: 6px;
}

/* Headings — modest scale vs 1rem body; same line-height as paragraph text */
.leafdragger-preview .page-content-wrapper :is(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    line-height: 1.5;
    margin-top: 14px;
    margin-bottom: 6px;
}

.leafdragger-preview .page-content-wrapper > .component-content:first-child > :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.leafdragger-preview .page-content-wrapper p + :is(h1, h2, h3, h4, h5, h6),
.leafdragger-preview .page-content-wrapper .component-content p + :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 16px;
}

.leafdragger-preview .page-content-wrapper h1,
.leafdragger-preview .page-content-wrapper .component-content h1 {
    font-size: 24px;
    font-weight: 700;
}

.leafdragger-preview .page-content-wrapper h2,
.leafdragger-preview .page-content-wrapper .component-content h2 {
    font-size: 22px;
    font-weight: 700;
}

.leafdragger-preview .page-content-wrapper h3,
.leafdragger-preview .page-content-wrapper .component-content h3 {
    font-size: 19px;
    font-weight: 600;
}

.leafdragger-preview .page-content-wrapper h4,
.leafdragger-preview .page-content-wrapper .component-content h4 {
    font-size: 17px;
    font-weight: 600;
}

.leafdragger-preview .page-content-wrapper h5,
.leafdragger-preview .page-content-wrapper .component-content h5 {
    font-size: 16px;
    font-weight: 600;
}

.leafdragger-preview .page-content-wrapper h6,
.leafdragger-preview .page-content-wrapper .component-content h6 {
    font-size: 15px;
    font-weight: 600;
}

/* Lists (Tailwind preflight removes bullets/numbers) */
.leafdragger-preview .page-content-wrapper ul:not(.pricing-features),
.leafdragger-preview .page-content-wrapper ol,
.leafdragger-preview .page-content-wrapper .component-content ul:not(.pricing-features),
.leafdragger-preview .page-content-wrapper .component-content ol {
    display: block;
    list-style-position: outside;
    margin: 0.5rem 0 0.75rem;
    padding-inline-start: 1.5rem;
    padding-inline-end: 0;
}

.leafdragger-preview .page-content-wrapper ul:not(.pricing-features),
.leafdragger-preview .page-content-wrapper .component-content ul:not(.pricing-features) {
    list-style-type: disc;
}

.leafdragger-preview .page-content-wrapper ul ul,
.leafdragger-preview .page-content-wrapper .component-content ul ul {
    list-style-type: circle;
}

.leafdragger-preview .page-content-wrapper ul ul ul,
.leafdragger-preview .page-content-wrapper .component-content ul ul ul {
    list-style-type: square;
}

.leafdragger-preview .page-content-wrapper ol,
.leafdragger-preview .page-content-wrapper .component-content ol {
    list-style-type: decimal;
}

.leafdragger-preview .page-content-wrapper li:not(.pricing-feature-item),
.leafdragger-preview .page-content-wrapper .component-content li:not(.pricing-feature-item) {
    display: list-item;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.leafdragger-preview .page-content-wrapper li:not(.pricing-feature-item):last-child,
.leafdragger-preview .page-content-wrapper .component-content li:not(.pricing-feature-item):last-child {
    margin-bottom: 0;
}

.leafdragger-preview .page-content-wrapper li > ul,
.leafdragger-preview .page-content-wrapper li > ol,
.leafdragger-preview .page-content-wrapper .component-content li > ul,
.leafdragger-preview .page-content-wrapper .component-content li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Tables (Tailwind preflight breaks table layout on blog/CMS pages) */
.page-content-wrapper .table-responsive,
.leafdragger-preview .page-content-wrapper .table-responsive,
.leafdragger-preview .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content-wrapper table,
.leafdragger-preview .page-content-wrapper table,
.leafdragger-preview .page-content-wrapper .component-content table,
.leafdragger-preview table {
    display: table !important;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
}

.page-content-wrapper thead,
.leafdragger-preview .page-content-wrapper thead,
.leafdragger-preview .page-content-wrapper .component-content thead {
    display: table-header-group !important;
}

.page-content-wrapper tbody,
.leafdragger-preview .page-content-wrapper tbody,
.leafdragger-preview .page-content-wrapper .component-content tbody {
    display: table-row-group !important;
}

.page-content-wrapper tfoot,
.leafdragger-preview .page-content-wrapper tfoot,
.leafdragger-preview .page-content-wrapper .component-content tfoot {
    display: table-footer-group !important;
}

.page-content-wrapper tr,
.leafdragger-preview .page-content-wrapper tr,
.leafdragger-preview .page-content-wrapper .component-content tr {
    display: table-row !important;
}

.page-content-wrapper th,
.page-content-wrapper td,
.leafdragger-preview .page-content-wrapper th,
.leafdragger-preview .page-content-wrapper td,
.leafdragger-preview .page-content-wrapper .component-content th,
.leafdragger-preview .page-content-wrapper .component-content td {
    display: table-cell !important;
    vertical-align: top;
}

.page-content-wrapper .leafdragger-data-table th,
.page-content-wrapper .leafdragger-data-table td,
.leafdragger-preview .leafdragger-data-table th,
.leafdragger-preview .leafdragger-data-table td {
    padding: 0.5rem 0.65rem;
}

/* Bootstrap-style buttons (generated HTML uses .btn .btn-*) */
.leafdragger-preview .page-content-wrapper .btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 16px;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.leafdragger-preview .page-content-wrapper .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.leafdragger-preview .page-content-wrapper .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 20px;
    border-radius: 0.5rem;
}

.leafdragger-preview .page-content-wrapper .btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.leafdragger-preview .page-content-wrapper .btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.leafdragger-preview .page-content-wrapper .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.leafdragger-preview .page-content-wrapper .btn-secondary:hover {
    color: #fff;
    background-color: #5c636a;
    border-color: #565e64;
}

.leafdragger-preview .page-content-wrapper .btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.leafdragger-preview .page-content-wrapper .btn-success:hover {
    color: #fff;
    background-color: #157347;
    border-color: #146c43;
}

.leafdragger-preview .page-content-wrapper .btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.leafdragger-preview .page-content-wrapper .btn-danger:hover {
    color: #fff;
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.leafdragger-preview .page-content-wrapper .btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.leafdragger-preview .page-content-wrapper .btn-warning:hover {
    color: #000;
    background-color: #ffca2c;
    border-color: #ffc720;
}

.leafdragger-preview .page-content-wrapper .btn-info {
    color: #000;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.leafdragger-preview .page-content-wrapper .btn-info:hover {
    color: #000;
    background-color: #31d2f2;
    border-color: #25cff2;
}

.leafdragger-preview .page-content-wrapper .btn-light {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.leafdragger-preview .page-content-wrapper .btn-light:hover {
    color: #000;
    background-color: #f9fafb;
    border-color: #f9fafb;
}

.leafdragger-preview .page-content-wrapper .btn-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.leafdragger-preview .page-content-wrapper .btn-dark:hover {
    color: #fff;
    background-color: #1c1f23;
    border-color: #1a1e21;
}

.leafdragger-preview .page-content-wrapper .img-fluid {
    max-width: 100%;
    height: auto;
}

.page-content-wrapper img.leafdragger-img,
.leafdragger-preview img.leafdragger-img,
.page-content-wrapper .component-content > img.img-fluid:not(.testimonial-avatar),
.leafdragger-preview .component-content > img.img-fluid:not(.testimonial-avatar) {
    border-radius: 0.375rem;
}

.testimonial {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2em;
}

.testimonial-bubble {
    position: relative;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-bubble .testimonial-content {
    font-style: italic;
    position: relative;
}

.testimonial-bubble .testimonial-content:before {
    content: '"';
    font-size: 4em;
    color: #e9ecef;
    position: absolute;
    top: -10px;
    left: -20px;
    font-family: Georgia, serif;
}

.testimonial-inline {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Pricing table */
.pricing-table {
    width: 100%;
    --pricing-radius: 1.125rem;
    --pricing-accent: var(--bs-primary, #009ef7);
    --pricing-accent-soft: rgba(0, 158, 247, 0.12);
    --pricing-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    --pricing-shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--pricing-radius);
    background: #ffffff;
    box-shadow: var(--pricing-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pricing-shadow-hover);
    border-color: rgba(15, 23, 42, 0.12);
}

.pricing-card-featured {
    border-color: rgba(0, 158, 247, 0.45);
    box-shadow:
        0 22px 50px rgba(0, 158, 247, 0.14),
        0 8px 20px rgba(15, 23, 42, 0.06);
    z-index: 2;
}

.pricing-card-header {
    position: relative;
    padding: 1.35rem 1.35rem 1.15rem;
    text-align: center;
}

.pricing-card-appearance-light .pricing-card-header {
    background: linear-gradient(160deg, #f8fafc 0%, #e9eef5 100%);
}

.pricing-card-appearance-primary .pricing-card-header {
    background: linear-gradient(135deg, #009ef7 0%, #0066cc 100%);
    color: #fff;
}

.pricing-card-appearance-success .pricing-card-header {
    background: linear-gradient(135deg, #50cd89 0%, #2ea86a 100%);
    color: #fff;
}

.pricing-card-appearance-violet .pricing-card-header {
    background: linear-gradient(135deg, #7239ea 0%, #5014d0 100%);
    color: #fff;
}

.pricing-card-appearance-sunset .pricing-card-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 55%, #f368e0 100%);
    color: #fff;
}

.pricing-card-appearance-dark .pricing-card-header {
    background: linear-gradient(145deg, #1e1e2d 0%, #151521 100%);
    color: #f5f8fa;
}

.pricing-card-badge {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    z-index: 4;
    margin: 0;
    padding: 0.35rem 0.85rem 0.4rem 0.75rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #ffc700 0%, #ff9500 100%);
    border-end-end-radius: var(--pricing-radius);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.pricing-card-featured .pricing-card-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: #0078d4;
    box-shadow: 2px 2px 12px rgba(0, 120, 212, 0.2);
}

.pricing-card-appearance-light .pricing-card-badge {
    background: linear-gradient(135deg, var(--pricing-accent, #009ef7) 0%, #0078d4 100%);
    color: #fff;
    box-shadow: 2px 2px 12px rgba(0, 158, 247, 0.22);
}

.pricing-card-body {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.35rem;
    background: #fff;
}

.pricing-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #181c32;
}

.pricing-card-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #7e8299;
}

.pricing-card-appearance-primary .pricing-card-title,
.pricing-card-appearance-primary .pricing-card-desc,
.pricing-card-appearance-success .pricing-card-title,
.pricing-card-appearance-success .pricing-card-desc,
.pricing-card-appearance-violet .pricing-card-title,
.pricing-card-appearance-violet .pricing-card-desc,
.pricing-card-appearance-sunset .pricing-card-title,
.pricing-card-appearance-sunset .pricing-card-desc {
    color: #fff;
}

.pricing-card-appearance-primary .pricing-card-desc,
.pricing-card-appearance-success .pricing-card-desc,
.pricing-card-appearance-violet .pricing-card-desc,
.pricing-card-appearance-sunset .pricing-card-desc {
    opacity: 0.92;
}

.pricing-card-appearance-dark .pricing-card-title,
.pricing-card-appearance-dark .pricing-card-desc {
    color: #f5f8fa;
}

.pricing-card-appearance-dark .pricing-card-desc {
    opacity: 0.85;
}

.pricing-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 0 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pricing-price-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #181c32;
}

.pricing-card-featured .pricing-price-value {
    font-size: 2.25rem;
    background: linear-gradient(135deg, #181c32 0%, var(--pricing-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pricing-price-period {
    font-size: 0.8rem;
    font-weight: 500;
    color: #a1a5b7;
}

.pricing-card-features {
    flex: 1 1 auto;
    margin-bottom: 1.25rem;
}

.pricing-features {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-inline-start: 0;
}

.page-content-wrapper .pricing-features,
.leafdragger-preview .pricing-features {
    list-style: none;
    padding-inline-start: 0;
    margin: 0;
}

.pricing-feature-item {
    display: flex;
    list-style: none;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #3f4254;
}

.pricing-feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: rgba(80, 205, 137, 0.15);
    color: #47be7d;
    font-size: 0.75rem;
}

/* فرانت Bootstrap Icons ندارد — تیک از CSS */
.page-content-wrapper .pricing-feature-icon i.bi,
.leafdragger-preview .pricing-feature-icon i.bi {
    display: none;
}

.page-content-wrapper .pricing-feature-icon::before,
.leafdragger-preview .pricing-feature-icon::before {
    content: "✓";
    font-weight: 700;
    line-height: 1;
}

.pricing-card-featured .pricing-feature-icon {
    background: var(--pricing-accent-soft);
    color: var(--pricing-accent);
}

.pricing-card-cta-wrap {
    padding-top: 0.25rem;
    width: 100%;
}

.pricing-card-cta {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.page-content-wrapper a.pricing-card-cta.btn,
.leafdragger-preview a.pricing-card-cta.btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pricing-card-cta:hover {
    transform: translateY(-1px);
}

.pricing-card-cta-header {
    border: none !important;
    color: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.pricing-card-cta-header:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.pricing-card-appearance-light .pricing-card-cta-header {
    background: linear-gradient(160deg, #5e6278 0%, #3f4254 100%);
}

.pricing-card-appearance-primary .pricing-card-cta-header {
    background: linear-gradient(135deg, #009ef7 0%, #0066cc 100%);
    box-shadow: 0 8px 20px rgba(0, 158, 247, 0.35);
}

.pricing-card-appearance-success .pricing-card-cta-header {
    background: linear-gradient(135deg, #50cd89 0%, #2ea86a 100%);
    box-shadow: 0 8px 20px rgba(46, 168, 106, 0.35);
}

.pricing-card-appearance-violet .pricing-card-cta-header {
    background: linear-gradient(135deg, #7239ea 0%, #5014d0 100%);
    box-shadow: 0 8px 20px rgba(114, 57, 234, 0.35);
}

.pricing-card-appearance-sunset .pricing-card-cta-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 55%, #f368e0 100%);
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.3);
}

.pricing-card-appearance-dark .pricing-card-cta-header {
    background: linear-gradient(145deg, #1e1e2d 0%, #151521 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.pricing-card-featured .pricing-card-cta-header {
    box-shadow: 0 10px 26px rgba(0, 158, 247, 0.28);
}

[data-bs-theme="dark"] .pricing-card {
    background: #1e1e2d;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .pricing-card-body {
    background: #1e1e2d;
}

[data-bs-theme="dark"] .pricing-card-featured {
    border-color: rgba(0, 158, 247, 0.5);
}

[data-bs-theme="dark"] .pricing-card-appearance-light .pricing-card-header {
    background: linear-gradient(160deg, #2b2b40 0%, #1e1e2d 100%);
}

[data-bs-theme="dark"] .pricing-card-title,
[data-bs-theme="dark"] .pricing-price-value {
    color: #f5f8fa;
}

[data-bs-theme="dark"] .pricing-card-featured .pricing-price-value {
    background: linear-gradient(135deg, #f5f8fa 0%, #6eb5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-bs-theme="dark"] .pricing-card-desc,
[data-bs-theme="dark"] .pricing-price-period {
    color: #a1a5b7;
}

[data-bs-theme="dark"] .pricing-feature-item {
    color: #e1e3ea;
}

[data-bs-theme="dark"] .pricing-card-price {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .pricing-card-cta.btn-light {
    background: #2b2b40;
    color: #f5f8fa;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 991px) {
    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }
}

.shape-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider-top {
    margin-top: -1px;
}

.shape-divider-bottom {
    margin-bottom: -1px;
}

.shape-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    position: relative;
    left: 50%;
    transform-origin: center center;
}

.container-component {
    padding: 0;
    margin: 10px 0;
    position: relative;
}

.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* Bootstrap utilities in generated HTML (site/blog has no Bootstrap — admin Metronic does) */
.page-content-wrapper .row,
.leafdragger-preview .page-content-wrapper .row,
.leafdragger-preview .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.page-content-wrapper .row > *,
.leafdragger-preview .page-content-wrapper .row > *,
.leafdragger-preview .row > * {
    flex-shrink: 0;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.page-content-wrapper .g-4,
.leafdragger-preview .g-4 {
    --ld-gutter-x: 1.5rem;
    --ld-gutter-y: 1.5rem;
}

.page-content-wrapper .g-4.row,
.leafdragger-preview .g-4.row {
    margin-top: calc(-1 * var(--ld-gutter-y));
    margin-right: calc(-0.5 * var(--ld-gutter-x));
    margin-left: calc(-0.5 * var(--ld-gutter-x));
}

.page-content-wrapper .g-4.row > *,
.leafdragger-preview .g-4.row > * {
    margin-top: var(--ld-gutter-y);
    padding-right: calc(var(--ld-gutter-x) * 0.5);
    padding-left: calc(var(--ld-gutter-x) * 0.5);
}

.page-content-wrapper .d-flex,
.leafdragger-preview .d-flex {
    display: flex !important;
}

.page-content-wrapper .flex-column,
.leafdragger-preview .flex-column {
    flex-direction: column !important;
}

.page-content-wrapper .align-items-center,
.leafdragger-preview .align-items-center {
    align-items: center !important;
}

.page-content-wrapper .justify-content-start,
.leafdragger-preview .justify-content-start {
    justify-content: flex-start !important;
}

.page-content-wrapper .justify-content-center,
.leafdragger-preview .justify-content-center {
    justify-content: center !important;
}

.page-content-wrapper .justify-content-end,
.leafdragger-preview .justify-content-end {
    justify-content: flex-end !important;
}

.page-content-wrapper .w-100,
.leafdragger-preview .w-100 {
    width: 100% !important;
}

.page-content-wrapper .h-100,
.leafdragger-preview .h-100 {
    height: 100% !important;
}

.page-content-wrapper .mt-auto,
.leafdragger-preview .mt-auto {
    margin-top: auto !important;
}

.page-content-wrapper .list-unstyled,
.leafdragger-preview .list-unstyled {
    list-style: none;
    padding-inline-start: 0;
    margin-bottom: 0;
}

.row-component {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 15px;
}

.column-component {
    padding: 0 15px;
    margin-bottom: 10px;
    position: relative;
}

.col {
    flex: 1 0 0%;
}

.col-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-sm-3 { flex: 0 0 auto; width: 25%; }
    .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-sm-9 { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-first { order: -1; }
.order-last { order: 9999; }

.section-component {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}

.section-full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.section-full-width-stretched {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.icon-box {
    text-align: center;
}

.progress-bar-container {
    width: 100%;
}

.counter-component {
    text-align: center;
}

.scroll-scrollFadeIn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-scrollFadeIn.animate__animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-scrollSlideUp {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scrollSlideUp.animate__animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-scrollZoomIn {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-scrollZoomIn.animate__animated {
    opacity: 1;
    transform: scale(1);
}

.scroll-scrollRotate {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scrollRotate.animate__animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.animate__hover__pulse:hover {
    animation: pulse 1s infinite;
}

.animate__hover__bounce:hover {
    animation: bounce 1s infinite;
}

.animate__hover__shakeX:hover {
    animation: shakeX 1s infinite;
}

.animate__hover__tada:hover {
    animation: tada 1s infinite;
}

.animate__hover__wobble:hover {
    animation: wobble 1s infinite;
}

.stagger-staggerFadeIn {
    opacity: 0;
    animation-fill-mode: both;
}

.stagger-staggerSlideUp {
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: both;
}

.stagger-staggerScale {
    opacity: 0;
    transform: scale(0.8);
    animation-fill-mode: both;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes tada {
    0% { transform: scale(1) rotate(0deg); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn { animation-name: fadeIn; }
.animate__slideInLeft { animation-name: slideInLeft; }
.animate__slideInRight { animation-name: slideInRight; }
.animate__slideInUp { animation-name: slideInUp; }
.animate__slideInDown { animation-name: slideInDown; }
.animate__bounceIn { animation-name: bounceIn; }
.animate__zoomIn { animation-name: zoomIn; }
.animate__rotateIn { animation-name: rotateIn; }
.animate__flipInX { animation-name: flipInX; }
.animate__flipInY { animation-name: flipInY; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translate3d(-100%, 0, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideInRight {
    from { transform: translate3d(100%, 0, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideInUp {
    from { transform: translate3d(0, 100%, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideInDown {
    from { transform: translate3d(0, -100%, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(.3, .3, .3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(.9, .9, .9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(.97, .97, .97); }
    to { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale3d(.3, .3, .3); }
    50% { opacity: 1; }
}

@keyframes rotateIn {
    from { transform-origin: center; transform: rotate3d(0, 0, 1, -200deg); opacity: 0; }
    to { transform-origin: center; transform: none; opacity: 1; }
}

@keyframes flipInX {
    from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
    40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; }
    60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
    to { transform: perspective(400px); }
}

@keyframes flipInY {
    from { transform: perspective(400px) rotate3d(0, 1, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
    40% { transform: perspective(400px) rotate3d(0, 1, 0, -20deg); animation-timing-function: ease-in; }
    60% { transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }
    to { transform: perspective(400px); }
}

.component-content[data-hover="scale"]:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.component-content[data-hover="rotate"]:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.component-content[data-hover="shadow"]:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.component-content[data-hover="translateY"]:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .leafdragger-preview-component {
        padding: 10px;
    }
}
