/* ============================================================
   Estone Article Pro Block — Multi-Section Article Builder CSS
   Full Article Layout (News, Tech Blog, Case Studies, Product Articles)
   ============================================================ */

.estone-article-pro {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #334155;
    line-height: 1.75;
}

.estone-article-pro *,
.estone-article-pro *::before,
.estone-article-pro *::after {
    box-sizing: border-box;
}

/* ---- Pro Label Badge ---- */
.eap-pro-label {
    background: #c61d23;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    margin-left: 6px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    text-transform: uppercase !important;
}

/* ---- Estone Screenshot Header Style ---- */
.eap-header-card {
    background: transparent;
    padding: 10px 0 0 0;
    margin-bottom: 16px;
}

.eap-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.eap-header-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.eap-header-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    background: #ffffff;
    transition: all 0.25s ease;
}

.eap-header-share-btn:hover {
    background: #0284c7;
    color: #ffffff !important;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.eap-header-main-h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ---- Classic Header Meta ---- */
.eap-header-meta {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0284c7;
    margin-bottom: 10px;
    display: inline-block;
}

.eap-main-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.eap-intro-box {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 28px 0;
    padding-left: 16px;
    border-left: 3px solid #c61d23;
}

/* ---- Headings ---- */
.eap-heading-h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 14px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.eap-heading-h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 22px 0 12px 0;
    line-height: 1.35;
}

.eap-heading-h4 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 18px 0 10px 0;
}

/* ---- Text & Multiple Paragraphs ---- */
.eap-text-block {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 20px;
}

.eap-text-block p {
    margin: 0 0 16px 0;
}

.eap-text-block p:last-child {
    margin-bottom: 0;
}

.eap-text-block a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.eap-text-block a:hover {
    color: #c61d23;
}

/* ---- Bullet Lists ---- */
.eap-bullet-list {
    margin: 0 0 20px 0;
    padding-left: 22px;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.eap-bullet-list li {
    margin-bottom: 8px;
}

.eap-bullet-list a {
    color: #0284c7;
    text-decoration: underline;
}

/* ---- Full Width / Centered Images ---- */
.eap-full-image-wrap {
    margin: 28px 0;
    text-align: center;
}

.eap-full-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

.eap-image-caption {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* ---- Side by Side (Image + Text) ---- */
.eap-side-by-side {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 32px 0;
}

.eap-side-by-side.pos-left {
    flex-direction: row-reverse;
}

.eap-sbs-image {
    flex-shrink: 0;
}

.eap-sbs-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.eap-sbs-content {
    flex: 1 1 0;
    min-width: 0;
}

/* ---- Multi-Type Grid Layouts ---- */
.eap-grid-container {
    display: grid;
    margin: 32px 0;
    width: 100%;
}

.eap-grid-container.split-50-50 { grid-template-columns: repeat(2, 1fr); }
.eap-grid-container.split-60-40 { grid-template-columns: 1.5fr 1fr; }
.eap-grid-container.split-40-60 { grid-template-columns: 1fr 1.5fr; }
.eap-grid-container.split-33-33-33 { grid-template-columns: repeat(3, 1fr); }
.eap-grid-container.split-25-50-25 { grid-template-columns: 1fr 2fr 1fr; }
.eap-grid-container.split-25-25-25-25 { grid-template-columns: repeat(4, 1fr); }
.eap-grid-container.split-6-cols { grid-template-columns: repeat(6, 1fr); }

.eap-grid-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eap-grid-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.eap-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.eap-grid-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 14px;
}

.eap-grid-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
}

