

.page-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all .4s .2s ease-in-out;
    transition: all .4s .2s ease-in-out;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

[data-bs-theme="dark"] .page-loading {
    background-color: #121519;
}

.page-loading.active {
    opacity: 1;
    visibility: visible;
}

.page-loading-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
    opacity: 0;
}

.page-loading.active > .page-loading-inner {
    opacity: 1;
}

.page-loading-inner > span {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: #6f788b;
}

[data-bs-theme="dark"] .page-loading-inner > span {
    color: #fff;
    opacity: .6;
}

.page-spinner {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .75rem;
    vertical-align: text-bottom;
    background-color: #d7dde2;
    border-radius: 50%;
    opacity: 0;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
}

[data-bs-theme="dark"] .page-spinner {
    background-color: rgba(255,255,255,.25);
}

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

/* Summernote Custom Styles */
.note-editor.note-frame {
    border: 1px solid #dee2e6;
}

.note-editor .note-toolbar {
    padding: 5px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.note-editor .note-btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin: 0 5px 5px 0;
}

.note-editor .note-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    margin: 0;
}

.note-editor .note-btn.dropdown-toggle {
    padding-right: 0.75rem;
}

.note-editor .note-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 8rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

.note-editor .note-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.375rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.note-editor .note-dropdown-item:hover {
    color: #16181b;
    background-color: #f8f9fa;
}

.note-editor .note-current-style {
    display: inline-block;
    min-width: 4rem;
    font-size: 0.875rem;
}

.note-editor .note-icon-caret {
    display: inline-block;
    margin-left: 0.375rem;
    vertical-align: middle;
}

/* Fix dropdown alignment */
.note-editor .note-btn-group.show .note-dropdown-menu {
    display: block;
}

/* Ensure consistent button heights */
.note-editor .note-toolbar .note-btn-group > .note-btn {
    height: 32px;
}

/* CFC footer */
.wht-ftr {
    color: #fff !important;
}

.grey-ftr {
    color: #ffffff7a !important;
}

