/* ============================= */
/*        Blog Page Styles       */
/* ============================= */

/* Card Image Styling */
.card-img-top {
    height: 300px;
    object-fit: cover;
}

/* ============================= */
/*        Card Link Styles       */
/* ============================= */

/* Default Anchor State */
.card-link {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

/* Hover Effect */
.card-link:hover {
    cursor: pointer;
}

/* Selected (Active or Focused) Link */
.card-link:focus,
.cool-link.selected {
    text-decoration: underline;
    color: white;
}


/* ============================= */
/*       Ckeditor style       */
/* ============================= */

pre[class*="language-"] {
    position: relative;
    border-radius: 8px;
    padding-top: 40px;
    overflow: hidden;
}

/* Container for the code content to handle scrolling */
pre[class*="language-"] code {
    display: block;
    max-height: 300px;
    overflow-y: auto;
     padding-bottom: 15px;
    padding-right: 30px;
}

/* Style the copy button */
.copy-button {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.copy-button:hover {
    opacity: 1;
}

/* Style for the language label inside code blocks */
pre[class*="language-"] {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Add language label in the top-right corner */
pre[class*="language-"]::before {
    content: attr(class);
    position: absolute;
    top: 8px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 12px;
    padding: 5px;
    border-radius: 12px;
    text-transform: capitalize;
    font-family: Arial, sans-serif;
    opacity: 0.8;
}

