/* =============== DEFAULT ==============*/
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #f6fafe;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.td-none {
    text-decoration: none;
    color: inherit;
}

.hide {
    display: none;
}

.center {
    text-align: center;
}

.logout-link {
    color: #a73b1a;
}

hr {
    border: 1px solid #e2e9f3;
}

.inline-divider {
    color: #929aa5;
    margin: 0px 4px;
}

.responsive-table {
    overflow-x: auto;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
}

.input-control {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    color: #55595c;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.26);
    line-height: 1.6rem;
    padding: 0.75rem 1rem;
    border-radius: 3px;
    height: 52px;
    font-family: inherit;
}

textarea.input-control {
    height: unset !important;
}

.input-control-sm {
    height: 42px !important;
    display: inline-block;
}

.input-control:focus {
    outline: 0;
    border: 1px solid #59b3f0;
}

.bg-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============= BTN STYLES ==========*/
.btn {
    background-color: #D22C20;
    border: 1px solid transparent;
    padding: 0.65rem 1.5rem;
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
    font-size: 1rem;
    border-radius: 3px;
    white-space: nowrap;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease-in-out;
}

.btn:hover {
    background-color: #a0a0a0;
    color: #fff;
    transition: background-color 0.5s ease-in-out;
}

.small-btn {
    padding: 0.45rem 1.25rem;
}

.big-btn {
    min-width: 150px;
    padding: 0.85rem 1.5rem;
}

.long-btn {
    padding: 0.85rem 1.5rem;
    width: 100%;
}

.primary-btn {
    background-color: #D22C20;
    color: #fff;
}

.warning-btn {
    background-color: #d0901c;
    color: #fff;
}

.danger-btn {
    background-color: #d33530;
    color: #fff;
}

.primary-btn:hover {
    background-color: #0f5380;
    color: #fff;
}

.warning-btn:hover {
    background-color: #c58215;
    color: #fff;
}

.danger-btn:hover {
    background-color: #8a211d;
    color: #fff;
}

.btn .icon {
    font-size: 1.2rem;
    transform: translateY(3px);
}

.sm-col {
    width: 40px;
}

