/*
Theme Name: Astra Child - Flybuilds
Theme URI: https://www.flybuilds.com/
Description: Astra Child Theme for Flybuilds with custom blog templates and styles.
Author: Flybuilds
Author URI: https://www.flybuilds.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&family=Rubik:wght@400;500;600;700&display=swap');

/* Reset and Container for Single Blog */
.flybuilds-single-blog {
    font-family: 'Rubik', sans-serif;
    color: #374151;
    background-color: #f8fafc;
    width: 100%;
    padding-top: 0;
}

.flybuilds-single-blog * {
    box-sizing: border-box;
}

/* Hero & Breadcrumb Banner */
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px 0 20px 0;
    margin-bottom: 0rem;
    transition: 0.5s;
    width: 100%;
}

.blog-head-height {
    min-height: auto;
}

@media (max-width: 767px) {
    .bg-breadcrumb {
        margin-bottom: 0rem;
        padding: 30px 15px 40px 15px;
    }
}

.bg-breadcrumb::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 300px;
    border: 80px solid rgb(0 51 109 / 5%);
    background: transparent;
    animation: RotateMoveSingleTop 5s linear infinite;
    z-index: 1;
}

.bg-breadcrumb::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 300px;
    border: 80px solid rgb(0 51 109 / 5%);
    background: transparent;
    animation: RotateMoveSingleBottom 5s linear infinite;
    z-index: 1;
}

@keyframes RotateMoveSingleTop {
    0% {
        transform: rotate(0deg) translate3d(0, 1%, 0);
        top: 0px;
    }
    50% {
        top: 10%;
    }
    100% {
        transform: rotate(360deg) translate3d(0, 1%, 0);
        top: 0px;
    }
}

@keyframes RotateMoveSingleBottom {
    0% {
        transform: rotate(0deg) translate3d(0, 1%, 0);
        bottom: 0px;
    }
    50% {
        left: -10px;
    }
    75% {
        bottom: 10%;
    }
    100% {
        transform: rotate(360deg) translate3d(0, 1%, 0);
        bottom: 0px;
    }
}

.bg-breadcrumb .breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    justify-content: center;
}

.bg-breadcrumb .breadcrumb-item {
    font-size: 1rem;
}

.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}

.bg-breadcrumb .breadcrumb-item a {
    color: #1a202c !important;
    text-decoration: none;
    font-weight: 500;
}

.bg-breadcrumb .breadcrumb-item a:hover {
    color: #469d76 !important;
}

.breadcrumb-truncate {
    display: inline-block;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    color: #6c757d;
}

.bg-breadcrumb h1,
.bg-breadcrumb h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1a202c;
    font-weight: 700;
}

/* Floating animated bubbles */
.breadcrumb-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.breadcrumb-animation li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgb(0 51 109 / 5%);
    animation: animateBubbles 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.breadcrumb-animation li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.breadcrumb-animation li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.breadcrumb-animation li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.breadcrumb-animation li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.breadcrumb-animation li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.breadcrumb-animation li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.breadcrumb-animation li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.breadcrumb-animation li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.breadcrumb-animation li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.breadcrumb-animation li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animateBubbles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-800px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Post Main Layout */
.post-main {
    margin: 0 auto;
    padding: 1.5rem 20px 3.5rem 20px;
    max-width: 1320px;
}

.post-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.post-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #f1f5f9;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .post-content {
        padding: 1.5rem;
    }
    .post-image {
        height: 250px;
    }
}

.post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.meta-icon {
    font-size: 1.1rem;
}

.meta-text {
    font-weight: 500;
}

/* Article Body */
.post-body {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #374151;
    word-wrap: break-word;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin: 2.5rem 0 1rem 0;
}

.post-body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin: 1.75rem 0 0.75rem 0;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-body .blog-cta-box,
.blog-cta-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%) !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 12px !important;
    padding: 2.25rem 2rem !important;
    text-align: center !important;
    margin: 2.5rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

.post-body .blog-cta-box h3,
.blog-cta-box .elementor-heading-title,
.blog-cta-box h3 {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    color: #166534 !important;
    font-weight: 600 !important;
    font-size: 1.6rem !important;
    text-align: center !important;
}

.post-body .blog-cta-box p,
.blog-cta-box .elementor-widget-text-editor p,
.blog-cta-box p {
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    color: #1e293b !important;
    font-size: 1.05rem !important;
    text-align: center !important;
}

.blog-cta-box .elementor-button,
.blog-cta-box a.elementor-button {
    background: #98ca3c !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    padding: 0.7rem 2rem !important;
    font-size: 1rem !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(152, 202, 60, 0.35) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.blog-cta-box .elementor-button:hover,
.blog-cta-box a.elementor-button:hover {
    background: #84b430 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(152, 202, 60, 0.45) !important;
}

/* Buttons */
.btn-secondary-new {
    background: #98ca3c !important;
    color: #ffffff !important;
    border-color: #98ca3c !important;
    font-weight: 500;
    transition: 0.3s ease;
    display: inline-block;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(152, 202, 60, 0.3);
}

.btn-secondary-new:hover {
    background: #84b430 !important;
    border-color: #84b430 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(152, 202, 60, 0.4);
}

.back-to-blog {
    margin-top: 2rem;
}

/* Recent Posts Sidebar (matching https://www.flybuilds.com/blog/content/6/) */
.recent-post-box {
    background: rgb(253, 253, 253);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1.5rem 1.75rem;
}

.recent-post-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    border: none;
    padding-bottom: 0;
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
}

