/* ========================================================
   Bioflow Elementor Addons - Frontend Styles
   ======================================================== */

/* --- 1. Static Carousel (bdt-static-carousel) --- */
.bioflow-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
}
.bioflow-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}
.bioflow-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.bioflow-carousel-slide {
    flex: 0 0 calc(25% - 15px);
    margin-right: 15px;
    box-sizing: border-box;
}
.bioflow-carousel-container[data-columns="1"] .bioflow-carousel-slide { flex: 0 0 100%; margin-right: 0; }
.bioflow-carousel-container[data-columns="2"] .bioflow-carousel-slide { flex: 0 0 calc(50% - 12px); margin-right: 12px; }
.bioflow-carousel-container[data-columns="3"] .bioflow-carousel-slide { flex: 0 0 calc(33.333% - 14px); margin-right: 14px; }
.bioflow-carousel-container[data-columns="4"] .bioflow-carousel-slide { flex: 0 0 calc(25% - 15px); margin-right: 15px; }

@media (max-width: 1024px) {
    .bioflow-carousel-slide { flex: 0 0 calc(50% - 12px) !important; margin-right: 12px !important; }
}
@media (max-width: 640px) {
    .bioflow-carousel-slide { flex: 0 0 100% !important; margin-right: 0 !important; }
}

.bioflow-card-inner {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef0f3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bioflow-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.bioflow-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f9fa;
}
.bioflow-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bioflow-card-inner:hover .bioflow-card-image img {
    transform: scale(1.05);
}
.bioflow-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.bioflow-card-sub {
    font-size: 13px;
    color: #0284c7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.bioflow-card-title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #1e293b;
    font-weight: 700;
}
.bioflow-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bioflow-card-title a:hover {
    color: #0284c7;
}
.bioflow-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
    flex-grow: 1;
}
.bioflow-card-action {
    margin-top: auto;
}
.bioflow-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.bioflow-readmore-btn:hover {
    background: #0369a1;
    color: #ffffff !important;
    gap: 12px;
}

.bioflow-carousel-container .bioflow-carousel-navigation {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 28px auto 10px !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
}
.bioflow-carousel-container .bioflow-nav-btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #1FB7F1 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(31, 183, 241, 0.4) !important;
    line-height: 1 !important;
    text-align: center !important;
}
.bioflow-carousel-container .bioflow-nav-btn:hover {
    background: #A4C63B !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(164, 198, 59, 0.5) !important;
}
.bioflow-carousel-container .bioflow-nav-btn:focus,
.bioflow-carousel-container .bioflow-nav-btn:active {
    background: #1FB7F1 !important;
    color: #ffffff !important;
    outline: none !important;
}
.bioflow-carousel-container .bioflow-nav-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 auto !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    pointer-events: none !important;
}

/* --- 2. Accordion (jkit_accordion) --- */
.bioflow-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bioflow-accordion .card-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.bioflow-accordion .card-wrapper.is-active {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.bioflow-accordion .card-header-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease;
}
.bioflow-accordion .card-wrapper.is-active .card-header-button {
    background: #f0f9ff;
    color: #0284c7;
}
.bioflow-accordion .right-icon-group {
    display: flex;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}
.bioflow-accordion .accordion-toggle-icon .icon-up { display: none; }
.bioflow-accordion .accordion-toggle-icon .icon-down { display: block; }
.bioflow-accordion .card-wrapper.is-active .accordion-toggle-icon .icon-up { display: block; }
.bioflow-accordion .card-wrapper.is-active .accordion-toggle-icon .icon-down { display: none; }
.bioflow-accordion .card-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

/* --- 3. Video Button (jkit_video_button) --- */
.bioflow-video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bioflow-video-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: #e00404;
    color: #ffffff !important;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(224, 4, 4, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}
.bioflow-video-trigger:hover {
    background: #c50303;
    transform: scale(1.1);
}
.bioflow-video-trigger .pulse-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(224, 4, 4, 0.4);
    animation: bioflowPulse 2s infinite ease-out;
    z-index: 0;
}
@keyframes bioflowPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
.bioflow-video-trigger .icon-position-before {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Modal Lightbox */
.bioflow-video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bioflow-video-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}
.bioflow-video-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
}
.bioflow-video-modal-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.bioflow-modal-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