.eap-grid-card-subtitle {
    font-size: 12.5px;
    font-weight: 700;
    color: #c61d23;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.eap-grid-card-body {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ---- Icon / Feature Grid ---- */
.eap-icon-grid-wrap {
    margin: 36px 0;
}

.eap-icon-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.eap-icon-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.eap-icon-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.eap-icon-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.eap-icon-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.eap-icon-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eap-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.eap-icon-card-icon {
    font-size: 28px;
    color: #c61d23;
    margin-bottom: 10px;
    line-height: 1;
}

.eap-icon-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.eap-icon-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

/* ---- Callout / Highlight Box ---- */
.eap-callout-box {
    background: #eff6ff;
    border-left: 4px solid #0284c7;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.eap-callout-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e40af;
    margin-bottom: 6px;
}

.eap-callout-body {
    font-size: 14.5px;
    color: #1e3a8a;
    line-height: 1.6;
}

/* ---- Call To Action (CTA) Banner ---- */
.eap-cta-banner {
    background: #c61d23;
    color: #ffffff;
    padding: 40px 28px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(198, 29, 35, 0.25);
}

.eap-cta-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.eap-cta-subtitle {
    font-size: 15px;
    opacity: 0.92;
    max-width: 650px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

.eap-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #c61d23 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.eap-cta-btn:hover {
    background: #0f172a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* ---- Editor Canvas Action Toolbar ---- */
.eap-editor-section-wrapper {
    position: relative;
    border: 1px dashed transparent;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.eap-editor-section-wrapper:hover {
    border-color: #cbd5e1;
    background-color: rgba(248, 250, 252, 0.6);
}

.eap-editor-section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e293b;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

.eap-editor-section-wrapper:hover .eap-editor-section-toolbar {
    opacity: 1;
}

.eap-editor-toolbar-actions {
    display: flex;
    gap: 4px;
}

.eap-editor-toolbar-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.eap-editor-toolbar-btn:hover {
    background: rgba(255,255,255,0.3);
}

.eap-editor-add-section-bar {
    margin-top: 24px;
    padding: 20px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
}

.eap-add-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    /* Article body is capped at 1240px; below that it spans the full viewport,
       so it needs its own side gutter or text runs edge to edge. */
    .estone-article-pro { padding-left: 32px !important; padding-right: 32px !important; }
    .eap-main-title { font-size: 30px !important; }
    .eap-header-main-h1 { font-size: 28px !important; }
    .eap-heading-h2 { font-size: 22px !important; }
    .eap-heading-h3 { font-size: 19px !important; }
    .eap-icon-grid.cols-4,
    .eap-icon-grid.cols-6 { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .estone-article-pro { padding-left: 24px !important; padding-right: 24px !important; }
    .eap-main-title,
    .eap-header-main-h1 { font-size: 24px !important; }
    .eap-heading-h2 { font-size: 19px !important; }
    .eap-heading-h3 { font-size: 18px !important; }
    .eap-cta-title { font-size: 20px !important; }
    .eap-header-card { padding: 18px 20px !important; }
    .eap-side-by-side { flex-direction: column !important; }
    .eap-side-by-side .eap-sbs-image { width: 100% !important; }
    .eap-grid-container { grid-template-columns: 1fr !important; }
    .eap-icon-grid.cols-3,
    .eap-icon-grid.cols-4,
    .eap-icon-grid.cols-6 { grid-template-columns: 1fr !important; }
    .eap-cta-box { padding: 24px 20px !important; }
}

@media (max-width: 480px) {
    .estone-article-pro { padding-left: 16px !important; padding-right: 16px !important; }
    /* Header card carries its own inline padding on some pages - neutralise it so
       the gutter above is the single source of truth. */
    .eap-header-card { padding-left: 0 !important; padding-right: 0 !important; }
    .eap-main-title,
    .eap-header-main-h1 { font-size: 21px !important; line-height: 1.25 !important; }
    .eap-heading-h2 { font-size: 18px !important; }
    .eap-heading-h3 { font-size: 16.5px !important; }
    .eap-heading-h4 { font-size: 15px !important; }
    .eap-cta-title { font-size: 18px !important; }
    .eap-text-block { font-size: 14px !important; line-height: 1.65 !important; }
    .eap-icon-grid { grid-template-columns: 1fr !important; }
    .eap-cta-box { padding: 20px 16px !important; }
    .eap-cta-btn { width: 100% !important; text-align: center !important; }
}


