/*
Theme Name: Quadoria
Theme URI: https://quadoria.com/
Author: Quadoria
Author URI: https://quadoria.com/
Description: Custom WordPress theme for Quadoria Blog.
Version: 1.0.0
Text Domain: quadoria
*/


/* ==================================================
   WordPress Admin Bar
================================================== */

/* ==================================================
   PROFESSIONAL BLOG LISTING
================================================== */

.blog-listing-area {
    padding: 90px 0 100px;
    background: #ffffff;
}


/* ==================================================
   SECTION HEADING
================================================== */

.blog-listing-area .section-title {
    margin-bottom: 55px;
}

.blog-listing-area .section-title h1 {
    color: #111827;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.blog-listing-area .section-title p {
    max-width: 680px;
    margin: 0 auto;

    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}


/* ==================================================
   BLOG CARD
================================================== */

.blog-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    background: #ffffff;

    border: 1px solid #e9edf2;
    border-radius: 12px;

    overflow: hidden;

    /*
     * Very subtle professional shadow
     */
    box-shadow:
        0 2px 5px rgba(17, 24, 39, 0.03),
        0 8px 25px rgba(17, 24, 39, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* ==================================================
   CARD HOVER
================================================== */

.blog-card:hover {
    transform: translateY(-6px);

    border-color: #dfe5eb;

    box-shadow:
        0 4px 10px rgba(17, 24, 39, 0.04),
        0 18px 45px rgba(17, 24, 39, 0.10);
}


/* ==================================================
   CARD IMAGE
================================================== */

.blog-card-image {
    position: relative;

    width: 100%;
    height: 230px;

    overflow: hidden;

    background: #f3f4f6;
}


/*
 * Image link
 */

.blog-card-image a {
    display: block;

    width: 100%;
    height: 100%;
}


/*
 * Image
 */

.blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


/*
 * Image hover
 */

.blog-card:hover .blog-card-image img {
    transform: scale(1.045);
}


/* ==================================================
   CARD CONTENT
================================================== */

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 26px 27px 28px;
}


/* ==================================================
   CATEGORY
================================================== */

.blog-card-category {
    margin-bottom: 11px;
}

.blog-card-category a {
    display: inline-block;

    color: #ff5e14;

    font-size: 13px;
    font-weight: 600;

    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.4px;

    text-decoration: none;

    transition: color 0.25s ease;
}

.blog-card-category a:hover {
    color: #111827;
}


/* ==================================================
   BLOG TITLE
================================================== */

.blog-card-title {
    margin: 0 0 13px;

    min-height: 59px;

    font-size: 21px;
    font-weight: 600;

    line-height: 1.4;
}

.blog-card-title a {
    color: #111827;

    text-decoration: none;

    transition: color 0.25s ease;
}

.blog-card-title a:hover {
    color: #ff5e14;
}


/* ==================================================
   DATE
================================================== */

.blog-card-date {
    display: flex;
    align-items: center;

    margin-bottom: 15px;

    color: #8a94a6;

    font-size: 13px;
    font-weight: 400;
}

.blog-card-date i {
    margin-right: 7px;

    color: #9aa4b2;

    font-size: 13px;
}


/* ==================================================
   EXCERPT
================================================== */