/* --- 4. Post Block (jkit_post_block) --- */
.bioflow-post-block {
    width: 100%;
}
.bioflow-post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .bioflow-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bioflow-post-grid { grid-template-columns: 1fr; }
}
.bioflow-post-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bioflow-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.bioflow-post-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.bioflow-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bioflow-post-card:hover .bioflow-post-thumbnail img {
    transform: scale(1.05);
}
.bioflow-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bioflow-post-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bioflow-post-title {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 10px;
}
.bioflow-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bioflow-post-title a:hover {
    color: #0284c7;
}
.bioflow-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
    flex-grow: 1;
}
.bioflow-post-readmore a {
    display: inline-flex;
    align-items: center;
    color: #0284c7;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bioflow-post-readmore a:hover {
    color: #0369a1;
}

/* --- 5. Portfolio Grid (lae-portfolio) --- */
.bioflow-portfolio-wrap {
    width: 100%;
}
.bioflow-portfolio-header {
    text-align: center;
    margin-bottom: 25px;
}
.bioflow-portfolio-header .lae-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.bioflow-portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.portfolio-filter-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background: #0284c7;
    color: #ffffff;
}
.bioflow-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .bioflow-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bioflow-portfolio-grid { grid-template-columns: 1fr; }
}
.bioflow-portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.bioflow-portfolio-item.is-hidden {
    display: none;
}
.bioflow-project-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.bioflow-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bioflow-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 132, 199, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
}
.bioflow-project-image:hover img {
    transform: scale(1.08);
}
.bioflow-project-image:hover .bioflow-image-overlay {
    opacity: 1;
}
.view-project-icon {
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.bioflow-project-image:hover .view-project-icon {
    transform: scale(1);
}
.bioflow-project-info {
    padding: 12px 4px 0;
}
.bioflow-project-category {
    font-size: 12px;
    color: #0284c7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.bioflow-project-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.bioflow-project-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bioflow-project-title a:hover {
    color: #0284c7;
}

/* ========================================================
   Jeg Kit Icon Compatibility Mappings (Font Awesome 5)
   ======================================================== */
.jki {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.jki.jki-building::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f1ad"; }
.jki.jki-factory-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f275"; }
.jki.jki-phone1-light::before, .jki.jki-phone-handset-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f879"; }
.jki.jki-envelope2-light::before, .jki.jki-email1-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0e0"; }
.jki.jki-map-marker-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f3c5"; }
.jki.jki-twitter-light::before { font-family: "Font Awesome 5 Brands"; font-weight: 400; content: "\f099"; }
.jki.jki-instagram-1-light::before { font-family: "Font Awesome 5 Brands"; font-weight: 400; content: "\f16d"; }
.jki.jki-linkedin-light::before { font-family: "Font Awesome 5 Brands"; font-weight: 400; content: "\f0e1"; }
.jki.jki-facebook-light::before { font-family: "Font Awesome 5 Brands"; font-weight: 400; content: "\f39e"; }
.jki.jki-whatsapp-1-light::before { font-family: "Font Awesome 5 Brands"; font-weight: 400; content: "\f232"; }
.jki.jki-apartment-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f64f"; }
.jki.jki-bars-solid::before, .jki.jki-burger-menu-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0c9"; }
.jki.jki-angle-left-solid::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f104"; }
.jki.jki-angle-right-solid::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f105"; }
.jki.jki-team-1-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0c0"; }
.jki.jki-play1-light::before, .jki.jki-play-button-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f04b"; }
.jki.jki-diploma-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f559"; }
.jki.jki-quote-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f10d"; }
.jki.jki-hours-support-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f590"; }
.jki.jki-tools-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f7d9"; }
.jki.jki-flash-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0e7"; }
.jki.jki-settings1-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f013"; }
.jki.jki-thumbs-up-light::before { font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f164"; }

