/* ===================================================================
   CMS Block Renderer — Public Site Styles
   Standalone CSS for all block types. No Tailwind dependency.
   Designed to work on any website.
   =================================================================== */

/* === Base / Reset === */
.blk-section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.3;
}

/* === Hero Block === */
.blk-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e293b;
    overflow: hidden;
}

.blk-hero--sm { min-height: 300px; }
.blk-hero--md { min-height: 450px; }
.blk-hero--lg { min-height: 600px; }
.blk-hero--full { min-height: 100vh; }

.blk-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blk-hero-overlay--light { background: rgba(255, 255, 255, 0.5); }
.blk-hero-overlay--dark { background: rgba(0, 0, 0, 0.45); }

.blk-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem 2rem;
    color: #ffffff;
}

.blk-hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blk-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    opacity: 0.9;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.blk-hero-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blk-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* === Text Block === */
.blk-text {
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-text--narrow { max-width: 640px; }
.blk-text--medium { max-width: 800px; }
.blk-text--full { max-width: 100%; }

.blk-text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.blk-text-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5em 0 0.5em; color: #1e293b; }
.blk-text-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5em 0 0.5em; color: #1e293b; }
.blk-text-content p { margin: 0 0 1em; }
.blk-text-content ul, .blk-text-content ol { padding-left: 1.5em; margin: 0 0 1em; }
.blk-text-content a { color: #2563eb; text-decoration: underline; }
.blk-text-content a:hover { color: #1d4ed8; }
.blk-text-content blockquote { border-left: 3px solid #e5e7eb; padding-left: 1em; margin: 1em 0; font-style: italic; color: #6b7280; }

/* === Image + Text Block === */
.blk-imgtext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-imgtext--reversed { direction: rtl; }
.blk-imgtext--reversed > * { direction: ltr; }

.blk-imgtext-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.blk-imgtext-img--sm img { max-height: 280px; }
.blk-imgtext-img--md img { max-height: 400px; }
.blk-imgtext-img--lg img { max-height: 520px; }

.blk-imgtext-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    border-radius: 12px;
}

.blk-imgtext-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

@media (max-width: 768px) {
    .blk-imgtext {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .blk-imgtext--reversed { direction: ltr; }
}

/* === Cards Grid Block === */
.blk-cards {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-cards-grid {
    display: grid;
    gap: 1.5rem;
}

.blk-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.blk-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.blk-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .blk-cards-grid--2, .blk-cards-grid--3, .blk-cards-grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blk-cards-grid--3, .blk-cards-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blk-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blk-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blk-card:hover .blk-card-img img { transform: scale(1.05); }

.blk-card-body { padding: 1.25rem; }
.blk-card-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 0 0 0.5rem; }
.blk-card-desc { font-size: 0.9rem; color: #6b7280; line-height: 1.6; margin: 0 0 0.75rem; }
.blk-card-link { font-size: 0.85rem; font-weight: 600; color: #2563eb; text-decoration: none; }
.blk-card-link:hover { text-decoration: underline; }

/* === CTA Banner Block === */
.blk-cta {
    padding: 4rem 2rem;
    text-align: center;
    color: #ffffff;
}

.blk-cta--dark-text { color: #1e293b; }
.blk-cta--dark-text .blk-cta-btn { background: #1e293b; color: #ffffff; }

.blk-cta-content { max-width: 700px; margin: 0 auto; }
.blk-cta-heading { font-size: 2rem; font-weight: 800; margin: 0 0 0.75rem; }
.blk-cta-desc { font-size: 1.1rem; opacity: 0.9; margin: 0 0 2rem; line-height: 1.6; }

.blk-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s, transform 0.2s;
}

.blk-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* === FAQ Accordion === */
.blk-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-faq-list { display: flex; flex-direction: column; gap: 0; }

.blk-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.blk-faq-item:first-child { border-top: 1px solid #e5e7eb; }

.blk-faq-question {
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blk-faq-question::-webkit-details-marker { display: none; }

.blk-faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.blk-faq-item[open] .blk-faq-question::after {
    content: '−';
}

.blk-faq-answer {
    padding: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}

/* === Testimonials === */
.blk-testimonials {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blk-testimonial {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin: 0;
}

.blk-testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    position: relative;
}

.blk-testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -0.6em;
    left: -0.2em;
    font-size: 3rem;
    color: #e5e7eb;
    font-family: Georgia, serif;
    line-height: 1;
}

.blk-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blk-testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.blk-testimonial-author {
    font-weight: 700;
    font-style: normal;
    color: #1e293b;
    display: block;
    font-size: 0.9rem;
}

.blk-testimonial-role {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* === Embed Block === */
.blk-embed {
    margin: 0 auto;
    padding: 2rem;
}

.blk-embed--narrow { max-width: 640px; }
.blk-embed--medium { max-width: 900px; }
.blk-embed--full { max-width: 100%; padding: 0; }

.blk-embed-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

.blk-embed--16-9 { padding-bottom: 56.25%; }
.blk-embed--4-3 { padding-bottom: 75%; }
.blk-embed--1-1 { padding-bottom: 100%; }

.blk-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === Contact Form === */
.blk-contact {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-contact-desc {
    text-align: center;
    color: #6b7280;
    margin: -1rem 0 2rem;
    font-size: 1rem;
}

.blk-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .blk-form-row { grid-template-columns: 1fr; }
}

.blk-form-group { display: flex; flex-direction: column; }
.blk-form-label { font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.blk-required { color: #ef4444; }

.blk-form-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
    background: #ffffff;
}

.blk-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.blk-form-textarea { resize: vertical; min-height: 120px; }

.blk-form-submit {
    padding: 14px 32px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    align-self: flex-start;
}

.blk-form-submit:hover { background: #1d4ed8; transform: translateY(-1px); }
.blk-form-submit:active { transform: translateY(0); }
.blk-form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* === Gallery Block === */
.blk-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-gallery-grid {
    display: grid;
    gap: 0.75rem;
}

.blk-gallery-cols--2 { grid-template-columns: repeat(2, 1fr); }
.blk-gallery-cols--3 { grid-template-columns: repeat(3, 1fr); }
.blk-gallery-cols--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .blk-gallery-cols--2, .blk-gallery-cols--3, .blk-gallery-cols--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blk-gallery--masonry {
    columns: 3;
    column-gap: 0.75rem;
}

.blk-gallery--masonry .blk-gallery-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
}

.blk-gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.blk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.blk-gallery--grid .blk-gallery-item { aspect-ratio: 1; }

.blk-gallery-item:hover img { transform: scale(1.05); }

.blk-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.blk-gallery-item:hover .blk-gallery-caption { opacity: 1; }

/* === Map Block === */
.blk-map {
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-map--narrow { max-width: 640px; }
.blk-map--medium { max-width: 900px; }
.blk-map--full { max-width: 100%; padding: 2rem 0; }

.blk-map-desc {
    text-align: center;
    color: #6b7280;
    margin: -1rem 0 1.5rem;
    font-size: 1rem;
}

.blk-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.blk-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* === Pricing Block === */
.blk-pricing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blk-pricing-desc {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    margin: -1rem 0 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blk-pricing-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.blk-pricing-grid--2 { grid-template-columns: repeat(2, 1fr); }
.blk-pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }
.blk-pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .blk-pricing-grid--2, .blk-pricing-grid--3, .blk-pricing-grid--4 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.blk-pricing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blk-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.blk-pricing-card--highlighted {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 8px 24px rgba(59, 130, 246, 0.18);
    position: relative;
    transform: scale(1.03);
    z-index: 1;
}

.blk-pricing-card--highlighted:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 0 0 1px #3b82f6, 0 16px 40px rgba(59, 130, 246, 0.22);
}

.blk-pricing-card--highlighted::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.blk-pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.blk-pricing-name { font-size: 1.1rem; font-weight: 700; color: #64748b; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.blk-pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; }
.blk-pricing-amount { font-size: 3rem; font-weight: 800; color: #1e293b; line-height: 1; }
.blk-pricing-period { font-size: 0.9rem; color: #94a3b8; }

.blk-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.blk-pricing-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.9rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blk-pricing-features li::before {
    content: '\2713';
    color: #22c55e;
    font-weight: 700;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 50%;
    flex-shrink: 0;
}

.blk-pricing-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
}

.blk-pricing-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.blk-pricing-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.blk-pricing-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* === Team Grid Block === */
.blk-team {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blk-team-desc {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    margin: -1rem 0 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blk-team-grid {
    display: grid;
    gap: 2.5rem;
}

.blk-team-grid--2 { grid-template-columns: repeat(2, 1fr); }
.blk-team-grid--3 { grid-template-columns: repeat(3, 1fr); }
.blk-team-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .blk-team-grid--2, .blk-team-grid--3, .blk-team-grid--4 {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blk-team-grid--3, .blk-team-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blk-team-member {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    transition: background 0.2s, box-shadow 0.2s;
}

.blk-team--cards .blk-team-member {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blk-team--cards .blk-team-member:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blk-team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blk-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blk-team-member:hover .blk-team-photo img {
    transform: scale(1.05);
}

.blk-team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.blk-team-name { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 0 0 0.25rem; }
.blk-team-role { font-size: 0.85rem; color: #3b82f6; font-weight: 500; margin: 0 0 0.75rem; }
.blk-team-bio { font-size: 0.88rem; color: #6b7280; line-height: 1.6; margin: 0 0 0.75rem; }

.blk-team-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.blk-team-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.blk-team-social-link:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* === Timeline Block === */
.blk-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blk-timeline-intro {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    margin: -1rem 0 2.5rem;
}

.blk-timeline-track {
    position: relative;
    padding-left: 2.5rem;
}

.blk-timeline-track::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #e5e7eb);
    border-radius: 2px;
}

.blk-timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.blk-timeline-item:last-child { padding-bottom: 0; }

.blk-timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transition: background 0.2s, box-shadow 0.2s;
}

.blk-timeline-item:first-child .blk-timeline-marker {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.blk-timeline-content {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.blk-timeline-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.blk-timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.blk-timeline-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 0 0 0.4rem; }
.blk-timeline-desc { font-size: 0.9rem; color: #6b7280; line-height: 1.7; margin: 0; }

/* Alternating layout */
.blk-timeline--alternating .blk-timeline-track {
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

.blk-timeline--alternating .blk-timeline-track::before {
    left: 50%;
    transform: translateX(-50%);
}

.blk-timeline--alternating .blk-timeline-item {
    display: grid;
    grid-template-columns: 1fr 16px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.blk-timeline--alternating .blk-timeline-marker {
    position: static;
    grid-column: 2;
    margin-top: 6px;
}

.blk-timeline--alternating .blk-timeline-item--left .blk-timeline-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.blk-timeline--alternating .blk-timeline-item--right .blk-timeline-content {
    grid-column: 3;
}

@media (max-width: 768px) {
    .blk-timeline--alternating .blk-timeline-track { padding-left: 2.5rem; }
    .blk-timeline--alternating .blk-timeline-track::before { left: 7px; transform: none; }
    .blk-timeline--alternating .blk-timeline-item { display: block; }
    .blk-timeline--alternating .blk-timeline-marker { position: absolute; left: -2.5rem; }
    .blk-timeline--alternating .blk-timeline-item--left .blk-timeline-content { text-align: left; }
}

/* === Stats / Counter Block === */
.blk-stats {
    padding: 5rem 2rem;
    text-align: center;
}

.blk-stats--light .blk-section-heading,
.blk-stats--light .blk-stats-value { color: #ffffff; }
.blk-stats--light .blk-stats-label { color: rgba(255, 255, 255, 0.8); }

.blk-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blk-stats-item {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.blk-stats--cards .blk-stats-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blk-stats-item:hover { transform: translateY(-2px); }

.blk-stats-icon {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.blk-stats-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blk-stats-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* === Styled Divider Block === */
.blk-styled-divider {
    padding: 2rem;
    display: flex;
}

.blk-styled-divider--left { justify-content: flex-start; }
.blk-styled-divider--center { justify-content: center; }
.blk-styled-divider--right { justify-content: flex-end; }

.blk-divider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: inherit;
}

.blk-styled-divider-line {
    border: none;
    border-top-style: solid;
    margin: 0;
}

.blk-styled-divider--dashed { border-top-style: dashed; }
.blk-styled-divider--dotted { border-top-style: dotted; }
.blk-styled-divider--double { border-top-style: double; border-width: 3px; }

.blk-divider-ornament {
    font-size: 1rem;
    flex-shrink: 0;
}

.blk-divider-ornament--dot::before { content: '\25CF'; }
.blk-divider-ornament--diamond::before { content: '\25C6'; }
.blk-divider-ornament--star::before { content: '\2605'; }

/* === Code / HTML Embed Block === */
.blk-code-embed {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.blk-code-block {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blk-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

.blk-code-header::before {
    content: '';
    display: inline-flex;
    gap: 6px;
    width: 52px;
    background-image: radial-gradient(circle, #ef4444 5px, transparent 5px),
                      radial-gradient(circle, #eab308 5px, transparent 5px),
                      radial-gradient(circle, #22c55e 5px, transparent 5px);
    background-size: 16px 12px;
    background-position: 0 0, 16px 0, 32px 0;
    background-repeat: no-repeat;
    height: 12px;
}

.blk-code-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

.blk-code-lang {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    background: #334155;
    padding: 2px 8px;
    border-radius: 4px;
}

.blk-code-pre {
    padding: 1.5rem 1.25rem;
    margin: 0;
    overflow-x: auto;
}

.blk-code-pre code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.8;
    white-space: pre;
}

.blk-code-embed-content {
    /* Raw HTML embed — no wrapper styling */
}

/* === File Download Block === */
.blk-downloads {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-downloads-desc {
    text-align: center;
    color: #6b7280;
    margin: -1rem 0 1.5rem;
    font-size: 0.95rem;
}

.blk-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blk-download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.blk-download-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.blk-download-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
    color: #3b82f6;
    flex-shrink: 0;
}

.blk-download-icon--pdf { background: #fef2f2; color: #ef4444; }
.blk-download-icon--audio { background: #f0fdf4; color: #22c55e; }
.blk-download-icon--image { background: #faf5ff; color: #a855f7; }

.blk-download-info { display: flex; flex-direction: column; flex: 1; }
.blk-download-name { font-size: 0.95rem; font-weight: 600; color: #1e293b; }
.blk-download-size { font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }

.blk-download-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.blk-download-item:hover .blk-download-action {
    background: #eff6ff;
    color: #3b82f6;
}

/* === Audio Player Block === */
.blk-audio {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blk-audio-player {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.blk-audio--minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.blk-audio-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blk-audio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blk-audio-info { flex: 1; min-width: 0; }

.blk-audio-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin-bottom: 0.2rem; }
.blk-audio-artist { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }

.blk-audio-element {
    width: 100%;
    border-radius: 8px;
    height: 40px;
}

.blk-audio-placeholder {
    padding: 2.5rem 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.blk-audio-desc { font-size: 0.88rem; color: #6b7280; margin-top: 1rem; line-height: 1.6; }

@media (max-width: 500px) {
    .blk-audio-player { flex-direction: column; align-items: stretch; }
    .blk-audio-cover { width: 100%; height: 160px; }
}

/* === Spacer / Divider === */
.blk-spacer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blk-divider {
    width: 100%;
    max-width: 200px;
    border: none;
    border-top: 1px solid;
    margin: 0;
}

/* === Lightbox === */
.blk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: blk-fade-in 0.2s ease;
}

.blk-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blk-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
}

.blk-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

@keyframes blk-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Live Editor Block Selection === */
.ve-block-selected {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px;
    position: relative;
}
.ve-block-selected::after {
    content: attr(data-block-type);
    position: absolute;
    top: -1.5rem;
    left: 0;
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem 0.25rem 0 0;
    text-transform: capitalize;
    pointer-events: none;
    z-index: 100;
}

/* === Print Styles === */
@media print {
    .blk-hero { min-height: auto !important; page-break-inside: avoid; }
    .blk-hero-overlay { display: none; }
    .blk-hero-content { color: #000 !important; }
    .blk-lightbox { display: none !important; }
    .blk-form-submit { display: none; }
    .ve-block-selected { outline: none !important; }
    .ve-block-selected::after { display: none; }
}