.blog-card-excerpt {
    margin-bottom: 23px;

    color: #667085;

    font-size: 14.5px;
    font-weight: 400;

    line-height: 1.75;

    /*
     * Maximum 3 lines
     * Keeps cards equal height
     */
    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==================================================
   READ MORE
================================================== */

.blog-card-button {
    margin-top: auto;

    padding-top: 3px;
}

.blog-card-button a {
    display: inline-flex;
    align-items: center;

    color: #111827;

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition: color 0.25s ease;
}

.blog-card-button a i {
    margin-left: 8px;

    font-size: 14px;

    transition:
        transform 0.25s ease,
        margin-left 0.25s ease;
}

.blog-card-button a:hover {
    color: #ff5e14;
}

.blog-card-button a:hover i {
    margin-left: 11px;

    transform: translateX(2px);
}


/* ==================================================
   CARD GRID SPACING
================================================== */

.blog-listing-area .row {
    row-gap: 30px;
}


/*
 * Bootstrap columns already handle
 * responsive widths.
 */

.blog-listing-area .col-lg-4 {
    display: flex;
}


/* ==================================================
   PAGINATION
================================================== */

.blog-pagination {
    margin-top: 60px;
}

.blog-pagination ul {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 13px;

    color: #475467;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: all 0.25s ease;
}

.blog-pagination .page-numbers:hover {
    color: #ff5e14;

    border-color: #ff5e14;

    background: #fffaf7;
}

.blog-pagination .page-numbers.current {
    color: #ffffff;

    background: #ff5e14;

    border-color: #ff5e14;

    box-shadow: 0 4px 12px rgba(255, 94, 20, 0.20);
}

.blog-pagination .prev,
.blog-pagination .next {
    padding: 0 17px;
}


/* ==================================================
   NO POSTS
================================================== */

.no-posts {
    padding: 70px 20px;

    text-align: center;
}

.no-posts h2 {
    color: #111827;

    font-size: 28px;
    font-weight: 600;

    margin-bottom: 10px;
}

.no-posts p {
    color: #667085;

    font-size: 15px;
}


/* ==================================================
   RESPONSIVE - TABLET
================================================== */

@media (max-width: 991px) {

    .blog-listing-area {
        padding: 70px 0 80px;
    }

    .blog-listing-area .section-title {
        margin-bottom: 45px;
    }

    .blog-listing-area .section-title h1 {
        font-size: 36px;
    }

    .blog-card-image {
        height: 225px;
    }

    .blog-card-content {
        padding: 24px;
    }

}


/* ==================================================
   RESPONSIVE - MOBILE
================================================== */

@media (max-width: 767px) {

    .blog-listing-area {
        padding: 55px 0 65px;
    }

    .blog-listing-area .section-title {
        margin-bottom: 35px;
    }

    .blog-listing-area .section-title h1 {
        font-size: 30px;
    }

    .blog-listing-area .section-title p {
        font-size: 15px;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-content {
        padding: 23px 22px 25px;
    }

    .blog-card-title {
        min-height: auto;

        font-size: 20px;
    }

    .blog-pagination {
        margin-top: 45px;
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 480px) {

    .blog-listing-area {
        padding: 45px 0 55px;
    }

    .blog-card-image {
        height: 205px;
    }

    .blog-card-content {
        padding: 21px 20px 23px;
    }

    .blog-card-title {
        font-size: 19px;
    }

    .blog-card-excerpt {
        font-size: 14px;
    }

    .blog-pagination .page-numbers {
        min-width: 38px;
        height: 38px;

        padding: 0 10px;
    }

}

/* ==================================================
   SINGLE BLOG - PROFESSIONAL DESIGN
================================================== */

.single-blog-content {
    padding: 75px 0 100px;
    background: #ffffff;
}


/* ==================================================
   ARTICLE
================================================== */

.single-blog-article {
    background: #ffffff;
}


/* ==================================================
   BREADCRUMB
================================================== */

.single-blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    color: #98a2b3;

    font-size: 13px;
}

.single-blog-breadcrumb a {
    color: #667085;
    text-decoration: none;
}

.single-blog-breadcrumb a:hover {
    color: #ff5e14;
}

.single-blog-breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 350px;
}


/* ==================================================
   CATEGORY
================================================== */

.single-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 15px;
}

.single-blog-categories a {
    display: inline-block;

    padding: 6px 11px;

    color: #ff5e14;
    background: #fff7f2;

    border: 1px solid #ffe3d4;
    border-radius: 5px;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .3px;

    text-decoration: none;
}


/* ==================================================
   TITLE
================================================== */

.single-blog-title {
    margin: 0 0 22px;

    color: #101828;

    font-size: 44px;
    font-weight: 700;

    line-height: 1.2;
}


/* ==================================================
   META
================================================== */

.single-blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 25px;
    margin-bottom: 28px;

    border-bottom: 1px solid #eaecf0;
}

.single-blog-author {
    display: flex;
    align-items: center;

    gap: 10px;
}

.single-blog-author-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;
}

.single-blog-author .meta-label {
    display: block;

    color: #98a2b3;

    font-size: 12px;
}

.single-blog-author a {
    color: #344054;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.single-blog-author a:hover {
    color: #ff5e14;
}

.single-blog-meta-info {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    color: #667085;

    font-size: 13px;
}

.single-blog-meta-info i {
    margin-right: 5px;

    color: #98a2b3;
}


/* ==================================================
   FEATURED IMAGE
================================================== */

.single-blog-image {
    margin: 0 0 35px;

    overflow: hidden;

    border-radius: 10px;

    background: #f2f4f7;

    border: 1px solid #eaecf0;
}

.single-blog-image img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}


/* ==================================================
   ARTICLE CONTENT
================================================== */

.single-blog-content-area {
    color: #344054;

    font-size: 17px;
    line-height: 1.85;
}

.single-blog-content-area p {
    margin-bottom: 22px;
}

.single-blog-content-area h2 {
    margin: 40px 0 18px;

    color: #101828;

    font-size: 30px;
    line-height: 1.35;
}

.single-blog-content-area h3 {
    margin: 32px 0 15px;

    color: #101828;

    font-size: 24px;
    line-height: 1.4;
}

.single-blog-content-area h4 {
    margin: 28px 0 13px;

    color: #101828;

    font-size: 20px;
}

.single-blog-content-area a {
    color: #ff5e14;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-blog-content-area a:hover {
    color: #d94705;
}

.single-blog-content-area img {
    max-width: 100%;
    height: auto;

    border-radius: 8px;
}

.single-blog-content-area figure {
    margin: 30px 0;
}

.single-blog-content-area ul,
.single-blog-content-area ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.single-blog-content-area li {
    margin-bottom: 8px;
}