.recent-post {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.recent-post-img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.recent-post a {
    text-decoration: none;
}

.recent-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.recent-post-title:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

.recent-post-date {
    font-size: 0.85rem;
}

/* Two-column layout grid utilities */
.blog-layout-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.blog-main-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 100%;
    max-width: 100%;
}

.blog-sidebar-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 2.5rem;
}

@media (min-width: 992px) {
    .blog-main-col {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    .blog-sidebar-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-top: 0;
    }
}

/* ========================================================
   Blogs Listing Page - 4 Lines Excerpt Clamp & Card Styling
   ======================================================== */
.elementskit-post-image-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.elementskit-post-image-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.elementskit-post-image-card .elementskit-entry-header {
    position: relative !important;
    flex-shrink: 0 !important;
}

.elementskit-post-image-card .elementskit-entry-thumb {
    height: 195px !important;
    overflow: hidden !important;
    display: block !important;
    background: #f1f5f9 !important;
}

.elementskit-post-image-card .elementskit-entry-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.elementskit-post-image-card:hover .elementskit-entry-thumb img {
    transform: scale(1.05) !important;
}

.elementskit-post-image-card .elementskit-post-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 1.5rem !important;
}

.elementskit-post-image-card .elementskit-post-body .entry-title {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 1rem !important;
    min-height: 52px !important;
}

.elementskit-post-image-card .elementskit-post-body .entry-title a {
    color: #1a202c !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.elementskit-post-image-card .elementskit-post-body .entry-title a:hover {
    color: #469d76 !important;
}

/* Exactly 4 lines of description as requested */
.elementskit-post-image-card .elementskit-post-body > p {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 96px !important;
    line-height: 24px !important;
    font-size: 15px !important;
    color: #4b5563 !important;
    margin-bottom: 1.5rem !important;
    flex-grow: 1 !important;
}

.elementskit-post-image-card .elementskit-post-body .btn-wraper {
    margin-top: auto !important;
    text-align: center !important;
}

.elementskit-post-image-card .elementskit-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px 20px !important;
    border-radius: 40px !important;
    background-color: #f6f6fa !important;
    color: #469d76 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.elementskit-post-image-card .elementskit-btn:hover {
    background-color: #469d76 !important;
    color: #ffffff !important;
}

/* 4 columns layout on desktop */
@media (min-width: 1200px) {
    .elementor-1054 .elementor-element.elementor-element-0e7802c .post-items > .post-item {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* ==========================================================================
   Flybuilds Canonical Blog Page Styles (https://www.flybuilds.com/blog/)
   ========================================================================== */
.flybuilds-blog-page {
    font-family: 'Rubik', sans-serif;
    color: #374151;
    background-color: #f8fafc;
    width: 100%;
    padding-top: 0;
}

.flybuilds-blog-page .blog {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
}

.flybuilds-blog-page .blog-intro-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.25rem;
}

.flybuilds-blog-page .blog-intro-header p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

.flybuilds-blog-page .blog-item {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flybuilds-blog-page .blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.flybuilds-blog-page .blog-img {
    position: relative;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    background: #000;
}

.flybuilds-blog-page .image-container {
    height: 200px;
    overflow: hidden;
    width: 100%;
}

.flybuilds-blog-page .image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.flybuilds-blog-page .blog-item:hover .image-container img {
    transform: scale(1.15);
}

.flybuilds-blog-page .blog-info {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
    color: #ffffff !important;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transition: background 0.4s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.flybuilds-blog-page .blog-info span {
    color: #ffffff !important;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.flybuilds-blog-page .blog-item:hover .blog-info {
    background: rgba(0, 0, 0, 0.45);
}

.flybuilds-blog-page .blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.flybuilds-blog-page .card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
    min-height: 52px;
}

.flybuilds-blog-page .card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.flybuilds-blog-page .card-title a:hover {
    color: #469d76;
}

/* Exactly 4 lines of description with ellipsis clamp */
.flybuilds-blog-page .card-p-height {
    height: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    color: #4b5563;
    line-height: 24px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Topic Filters and Badges */
.blog-topic-filters {
    margin-bottom: 2.25rem;
}

.blog-topic-filters .filter-btn {
    border-radius: 50px;
    padding: 7px 22px;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #d1d5db;
    transition: all 0.25s ease;
    cursor: pointer;
}

.blog-topic-filters .filter-btn:hover {
    border-color: #469d76;
    color: #469d76;
    background: #f0fdf4;
}

.blog-topic-filters .filter-btn.active {
    background: #469d76 !important;
    border-color: #469d76 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(70, 157, 118, 0.3);
}

/* Read More Button (matching https://www.flybuilds.com/blog/) */
.flybuilds-blog-page .btn.btn-light {
    background: #f6f6fa !important;
    color: #198754 !important;
    font-weight: 500;
    font-size: 0.95rem;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: none !important;
}

.flybuilds-blog-page .btn.btn-light:hover {
    background: #198754 !important;
    color: #ffffff !important;
}


