/*
Theme Name:   Astra Child
Theme URI:    https://yoursite.com
Description:  Child theme for Astra
Author:       Your Name
Author URI:   https://yoursite.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* Add your custom CSS below */
#main h1.entry-title {
    display: none !important;
}

body,
.page-title {
    font-family: "Nunito", Sans-serif !important;
}

/* Category Filter Pills */
.nubirth-category-filter {
    margin: 30px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-pills {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    padding: 20px 0;
    min-width: min-content;
}

.category-pill {
    background-color: #FFFFFF;
    font-family: "Nunito", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    fill: #363434;
    color: #363434;
    border: 1px solid #0000001A;
    border-radius: 50px 50px 50px 50px;
    padding: 15px 30px 15px 30px;
    white-space: nowrap;
}

.category-pill:hover {
    border: 1px solid #CC6CE6;
    background: #CC6CE6;
    color: white;
}


.category-pill.active {
    background: #CC6CE6;
    color: white;
    border: 1px solid #CC6CE6;
    box-shadow: 0px 16.62px 24.93px -4.99px #0000001A;
}

/* Hide scrollbar but keep functionality */
.nubirth-category-filter::-webkit-scrollbar {
    height: 5px;
}

.nubirth-category-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.nubirth-category-filter::-webkit-scrollbar-thumb {
    background: #CC6CE6;
    border-radius: 10px;
}

/* Featured image */
.post-featured-image img {
    border-radius: 15px;
    width: 100%;
    height: auto;
}

/* Post meta */
.post-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

/* Post content typography */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    color: #CC6CE6;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 28px;
}

.post-content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 22px;
}

.post-content p {
    margin-bottom: 15px;
}