/* CFC blog - styles ported from the CFIF theme build (not present in cfc-theme) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    z-index: 1025;
}

@media (min-width: 992px) {
    .offcanvas-collapse {
        display: block;
        position: static;
        visibility: visible !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: none !important;
        background-color: transparent;
    }
    .offcanvas-collapse .offcanvas-header,
    .offcanvas-collapse .offcanvas-footer {
        display: none;
    }
    .offcanvas-collapse .offcanvas-body {
        padding: 0;
        overflow: initial;
    }
    .sidebar-enabled {
        position: relative;
    }
    .sidebar-enabled::before {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 40%;
        height: 100%;
        background-color: #f7f7fc;
        content: "";
    }
    .sidebar-enabled .content {
        position: relative;
        padding-left: 2.5rem;
        background-color: #fff;
        z-index: 2;
    }
    .sidebar-enabled.sidebar-end .content {
        padding-left: 0.9375rem;
        padding-right: 2.5rem;
    }
    .sidebar-enabled.sidebar-end::before {
        right: 0;
        left: auto;
    }
    .sidebar {
        position: relative;
        background-color: #f7f7fc;
        z-index: 5;
    }
    .sidebar-toggle {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .is-sidebar .sidebar-toggle {
        display: block;
    }
    .is-sidebar .btn-scroll-top {
        bottom: 3.25rem;
    }
}

.widget-title {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}
.widget ul, .widget ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.widget ul > li, .widget ol > li {
    display: block;
    margin-bottom: 0.375rem;
}
.widget ul > li:last-child, .widget ol > li:last-child {
    margin-bottom: 0;
}
.widget-link {
    display: block;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.25s ease-in-out;
    color: #5a5b75;
    font-weight: 500;
    text-decoration: none;
}
.widget-link:hover {
    color: #766df4;
    text-decoration: none;
}
.widget-link.active, .active > .widget-link {
    color: #766df4;
    pointer-events: none;
    cursor: default;
}
.widget-link > small, .widget-link > .small {
    display: inline-block;
    font-size: 75%;
    font-weight: normal;
}

.nav-heading,
.nav-heading a,
.nav-heading .nav-heading-title {
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border-color 0.25s ease-in-out;
    color: #4a4b65;
    font-weight: 600;
    text-decoration: none;
}
.nav-heading:hover, .nav-heading:hover .nav-heading-title,
.nav-heading a:hover,
.nav-heading a:hover .nav-heading-title,
.nav-heading .nav-heading-title:hover,
.nav-heading .nav-heading-title:hover .nav-heading-title {
    color: #766df4;
    text-decoration: none;
}
.nav-heading.active,
.nav-heading a.active,
.nav-heading .nav-heading-title.active {
    color: #766df4;
    pointer-events: none;
    cursor: default;
}

.meta-link {
    transition: color 0.2s ease-in-out;
    color: #797a95;
    vertical-align: middle;
    text-decoration: none;
}
.meta-link:not(.media) {
    display: inline-block;
}
.meta-link:hover {
    color: #4d4e64;
    text-decoration: none;
}
.meta-link > i {
    font-size: 1.25em;
    opacity: 0.75;
    vertical-align: middle;
}
.meta-divider {
    display: inline-block;
    width: 1px;
    height: 1rem;
    margin: 0 0.625rem;
    background-color: #dfdfec;
    vertical-align: middle;
}

.btn-social {
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid transparent;
    transition: border-color 0.25s ease-in-out, background-color 0.25s ease-in-out, color 0.25s ease-in-out;
    border-radius: 0.5rem;
    background-color: #f3f3f9;
    color: #6c6d89;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none !important;
}
.btn-social > i {
    line-height: 2.125rem;
}
.btn-social:hover {
    color: #fff;
}
.btn-social:focus {
    outline: none;
}
.btn-social:active {
    transition: none;
    box-shadow: none !important;
}
.bs-outline {
    border-color: #e5e5ef;
    background-color: transparent;
}
.bs-outline:hover {
    border-color: transparent;
}
.bs-facebook:hover { background-color: #3b5998; }
.bs-twitter:hover { background-color: #1da1f2; }
.bs-google:hover { background-color: #ea4335; }
.bs-email:hover { background-color: #5a5b75; }

.entry-nav {
    display: block;
    width: 100%;
    max-width: 16rem;
    text-decoration: none;
}
.entry-nav:hover {
    text-decoration: none;
}
.entry-nav .entry-nav-thumb {
    width: 4rem;
}
.entry-nav .entry-nav-thumb > img {
    display: block;
    width: 100%;
}

.gallery-item {
    display: block;
    position: relative;
    text-decoration: none !important;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.gallery-item > img {
    display: block;
    width: 100%;
}
.gallery-item::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(55, 56, 78, 0.55);
    content: "";
    opacity: 0;
    z-index: 1;
}
.gallery-item::after {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.875rem;
    height: 2.875rem;
    margin-top: -1.4375rem;
    margin-left: -1.4375rem;
    transform: scale(0.3);
    color: #fff;
    font-family: "around-icons";
    font-size: 2rem;
    text-align: center;
    line-height: 2.875rem;
    content: "\ea25";
    z-index: 5;
}
.gallery-item .gallery-caption {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem 0.5rem;
    transform: translateY(0.5rem);
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
    z-index: 5;
}
.gallery-item::after,
.gallery-item .gallery-caption {
    transition: all 0.3s ease-in-out;
    opacity: 0;
}
.gallery-item:hover::before, .gallery-item:hover::after,
.gallery-item:hover .gallery-caption {
    transform: none;
    opacity: 1;
}

.comment:not(.token) {
    margin-bottom: 2rem;
    padding-bottom: 1.875rem;
    border-bottom: 1px solid #e9e9f2;
    font-size: 0.9375rem;
}
.comment:not(.token) > .comment {
    position: relative;
    margin-top: 1.875rem;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    padding-left: 3.25rem;
    border-bottom: 0;
}
.comment:not(.token) > .comment::before {
    position: absolute;
    top: 0;
    left: 1.125rem;
    width: 0.25rem;
    height: 100%;
    background-color: #e9e9f2;
    content: "";
}
@media (max-width: 499.98px) {
    .comment:not(.token) > .comment {
        padding-left: 2.125rem;
    }
    .comment:not(.token) > .comment::before {
        left: 0;
    }
}

/* CFC blog page layout polish */
.sidebar-enabled {
    padding-top: 6rem; /* clear the fixed navbar */
}
@media (min-width: 992px) {
    .sidebar-enabled .content {
        padding-top: 2rem;
        min-height: 100vh;
    }
}

/* keep post images inside the column */
.sidebar-enabled .content img {
    max-width: 100%;
    height: auto;
}
.card .card-img-top img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* search box icon spacing */
.widget .input-group > .form-control {
    padding-left: 2.75rem;
}

/* Full-width table inside a card: keep top/bottom flush but inset the sides
   so its rules line up with the theme's .card-header/.card-footer edges
   (those are inset by --ar-card-spacer-x on each side). */
.cfc-card-table {
    padding: 0 var(--ar-card-spacer-x);
}
@media (max-width: 450px) {
    .cfc-card-table {
        padding: 0 calc(var(--ar-card-spacer-x) * 0.75);
    }
}