.link {
    color: #00a2ff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* =============== COMPONENTS ==============*/

/* ======= **** FLASH MESSAGES STYLES **** ======*/
.message {
    margin: 10px 0;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 3px;
}

.message .message-icon {
    font-size: 1.75rem;
    margin-right: 10px;
}

.message.success {
    border: 1px solid #00bc9d;
    background-color: #eaf8f5;
    color: #00bc9d;
}

.message.error {
    border: 1px solid #ff8887;
    background-color: #fddfde;
    color: #944949;
    /* color: #ff8887; */
}

.message.warning {
    border: 1px solid #d35c04;
    background-color: #fbefa8;
    color: #d35c04;
}

.form-errors {
    border: 1px solid #ff8887;
    background-color: #fddfde;
    color: #944949;
    padding: 16px 32px;
    border-radius: 3px;
}

/* ======= **** HEADER STYLES **** ======*/

header {
    width: 100%;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #dfe2ed;
    padding: 0 8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .menu-icon {
    font-size: 32px;
    display: none;
}

header .nav-overlay {
    display: none;
}

header nav {
    display: flex;
    align-items: center;
    height: inherit;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header .nav-menu {
    display: flex;
}

header .nav-menu .nav-item a {
    display: block;
    text-decoration: none;
    padding: 30px 16px;
    color: #383838;
}

header .nav-menu .nav-item a:hover {
    color: #60abf3;
}

header .nav-menu .nav-item .nav-icon {
    transform: translateY(4px);
    font-size: 16px;
}

header .nav-menu .nav-item {
    position: relative;
}

header .nav-menu .nav-item .dropdown {
    width: 190px;
    position: absolute;
    top: 80px;
    left: 0px;
    background-color: #fff;
    border-radius: 5px;
    -webkit-box-shadow: -1px -12px 20px 7px rgba(0, 0, 0, 0.11);
    -moz-box-shadow: -1px -12px 20px 7px rgba(0, 0, 0, 0.11);
    box-shadow: -1px -12px 20px 7px rgba(0, 0, 0, 0.11);
    opacity: 0;
    z-index: -5;
    transform: translateY(35px);
}

header .nav-menu .nav-item:hover .dropdown {
    opacity: 1;
    z-index: 5;
    transform: translateY(0);
    transition: all 0.25s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

header .nav-menu .nav-item .dropdown::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 15%;
    border-top: 10px solid transparent;
    border-bottom: 10px solid #fff;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

header .nav-menu .nav-item .dropdown li::after {
    content: '';
    display: block;
    margin: 0px 16px;
    border-bottom: 1px solid #cfeef3;
}

header .nav-menu .nav-item .dropdown li:last-child::after {
    display: none;
}

header .nav-menu .nav-item .dropdown a {
    padding: 16px;
}

.logo-wrapper {
    font-size: 1.4rem;
}

.logo-wrapper span {
    background-color: #3e86ac;
    padding: 0 5px;
    line-height: 0;
    border-radius: 2px;
    color: #fff;
}

/* ======= **** MEDIA QUERIES HEADER STYLES **** ======*/
@media only screen and (max-width: 1024px) {
    header {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 756px) {
    header .menu-icon {
        display: block;
    }

    header .nav-overlay.open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.45);
    }

    header .logo-wrapper {
        width: 100%;
        text-align: center;
    }

    header nav {
        /* To be styled */
        flex-grow: 1;
    }

    header .search-item,
    header .search-item input {
        width: 100%;
    }

    header .nav-menu {
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        height: 100%;
        width: 250px;
        background-color: #fff;
        overflow-y: scroll;
        z-index: 9999;
        padding: 50px 0;
        transform: translateX(-250px);
        transition: all 0.25s ease-in-out;
    }

    header .nav-menu.open {
        transform: translateX(0px);
        transition: all 0.25s ease-in-out;
    }

    header .nav-menu .nav-item a {
        padding: 16px;
    }

    header .nav-menu .nav-item {
        flex-direction: column;
    }

    header .nav-menu .nav-item .dropdown {
        width: 100%;
        position: static;
        box-shadow: none;
        opacity: 1;
        max-height: 0px;
        overflow: hidden;
        z-index: 1;
        transform: translateY(0px);
        transition: max-height 0.25s ease-in-out;
    }

    header .nav-menu .nav-item.active .dropdown {
        max-height: 300px;
        transition: max-height 0.25s ease-in-out;
    }

    header .nav-menu .nav-item .dropdown a {
        padding-left: 32px;
    }
}

/* ========= *** FEATURED POST SECTION *** ==========*/
.featured-post-form {
    padding: 32px 0;
}

.featured-post-form .input-control-sm {
    max-width: 400px;
    width: 100%;
}

/* ======= **** MEDIA QUERIES FEATURED POST STYLES **** ======*/
@media only screen and (max-width: 756px) {
    .featured-post-form .input-control-sm {
        margin: 8px 0;
    }
}

/* ======= **** TABLE ACTIONS COMPONENT STYLES **** ======*/
.admin-table .table-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 0px;
    align-items: center;
}

.admin-table .table-actions .table-filter-group {
    flex-basis: 50%;
}

.admin-table .table-actions .table-buttons {
    flex-basis: 50%;
    text-align: right;
}

/* ======= **** MEDIA QUERIES TABLE ACTIONS STYLES **** ======*/
@media only screen and (max-width: 756px) {

    .admin-table .table-actions .table-filter-group input,
    .admin-table .table-actions .table-filter-group select {
        min-width: 150px;
        margin: 8px 0;
    }

    .admin-table .table-actions .table-buttons {
        display: flex;
        flex-direction: column;
    }

    .admin-table .table-actions .table-buttons .btn {
        margin: 8px 0;
    }
}

/* ======= **** TABLES COMPONENT STYLES **** ======*/

.admin-table {
    margin: 0 auto;
}

.admin-table table {
    width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #e2e9f3;
    margin-top: 16px;
}

.admin-table table tr {
    border-top: 1px solid #e2e9f3;
}

.admin-table table th,
.admin-table table td {
    padding: 12px;
    text-align: left;
}

.admin-table table td a {
    text-decoration: none;
    color: #0a3654;
}

.admin-table table td a:hover {
    text-decoration: underline;
}

.admin-table .td-action-links {
    margin-top: 10px;
}

.admin-table .td-action-links a {
    font-size: 0.89rem;
}

.admin-table .td-action-links a.trash {
    color: #ff5e00;
}

.admin-table .td-action-links a.edit {
    color: #00a2ff;
}

/* ========= *** TABLE PAGINATION *** =============*/
.admin-table .pagination-links {
    display: flex;
    justify-content: flex-end;
}

.admin-table .pagination-links .link {
    font-size: 0.9rem;
    background-color: transparent;
    padding: 0.35rem 0.75rem;
    min-width: 35px;
    border: 1px solid #e2e9f3;
}

.admin-table .pagination-links .link.active {
    background-color: #8be7e9;
    color: #fff;
}

/* ========= *** TWIN TABLES *** =============*/
.twin-tables {
    display: flex;
    justify-content: space-between;
}

.twin-tables table {
    margin-top: 0;
}

.twin-tables table tbody tr:hover {
    cursor: default;
    border: 1px solid #8ce6d9;
    background-color: #eef5fe;
}

.twin-tables table tbody tr .close-icon {
    cursor: pointer;
    color: red;
}

.twin-tables table tbody tr:hover .close-icon {
    display: block;
}

.twin-tables table tbody tr .checkmark-icon {
    color: green;
}

.twin-tables table tbody tr.selected .checkmark-icon {
    display: block;
}

/* ========= *** ADMIN FORM *** =============*/
.admin-form {
    margin: 30px auto;
    background-color: #fff;
    border-radius: 5px;
}

.admin-form .text-editor {
    min-height: 130px;
}

.admin-form .text-editor p,
.admin-form .text-editor ul,
.admin-form .text-editor ol {
    font-size: 1.25rem;
    line-height: 2rem;
    color: #37383a;
    font-family: 'Libre Baskerville', serif;
}

.admin-form .text-editor ul,
.admin-form .text-editor ol {
    padding-left: 1rem;
}

.admin-form .text-editor p {
    margin-bottom: 24px;
}

.admin-form .text-editor .ql-editor {
    min-height: inherit;
}

.admin-form .post-details {
    display: flex;
}

.admin-form .post-details .select-topic-wrapper {
    flex-basis: 70%;
}

.admin-form .post-details .image-wrapper {
    flex-basis: 30%;
    padding: 25px 0px 0px 20px;
}

.admin-form .post-details .image-wrapper .image-btn {
    width: 100%;
    height: 52px;
    border-radius: 3px;
    border: 1px dashed lightgrey;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-form .post-details .image-wrapper .image-btn .image-outline {
    transform: translateY(2px);
}

.admin-form .avatar-input-group .change-avatar-btn {
    height: 100px;
    width: 100px;
    border: 1px solid transparent;
    border-radius: 50%;
    margin-bottom: 8px;
    outline: none;
    background-image: url(../images/avatar/avatar.jpg);
    background-size: cover;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.admin-form .avatar-input-group .change-avatar-btn span {
    opacity: 0;
}

.admin-form .avatar-input-group .change-avatar-btn:hover span {
    opacity: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    color: #fff;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.45);
    transition: opacity 0.125s ease-in-out;
}

/* ========= *** ADMIN LAYOUTS *** =============*/
.page-wrapper {
    display: flex;
    min-height: calc(100% - 80px);
}

.page-wrapper .sidebar {
    flex-basis: 18%;
    min-height: 100%;
    max-width: 260px;
    background-color: #0a3654;
}

.page-wrapper .sidebar .sidebar-author-mobile {
    display: none;
}

.page-wrapper .sidebar .list-menu {
    margin: 0;
    padding: 0;
    padding-top: 2rem;
    overflow: hidden;
}

.page-wrapper .sidebar .list-menu li a {
    text-decoration: none;
    color: #8aa3e9;
    display: block;
    padding: 15px 30px;
    position: relative;
}

.page-wrapper .sidebar .list-menu li a:hover {
    color: #fff;
}

.page-wrapper .sidebar .list-menu li a .menu-icon {
    margin-right: 12px;
    /* font-size: 20px; */
}

.page-wrapper .sidebar .list-menu li a .chevron-forward {
    position: absolute;
    right: 20px;
}

.page-wrapper .page-content {
    flex-basis: 82%;
    overflow-x: hidden;
}

/* ======= **** MEDIA QUERIES ADMIN LAYOUTS STYLES **** ======*/
@media only screen and (max-width: 756px) {
    .page-wrapper {
        display: block;
    }

    .page-wrapper .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 240px;
        z-index: 99999;
        overflow: hidden;
        transform: translateX(-240px);
        transition: transform 0.25s ease-in-out;
    }

    .page-wrapper .sidebar.open {
        transform: translateX(0px);
        transition: transform 0.25s ease-in-out;
    }

    .page-wrapper .sidebar .sidebar-author-mobile {
        display: block;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 76px;
    }

    .page-wrapper .sidebar .sidebar-author-mobile .avatar {
        height: 90px;
        width: 90px;
        border-radius: 50%;
    }

    .page-wrapper .sidebar .sidebar-author-mobile .author-name {
        color: #8aa3e9;
        margin: 8px auto;
    }
}

/* ========= *** RESPONSIVE BOXES OR CONTAINER *** ==========*/
.admin-container {
    max-width: 1000px;
    margin: 0px auto;
}

.sm-box {
    max-width: 500px;
    padding: 32px 20px;
    width: 100%;
}

.md-box {
    width: 75%;
    padding: 32px 20px;
}

.lg-box {
    padding: 32px 20px;
    width: 95%;
}

/* ======= **** MEDIA QUERIES RESPONSIVE BOXES OR CONTAINER STYLES **** ======*/
@media only screen and (max-width: 1024px) {

    .md-box,
    .lg-box {
        padding: 32px 10px;
        width: 96%;
    }

    .sm-box {
        padding: 32px 10px;
    }
}

/* =============== PAGES ==============*/

/* =============== ASSIGN PERMISSION PAGE ==============*/
.selected-role {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
}

.selected-role .description {
    font-size: 1.1rem;
    line-height: 1.4rem;
    }
