/* VARO CMS Page Builder Sections */
.page-builder-section{padding:64px 0;background:#fff}.page-builder-section:nth-child(even){background:#fff8f5}.page-builder-card{background:#fff;border:1px solid rgba(215,25,32,.12);border-radius:26px;box-shadow:0 14px 34px rgba(120,28,34,.10);overflow:hidden}.page-builder-body{padding:34px}.page-builder-title{font-size:34px;line-height:1.15;color:#20232a;margin:0 0 18px;font-weight:800}.editor-content{color:#41464f;font-size:16px;line-height:1.85}.editor-content p{margin-bottom:14px}.editor-content ul,.editor-content ol{padding-left:24px;margin-bottom:18px}.editor-content h2,.editor-content h3,.editor-content h4{color:#d71920;margin:24px 0 12px}.section-image{width:100%;border-radius:24px;box-shadow:0 14px 34px rgba(120,28,34,.10)}.section-image-full{width:100%;object-fit:cover;border-radius:26px}.section-two-col{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}.section-two-col.image-right .section-image-wrap{order:2}.section-cta{background:linear-gradient(135deg,#ef3340,#8f0a14);color:#fff;border-radius:30px;padding:46px;box-shadow:0 18px 42px rgba(80,6,12,.20)}.section-cta .page-builder-title,.section-cta .editor-content{color:#fff}.section-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.section-gallery img{width:100%;height:240px;object-fit:cover;border-radius:20px}.section-button{margin-top:20px}@media(max-width:920px){.section-two-col{grid-template-columns:1fr}.section-two-col.image-right .section-image-wrap{order:0}.section-gallery{grid-template-columns:1fr 1fr}.page-builder-title{font-size:28px}.page-builder-body{padding:24px}}@media(max-width:680px){.page-builder-section{padding:42px 0}.section-gallery{grid-template-columns:1fr}.section-cta{padding:30px}.section-gallery img{height:220px}}

/* =========================================================
   PDF Section
========================================================= */

.pdf-section-heading {
    margin-bottom: 20px;
    text-align: center;
}

.pdf-section-heading h2 {
    margin: 0;
    color: #222;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.35;
    font-weight: 700;
}

.pdf-section-content {
    width: min(100%, 1400px);
    margin: 0 auto 24px;
}

/* ขยายพื้นที่ Section ให้กว้างกว่าการ์ดทั่วไป */
.pdf-section .container {
    width: 94%;
    max-width: 1500px;
}

/* ป้องกัน page-builder-body จำกัดความกว้าง */
.pdf-section .page-builder-body {
    width: 100%;
    max-width: none;
}

/* PDF Viewer */
.pdf-viewer-wrapper {
    width: 100%;
    max-width: 1400px;
    height: 85vh;
    min-height: 750px;
    margin: 0 auto;

    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.pdf-viewer {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* Buttons */
.pdf-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.pdf-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Download card mode */
.pdf-download-card {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 26px;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fafafa;
}

.pdf-document-icon {
    display: flex;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    color: #d71920;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.pdf-download-info {
    min-width: 0;
    flex: 1;
}

.pdf-file-label {
    margin-bottom: 5px;
    color: #d71920;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pdf-file-title {
    color: #252525;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pdf-download-action {
    flex: 0 0 auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .pdf-section .container {
        width: 96%;
    }

    .pdf-viewer-wrapper {
        height: 78vh;
        min-height: 600px;
        border-radius: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .pdf-section .container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .pdf-section .page-builder-card {
        border-radius: 14px;
    }

    .pdf-section .page-builder-body {
        padding: 18px;
    }

    .pdf-section-heading {
        text-align: left;
        margin-bottom: 16px;
    }

    .pdf-viewer-wrapper {
        width: 100%;
        height: 68vh;
        min-height: 480px;
        border-radius: 10px;
    }

    .pdf-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .pdf-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .pdf-download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .pdf-download-action {
        width: 100%;
    }

    .pdf-download-action .btn {
        width: 100%;
        justify-content: center;
    }

    .pdf-document-icon {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .pdf-section .page-builder-body {
        padding: 14px;
    }

    .pdf-viewer-wrapper {
        height: 60vh;
        min-height: 420px;
    }
}
/* =========================================================
   Editor Content Links
========================================================= */

.editor-content a,
.page-builder-body a {
    color: #d71920;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.editor-content a:hover,
.page-builder-body a:hover {
    color: #b51218;
    text-decoration: underline;
}

.editor-content a:visited,
.page-builder-body a:visited {
    color: #d71920;
}

.editor-content a:active,
.page-builder-body a:active {
    color: #a50f14;
}