
<style>
	.blog_list.owl-carousel .owl-nav {
    display: flex;            /* Use flexbox */
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    gap: 20px;                /* Add space between the two arrows */
    margin-top: 50px;  
	padding-right: 100%;       /* Add space between the items and the nav */
}

.owl-dots {
    position: absolute;
    text-align: center;
    transform: translateY(-50%);
    left: 30%;
    bottom: -21px;
}

/* CKEditor Content Wrapper */
.ck-content {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-wrap: break-word;
}

/* 1. Fix Table Styling */
.ck-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}
.ck-content table td, 
.ck-content table th {
    border: 1px solid #ccc;
    padding: 10px;
    vertical-align: top;
}


/* 1. Reset image height to auto to prevent distortion */
.ck-content img {
    height: auto !important;   /* Overrides the inline aspect-ratio height calculation */
    max-width: 100%;           /* Ensures image never exceeds container width */
}

/* 2. Specifically target resized images to ensure they respect the width but keep ratio */
.ck-content .image_resized {
    height: auto !important;
}

/* 2. GENERAL IMAGE STYLING (Default Center) */
.ck-content .image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1em auto; /* This centers standard images */
}
.ck-content .image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* 3. RIGHT ALIGNED IMAGES (The fix for your issue) */
.ck-content .image-style-side,
.ck-content .image-style-align-right,
.ck-content .image-style-block-align-right {
    float: right;            /* Pushes image to right */
    margin-left: 20px;       /* Adds space between text and image */
    margin-bottom: 10px;
    margin-top: 5px;
    clear: none;             /* Allows text to wrap beside it */
    max-width: 50%;          /* Prevents it from being too big */
}

/* 4. LEFT ALIGNED IMAGES */
.ck-content .image-style-align-left,
.ck-content .image-style-block-align-left {
    float: left;             /* Pushes image to left */
    margin-right: 20px;      /* Adds space between text and image */
    margin-bottom: 10px;
    margin-top: 5px;
    clear: none;
    max-width: 50%;
}

/* --- 2. TABLE STYLING --- */
/* The wrapper figure CKEditor creates */
.ck-content figure.table {
    display: table;
    margin: 1em auto; /* Default: Centered */
    max-width: 100%;
}

/* The actual table */
.ck-content table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%; /* Fills the figure container */
    height: 100%;
    border: 1px solid #ccc;
}

/* Table Cells */
.ck-content table td, 
.ck-content table th {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: top; /* Default alignment */
}

/* --- 3. TABLE ALIGNMENT (Position of the table itself) --- */
/* Align Left */
.ck-content figure.table.align-left,
.ck-content figure.table[style*="float:left"] {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

/* Align Right */
.ck-content figure.table.align-right,
.ck-content figure.table[style*="float:right"] {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

/* 5. Fix Video Embeds - UPDATED */

/* Reset the figure container so it doesn't conflict with JS */
.ck-content figure.media {
    display: block;
    width: 100%;
    margin: 10px 0;
    clear: both;
    height: auto !important;      /* Removes the old height hack */
    padding-bottom: 0 !important; /* Removes the old padding hack */
    overflow: visible !important;
}

/* The wrapper created by JS handles the 16:9 Aspect Ratio */
.ck-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    background: #000; /* Black background makes it easier to spot */
    width: 100%;
}

/* The actual Video Player */
.ck-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
</style>