/* Main two-column box */
.kemet-fb-box {
    margin: 30px auto;
    background: #ffffff;
    border-radius: 18px;
    border: 2px solid #1c8c3a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    direction: ltr;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header */
.kemet-fb-header {
    background: linear-gradient(135deg, #1c8c3a, #0b5f24);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kemet-fb-title-main {
    font-size: 18px;
    font-weight: 700;
}

.kemet-fb-title-sub {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Body: two columns */
.kemet-fb-body {
    display: flex;
    flex-wrap: wrap;
    background: #f4f8f5;
}

/* Left column: page feed */
.kemet-fb-left {
    flex: 0 0 50%;
    min-width: 320px;
    padding: 10px 12px 16px 16px;
    box-sizing: border-box;
}

.kemet-fb-left iframe {
    display: block;
    margin: 0 auto;
}

/* Right column: Facebook-style card */
.kemet-fb-right {
    flex: 0 0 50%;
    min-width: 320px;
    padding: 18px 22px;
    box-sizing: border-box;
}

/* Card container */
.kemet-fb-card {
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

/* Cover image */
.kemet-fb-card-cover {
    width: 100%;
    height: 110px;
    overflow: hidden;
    background: #e4e6eb;
}

.kemet-fb-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder cover if no image */
.kemet-fb-card-cover--placeholder {
    background: linear-gradient(135deg, #d7e9da, #b7d4bc);
}

/* Logo avatar */
.kemet-fb-card-logo-wrap {
    position: absolute;
    top: 62px;
    left: 24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.kemet-fb-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

/* Card content */
.kemet-fb-card-content {
    padding: 22px 18px 16px;
    box-sizing: border-box;
}

.kemet-fb-side-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.kemet-fb-side-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* RTL support for Arabic */
body.rtl .kemet-fb-side-title,
body.rtl .kemet-fb-side-text {
    direction: rtl;
    text-align: right;
}

/* Post image under text */
.kemet-fb-card-post-image {
    margin: 8px 0 10px;
    border-radius: 10px;
    overflow: hidden;
}

.kemet-fb-card-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Widgets area */
.kemet-fb-side-widgets > * {
    margin-bottom: 10px;
}

/* Mobile layout */
@media (max-width: 768px) {
    .kemet-fb-box {
        margin: 20px auto;
        border-radius: 14px;
    }

    .kemet-fb-left,
    .kemet-fb-right {
        flex: 1 1 100%;
        padding: 14px 16px;
    }

    .kemet-fb-side-title {
        font-size: 15px;
    }
}
