.cm-button-wrapper {
    text-align: center;
    margin: 20px 0;
}
.cm-view-clipping-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #106634;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.cm-view-clipping-btn:hover {
    background-color: #0c4d28;
}

.cm-custom-header {
    background-color: #f9f9f9;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.cm-custom-header a {
    color: #222;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    font-family: Arial, sans-serif;
}
.cm-custom-header a:hover {
    color: #0073aa; /* WordPress blue */
}


body { 
    margin: 0; 
    padding: 0; 
    background: #f0f0f0; 
    --cm-column-count: 2; 
}


.cm-page-wrapper {
    background-color: #ffffff;
    margin: 20px auto; /* Remove top and bottom margin */
    padding: 30px 25px;
    border: none;
    width: 920px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    position: relative;
    border-radius: 8px;
    box-sizing: border-box;
    min-height: 80vh;
}


.cm-page-wrapper::before {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 8px solid #2f4f4f; /* Green Border */
    border-radius: 10px;
    pointer-events: none;
    z-index: -1; 
}


.cm-clipping-style {
    background-color: #ffffff;
    padding: 15px;
    border: 3px solid #060b8b; /* Clip Border */
    font-family: 'JIMS', "Noto Sans Telugu", sans-serif !important; 
    font-weight: 400;
    color: #000000;
}

.cm-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.cm-header img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    image-rendering: -webkit-optimize-contrast;
}

.cm-details-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2F4F4F; 
    color: #fff;
    padding: 6px 10px;
    font-size: 18px;
    font-family: 'JIMS', sans-serif !important;
    width: 98%;
}

.cm-date, .cm-editor {
    display: inline-block; 
    white-space: nowrap;
    text-align: left;
    margin: 0;
}

.cm-clipping-title {
    font-family: 'Ramabhadra', sans-serif !important;
    font-weight: 500 !important;
    text-align: center;
    color: red !important;
    line-height: 1.2; 
    margin: 5px 0 20px 0;
    font-size: 50px; 
    word-break: break-word;
}

.cm-featured-image-wrapper {
    text-align: center; 
    margin: 0 15px 15px 0;
    border: 1px solid #ccc; 
    padding: 5px;
    box-sizing: border-box;
    float: left; 
    width: 100%; 
    max-width: 100%;
    height: auto; 
}
.cm-featured-image-wrapper img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto;
}

.cm-article-body {
    min-height: calc(5 * 1.2em);
    column-count: var(--cm-column-count); 
    column-gap: 30px;
    font-size: 20px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    color: #000000;
    margin-top: 15px;
}

.cm-article-body p {
    font-size: 20px;
    line-height: 1.2;
    word-spacing: 0.1px;
    letter-spacing: 0.1px;
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
    padding: 0;
    text-indent: 40px;
}

.cm-footer {
    border-top: 1px solid #aaa;
    margin-top: 10px;
    padding-top: 15px;
    text-align: center;
    font-size: 20px; 
    color: #666;
    column-span: all;
    -webkit-column-span: all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0px;
    position: relative;
}

.cm-footer .cm-printer-marks {
    display: flex;
    align-items: center;
}

.cm-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: 4px;
}


.cm-actions-float {
    position: fixed;
    display: flex; 
    flex-wrap: wrap; 
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.cm-actions-float select {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    margin: 5px;
    transition: background-color 0.2s;
    height: 42px; 
}

.cm-actions-float button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    margin: 5px;
    transition: background-color 0.2s;
}
.cm-actions-float button:hover {
     background-color: #000;
}


.cm-mobile-buttons .cm-actions-float {
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: center;
}

.cm-mobile-buttons .cm-actions-float select,
.cm-mobile-buttons .cm-actions-float button {
    padding: 15px 20px;
    font-size: 18px;
    margin: 5px;
    height: 50px;
    min-width: 120px;
    flex: 1;
    max-width: 150px;
}

.cm-mobile-buttons .cm-actions-float {
    flex-wrap: nowrap;
    overflow-x: auto;
}


@media print {
    .cm-custom-header { display: none !important; } /* NEW: Hide custom header */
    .cm-actions-float { display: none !important; }
    .cm-page-wrapper { 
        margin: 0 !important; 
        box-shadow: none !important;
        max-width: none !important;
        width: 100% !important;
        padding: 25px !important;
        border-radius: 0 !important;
    }
    .cm-page-wrapper::before { display: none !important; }
}