/* ============================================================
   TransLog v2.11 — WYSIWYG editor + About section
   Drop at: public/assets/css/about.css
   ============================================================ */

/* =========================
   WYSIWYG EDITOR (admin only)
   ========================= */
.wy-wrapper {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
    position: relative;
}
.wy-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 4;
}
.wy-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
    line-height: 1;
}
.wy-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}
.wy-btn:active { transform: scale(0.96); }
.wy-btn b, .wy-btn i, .wy-btn u, .wy-btn s { font-size: 0.92rem; }
.wy-sep {
    width: 1px;
    background: #cbd5e1;
    margin: 2px 4px;
    align-self: stretch;
}
.wy-area {
    min-height: 240px;
    padding: 16px 18px;
    outline: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #0f172a;
    background: #fff;
    border-radius: 0 0 8px 8px;
    /* Round 34 fix: contain horizontal overflow inside the editor.
       Long single-line shortcodes (e.g. [contact-form] with 17 attrs)
       used to force horizontal page scroll. Now they wrap visually
       inside the editor without changing the underlying data. The
       overflow-wrap rules ensure even unbroken strings (URLs,
       quoted attribute values) wrap at any character if needed. */
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    word-break: normal;
}
.wy-area::after {       /* clearfix for floats */
    content: '';
    display: table;
    clear: both;
}
.wy-area:focus { background: #fefefe; }
.wy-area p { margin: 0 0 12px; }
.wy-area p:last-child { margin-bottom: 0; }
.wy-area h2 { font-size: 1.5rem; margin: 16px 0 8px; color: #0B1D3A; font-weight: 700; }
.wy-area h3 { font-size: 1.2rem; margin: 14px 0 6px; color: #0B1D3A; font-weight: 600; }
.wy-area ul, .wy-area ol { margin: 0 0 12px 20px; padding-left: 20px; }
.wy-area li { margin-bottom: 4px; }
.wy-area a { color: #2563eb; text-decoration: underline; }
.wy-area img { max-width: 100%; height: auto; border-radius: 8px; cursor: pointer; transition: outline 0.15s; }
.wy-area img.wy-img-selected { outline: 3px solid #3b82f6; outline-offset: 2px; }
.wy-area blockquote {
    margin: 10px 0;
    padding: 8px 14px;
    border-left: 3px solid #cbd5e1;
    color: #475569;
    background: #f8fafc;
}
.wy-textarea {
    width: 100%;
    min-height: 240px;
    padding: 16px 18px;
    border: 0;
    outline: none;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.85rem;
    resize: vertical;
    background: #fff;
    color: #0f172a;
}

/* Font-size dropdown */
.wy-size-menu {
    position: absolute;
    top: 48px;
    left: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 10;
    padding: 4px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
}
.wy-size-menu button {
    padding: 8px 12px;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    color: #0f172a;
}
.wy-size-menu button:hover { background: #eff6ff; }

/* =========================
   PUBLIC — ABOUT section
   ========================= */
.about-section {
    padding: 72px 0;
    background: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.about-grid.image-right .about-visual { order: 2; }
.about-grid.image-right .about-content { order: 1; }

.about-visual {
    position: relative;
}
.about-image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    height: 620px;
    background: #e2e8f0;
}
.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background:
        repeating-linear-gradient(45deg, #e2e8f0 0 10px, #f1f5f9 10px 20px);
    font-size: 0.9rem;
}

.about-badge {
    position: absolute;
    left: 30px;
    bottom: 40px;
    padding: 22px 28px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    border-radius: 4px;
    /* angle effect optional — keep straight like screenshot */
    min-width: 200px;
}
.about-badge-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}
.about-badge-text {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.2;
}

.about-content { }
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.about-eyebrow-icon {
    color: #3b82f6;
    font-size: 1.1rem;
}
.about-title {
    margin: 0 0 20px;
    font-size: 2.2rem;
    color: #0B1D3A;
    font-weight: 700;
    line-height: 1.15;
}
.about-body {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}
.about-body p { margin: 0 0 14px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body h2 {
    font-size: 1.4rem;
    margin: 18px 0 8px;
    color: #0B1D3A;
}
.about-body h3 {
    font-size: 1.15rem;
    margin: 16px 0 6px;
    color: #0B1D3A;
}
.about-body ul, .about-body ol {
    margin: 0 0 14px 0;
    padding-left: 22px;
}
.about-body li { margin-bottom: 6px; }
.about-body a {
    color: #2563eb;
    text-decoration: underline;
}
.about-body strong { color: #0B1D3A; }
.about-body blockquote {
    margin: 14px 0;
    padding: 10px 16px;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    color: #334155;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-grid.image-right .about-visual,
    .about-grid.image-right .about-content { order: 0; }
    .about-title { font-size: 1.7rem; }
    .about-badge { left: 16px; bottom: 16px; padding: 16px 20px; }
    .about-badge-number { font-size: 2rem; }
}

/* =========================
   Admin — image preview
   ========================= */
.about-image-preview {
    display: inline-block;
    margin-top: 8px;
    max-width: 260px;
    max-height: 160px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
}