.single-blog-content-area blockquote {
    margin: 30px 0;
    padding: 22px 25px;

    color: #475467;

    background: #f9fafb;

    border-left: 4px solid #ff5e14;
    border-radius: 0 8px 8px 0;
}

.single-blog-content-area pre {
    overflow-x: auto;

    margin: 30px 0;
    padding: 20px;

    color: #e5e7eb;
    background: #111827;

    border-radius: 8px;

    font-size: 14px;
    line-height: 1.7;
}

.single-blog-content-area code {
    font-family: monospace;
}


/* ==================================================
   TABLE
================================================== */

.single-blog-content-area table {
    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;
}

.single-blog-content-area th,
.single-blog-content-area td {
    padding: 12px 15px;

    border: 1px solid #eaecf0;

    text-align: left;
}

.single-blog-content-area th {
    color: #101828;

    background: #f9fafb;

    font-weight: 600;
}


/* ==================================================
   BLOG TAGS
================================================== */

.blog-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid #eaecf0;
}

.blog-tags-title {
    color: #344054;

    font-size: 14px;
    font-weight: 600;
}

.blog-tag-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.blog-tag-list a {
    padding: 6px 11px;

    color: #667085;

    background: #f9fafb;

    border: 1px solid #eaecf0;
    border-radius: 5px;

    font-size: 13px;

    text-decoration: none;

    transition: all .2s ease;
}

.blog-tag-list a:hover {
    color: #ff5e14;

    border-color: #ff5e14;

    background: #fffaf7;
}


/* ==================================================
   PREVIOUS / NEXT
================================================== */

.blog-navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-top: 45px;
    padding-top: 30px;

    border-top: 1px solid #eaecf0;
}

.blog-navigation-item {
    min-width: 0;
}

.blog-navigation-item.next {
    text-align: right;
}

.blog-navigation-item span {
    display: block;

    margin-bottom: 8px;

    color: #98a2b3;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .4px;
}

.blog-navigation-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #344054;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;

    text-decoration: none;
}

.blog-navigation-item a:hover {
    color: #ff5e14;
}


/* ==================================================
   SIDEBAR
================================================== */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding: 24px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 10px;

    box-shadow:
        0 2px 5px rgba(16, 24, 40, .03),
        0 8px 25px rgba(16, 24, 40, .04);
}

.sidebar-widget-title {
    margin: 0 0 20px;

    padding-bottom: 14px;

    color: #101828;

    border-bottom: 1px solid #eaecf0;

    font-size: 19px;
    font-weight: 600;
}


/* ==================================================
   LATEST POSTS
================================================== */

.latest-posts-list {
    display: flex;
    flex-direction: column;
}

.latest-post-item {
    display: flex;

    gap: 13px;

    padding: 13px 0;

    border-bottom: 1px solid #f0f2f5;
}

.latest-post-item:first-child {
    padding-top: 0;
}

.latest-post-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.latest-post-image {
    flex: 0 0 78px;

    width: 78px;
    height: 65px;

    overflow: hidden;

    border-radius: 6px;

    background: #f2f4f7;
}

.latest-post-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.latest-post-image:hover img {
    transform: scale(1.05);
}

.latest-post-content {
    min-width: 0;
}

.latest-post-content h4 {
    margin: 0 0 7px;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.45;
}

.latest-post-content h4 a {
    display: -webkit-box;

    overflow: hidden;

    color: #344054;

    text-decoration: none;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-post-content h4 a:hover {
    color: #ff5e14;
}

.latest-post-content span {
    color: #98a2b3;

    font-size: 11px;
}


/* ==================================================
   CATEGORY LIST
================================================== */

.sidebar-category-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.sidebar-category-list li {
    border-bottom: 1px solid #f0f2f5;
}

.sidebar-category-list li:last-child {
    border-bottom: 0;
}

.sidebar-category-list li a {
    display: flex;
    justify-content: space-between;

    padding: 11px 0;

    color: #475467;

    font-size: 14px;

    text-decoration: none;
}

.sidebar-category-list li a:hover {
    color: #ff5e14;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 991px) {

    .single-blog-content {
        padding: 60px 0 80px;
    }

    .single-blog-title {
        font-size: 38px;
    }

    .blog-sidebar {
        position: static;

        margin-top: 50px;
    }

}


@media (max-width: 767px) {

    .single-blog-content {
        padding: 45px 0 60px;
    }

    .single-blog-title {
        font-size: 30px;
    }

    .single-blog-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .single-blog-meta-info {
        gap: 10px;
    }

    .single-blog-content-area {
        font-size: 16px;
        line-height: 1.8;
    }

    .single-blog-content-area h2 {
        font-size: 26px;
    }

    .single-blog-content-area h3 {
        font-size: 22px;
    }

    .blog-navigation {
        grid-template-columns: 1fr;
    }

    .blog-navigation-item.next {
        text-align: left;
    }

    .sidebar-widget {
        padding: 20px;
    }

}