/* Author box */
.author-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Related posts */
.related-posts {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Popular Tags Widget */
.popular-tags-widget {
    text-align: center;
}

.popular-tags-widget .widget-title {
    font-size: 18px;
    font-weight: 400;
    color: #0A0A0A;
    font-family: "Nunito", Sans-serif !important;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.tag-pill {
    background: #FFFFFF;
    color: #0A0A0A;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.27px solid #0000001A;
}

.tag-pill:hover {
    background: #CC6CE6;
    color: white;
    border-color: #CC6CE6;
    transform: translateY(-2px);
}

/* Badge and Reading Time Container */
.elementor-post__card {
    position: relative !important;
}

/* Parent flex container for badge and reading time */
.badge-meta-container {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    flex-wrap: wrap !important;
}

.elementor-post__badge {
    text-transform: uppercase !important;
    display: inline-block !important;
    margin-bottom: 0 !important;
}

.reading-time-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 0 !important;
    vertical-align: middle !important;
}

.reading-time-badge .meta-separator {
    color: #717182 !important;
    font-size: 17px !important;
}

.reading-time-badge .read-time {
    display: inline-flex !important;
    align-items: center !important;
    color: #717182 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.reading-time-badge .read-time i {
    margin-right: 5px !important;
    color: #CC6CE6 !important;
}

/* Author at Bottom (before Read More) */
.post-author-bottom {
    margin: 0 0 15px 0 !important;
}

.post-author-bottom .post-author {
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #717182 !important;
}

/* Hide injected meta from excerpt filter (we use hooks now) */
.nubirth-injected-meta {
    display: none !important;
}

/* Fail-safe: Handle tags injection */
.nubirth-injected-tags .post-tags-inline {
    padding: 0 !important;
    margin-bottom: 5px !important;
}

/* Hide duplicate elements if both hooks and filters fire */
.reading-time-badge+.nubirth-injected-meta,
.post-author-bottom+.nubirth-injected-meta {
    display: none !important;
}

.elementor-posts-container .nubirth-post-meta {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.post-author {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #717182 !important;
}

.meta-separator {
    color: #717182 !important;
    font-size: 17px !important;
}

.read-time {
    display: flex !important;
    align-items: center !important;
    color: #717182 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.read-time i {
    margin-right: 5px !important;
    color: #CC6CE6 !important;
}

.post-tags-inline,
.elementor-post__text .post-tags-inline,
.nubirth-injected-tags .post-tags-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 15px !important;
    padding: 0 15px 15px 15px !important;
}

.elementor-posts-container .post-tags-inline {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.post-tag {
    font-size: 15px !important;
    font-weight: 400;
    background: linear-gradient(90deg, #EFF6FF 0%, #EEF2FF 100%);
    color: #CC6CE6 !important;
    padding: 5px 10px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #EFF6FF !important;
    line-height: 1.2 !important;
}

.post-tag:hover {
    background: #CC6CE6 !important;
    color: #fff !important;
}


.elementor-post__card {
    position: relative !important;
}

.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.ast-article-single {
    padding: 0 !important;
}

div#primary {
    margin: 0 !important;
}

.ast-article-single figure,
.ast-article-single img:not(figure img) {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

div#content {
    background: white;
}

/* Single Post Tags Wrapper (New UI) */
.single-post-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.single-post-tags-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

a.single-post-tag {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(90deg, #EFF6FF 0%, #EEF2FF 100%);
    color: #CC6CE6;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-page-category .elementor-post-info li:last-child .elementor-post-info__item {
    background: #CC6CE633;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;

}

.single-page-category .elementor-post-info li:last-child .elementor-post-info__item a {
    font-size: 18px;
    font-weight: 400;
    color: #CC6CE6;
}

#single-post-content h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    color: #CC6CE6;
    font-size: 29px;
    margin-bottom: 50px;
}

ul,
li a {
    text-align: start;
    color: #717182;
    font-family: "Nunito", Sans-serif;
}

a:hover {
    color: #CC6CE6;
    text-decoration: none;

}

.services-box {
    background: linear-gradient(131.14deg, #E6F6FE 9.91%, #F3F7F2 41.29%, #F6BAFC 72.67%) !important;
}

/* Default state — ALL slides hidden */
.slide-wrapper {
    opacity: 0;
    transform: translateY(80px);
    transition: transform 0.8s ease, opacity 0.6s ease;
}

/* ONLY active slide content visible */
.swiper-slide-active .slide-wrapper,
.swiper-slide-duplicate-active .slide-wrapper {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nubirth-category-filter {
        margin: 0px 0;
    }

    .elementor-posts-container {
        grid-template-columns: 1fr !important;
    }

    .nubirth-category-filter {
        margin: 0px 0;
    }

    #blog-list-wrapper .elementor-post__badge {
        margin: 0px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-top: 40px;
    }

    .post-content {
        font-size: 15px;
    }

    .badge-meta-container {
        padding: 0 20px;
    }

    .single-post-tags-list {
        flex-direction: column;
    }

    .single-page-category .elementor-post-info li:last-child .elementor-post-info__item a {
        font-size: 17px;
    }

}

.no-results .search-form {
    max-width: 100%;
}

.no-results .search-form label {
    display: flex;
}

/* No Results Search Form Styling */
.no-results-search-form .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    flex-direction: row;
}

input.search-submit {
    display: none;
}

.no-results-search-form .search-field {
    flex: 1;
    min-width: 250px;
    font-size: 15px;
    font-weight: 400;
    padding: 25px 35px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #0000001A;
    border-radius: 50px 0px 0px 50px;
    font-family: "Nunito", Sans-serif;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.no-results-search-form .search-field:focus {
    border-color: #CC6CE6;
    box-shadow: 0 0 0 3px rgba(204, 108, 230, 0.1);
}

.no-results-search-form .search-submit {
    background-color: #CC6CE6;
    /* Site Purple */
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Nunito", Sans-serif;
    /* Override any default button styles */
    min-width: auto;
    font-size: 15px;
    border-radius: 0px 50px 50px 0px;
}

.no-results-search-form .search-submit:hover {
    background-color: #b04bc5;
    box-shadow: 0 5px 15px rgba(204, 108, 230, 0.3);
}