/*
Theme Name: Flone
Theme URI: https://flone.hasthemes.com/
Description: Custom styles and Linear-pattern header for Fortius Medical
Version: 2.0.0
*/

/* ==========================================================
   Linear-Inspired Minimal Sticky Header
   ========================================================== */

:root {
    --theme-blue: #59a3e1;
    --theme-blue-hover: #468ac7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --bg-card-hover: #f8fafc;
}

/* Ensure full-width viewport and uninhibited sticky positioning */
.wrapper {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Base Header Container (Sticky) */
.header-area.linear-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1020 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 84px;
    display: flex;
    align-items: center;
}

/* Desktop Logo Sizing */
.header-area.linear-header .custom-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.2s ease;
}

/* Hairline Border and Soft Shadow on Scroll */
.header-area.linear-header.scrolled {
    background-color: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08) !important;
}

/* Nav Menu Alignment */
.linear-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.linear-nav > li {
    position: relative;
    margin: 0 4px;
}

.linear-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
}

.linear-nav > li > a:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-card-hover);
}

/* Active Page State */
.linear-nav > li.active > a {
    color: var(--theme-blue) !important;
    font-weight: 600;
}

/* ==========================================================
   Header Right Actions
   ========================================================== */

.linear-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Compact Search Input */
.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 14px;
}

.header-search-box .search-form {
    position: relative;
    margin: 0;
}

.header-search-box .search-input {
    width: 125px;
    height: 34px;
    padding: 5px 12px 5px 30px;
    font-size: 12.5px;
    color: var(--text-primary);
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    outline: none;
    transition: all 0.25s ease;
}

.header-search-box .search-input:focus {
    width: 165px;
    background-color: #ffffff;
    border-color: var(--theme-blue);
    box-shadow: 0 0 0 3px rgba(89, 163, 225, 0.15);
}

.header-search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.header-search-box .search-input:focus ~ .search-icon {
    color: var(--theme-blue);
}

/* Plain Text "Contact" Link */
.header-contact-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.header-contact-link:hover {
    color: var(--theme-blue) !important;
}

/* Hairline Vertical Divider */
.header-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #cbd5e1;
    margin: 0 14px;
}

/* Linear-Style Pill CTA Button */
.header-cta-pill {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 24px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.header-cta-pill:hover {
    background: var(--theme-blue);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(89, 163, 225, 0.35);
    transform: translateY(-1px);
}

.header-cta-pill .cta-icon {
    font-size: 12px;
    margin-right: 6px;
}

.header-cta-pill .cta-phone-reveal {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    font-size: 12px;
    font-weight: 500;
    color: #fef08a;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    overflow: hidden;
}

.header-cta-pill:hover .cta-phone-reveal {
    max-width: 130px;
    opacity: 1;
    margin-left: 6px;
}

/* ==========================================================
   Mobile Menu & Responsive Safeguards
   ========================================================== */

.mobile-menu-toggle-btn {
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 20px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
}

.mobile-menu-toggle-btn:focus {
    outline: none;
    background: #f1f5f9;
}

@media (max-width: 991px) {
    .header-area.linear-header {
        height: 62px;
    }
    .header-search-box {
        margin-right: 8px;
    }
    .header-search-box .search-input {
        width: 100px;
    }
    .header-search-box .search-input:focus {
        width: 130px;
    }
    .header-divider {
        margin: 0 8px;
    }
    .header-contact-link {
        display: none;
    }
    .header-cta-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ==========================================================
   Homepage Components & Cards Styling
   ========================================================== */

/* Promo Banner Wrappers (Properly Contained) */
.homepage-banner-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #bcddec;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.homepage-banner-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}

.homepage-banner-wrap .banner-contained-img {
    width: 100%;
    height: auto;
    aspect-ratio: 710 / 389;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.homepage-banner-wrap:hover .banner-contained-img {
    transform: scale(1.02);
}

/* Homepage Product Card */
.homepage-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.homepage-product-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12);
}

.homepage-product-card .prod-img-box {
    height: 220px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.homepage-product-card .prod-img-box img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.homepage-product-card:hover .prod-img-box img {
    transform: scale(1.04);
}

/* Product Card Action Buttons (Solid Blue by Default) */
.homepage-product-card .btn,
.homepage-product-card .btn-primary,
.homepage-product-card .btn-outline-primary,
.product-card-btn {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.homepage-product-card .btn:hover,
.homepage-product-card .btn-primary:hover,
.homepage-product-card .btn-outline-primary:hover,
.product-card-btn:hover {
    background-color: #0069d9 !important;
    border-color: #0062cc !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
    transform: translateY(-1px);
}

/* Category Filter Tabs */
.category-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin: 4px;
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #ffffff;
}

.category-tab-btn:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f8fafc;
}

.category-tab-btn.active {
    background: var(--theme-blue);
    border-color: var(--theme-blue);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(89, 163, 225, 0.3);
}

/* Feature Support Card */
.support-card {
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--theme-blue);
    padding: 28px 24px;
    transition: all 0.25s ease;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.support-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
}

/* ==========================================================
   Breadcrumb Modern Styling & Separator Fix
   ========================================================== */
.breadcrumb-area {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 34px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.breadcrumb-content h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
}

/* Eliminate duplicate slash injected by main.css */
.breadcrumb-content ul li::before {
    display: none !important;
}

.breadcrumb-content ul li {
    margin-right: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.breadcrumb-content ul li a {
    color: #334155 !important;
    transition: color 0.2s ease;
}

.breadcrumb-content ul li a:hover {
    color: var(--theme-blue) !important;
}

.breadcrumb-content ul li:after {
    content: "/" !important;
    margin: 0 10px !important;
    color: #94a3b8 !important;
}

.breadcrumb-content ul li:last-child:after {
    display: none !important;
}

/* ==========================================================
   About Page Components
   ========================================================== */
.pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 26px;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.1);
}

.pillar-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-showcase-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.07);
    padding: 48px 44px;
}

@media (max-width: 767px) {
    .brand-showcase-panel {
        padding: 32px 20px;
    }
}

/* ==========================================================
   Blog & Post Architecture Styling
   ========================================================== */
.blog-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.blog-details-body p {
    margin-bottom: 1.5rem;
    font-size: 16.5px;
    line-height: 1.85;
    color: #334155;
}

.blog-details-body p:first-of-type {
    font-size: 18px;
    color: #1e293b;
    line-height: 1.8;
}

.blog-details-body h2, 
.blog-details-body h3, 
.blog-details-body h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-details-body blockquote {
    border-left: 4px solid var(--theme-blue);
    padding-left: 18px;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
}

.blog-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px -4px rgba(15, 23, 42, 0.04);
}

.blog-sidebar-widget .widget-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.blog-sidebar-widget .widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--theme-blue);
}

.recent-post-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-post-mini:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-mini:hover .mini-title {
    color: var(--theme-blue);
}

.recent-post-mini .mini-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

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

.recent-post-mini .mini-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.recent-post-mini .mini-date {
    font-size: 11.5px;
    color: #94a3b8;
}

.blog-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-cat-list li {
    margin-bottom: 8px;
}

.blog-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.blog-cat-list a:hover,
.blog-cat-list a.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 600;
}

.blog-cat-list a .cat-count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #475569;
}

.blog-cat-list a:hover .cat-count,
.blog-cat-list a.active .cat-count {
    background: #0284c7;
    color: #ffffff;
}

.blog-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.1) !important;
}

/* ==========================================================
   Comprehensive Mobile View Optimization (< 992px & < 576px)
   ========================================================== */

/* Prevent horizontal scroll leakage without breaking position:sticky */
html, body {
    overflow-x: clip !important;
    max-width: 100%;
}

/* ==========================================================
   Header Mobile & Tablet Single-Row Responsive Layout
   ========================================================== */

@media (max-width: 991px) {
    .header-area.linear-header {
        min-height: 76px !important;
        height: auto !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .header-area.linear-header .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-area.linear-header .row {
        flex-wrap: nowrap !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-area.linear-header .row > [class*="col"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Prominent, readable logo across mobile screens */
    .header-area.linear-header .custom-logo {
        max-height: 48px !important;
        max-width: 225px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        display: block;
    }

    .linear-header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px;
    }

    .mobile-search-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 14.5px;
        margin-right: 0;
    }

    .header-cta-pill {
        padding: 7px 14px !important;
        font-size: 12.5px !important;
        border-radius: 20px !important;
        letter-spacing: 0;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    }

    .header-cta-pill .cta-phone-reveal {
        display: none !important;
    }

    .header-divider,
    .header-contact-link {
        display: none !important;
    }

    .mobile-menu-toggle-btn {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #0f172a;
        font-size: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin-left: 0 !important;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-menu-toggle-btn:hover,
    .mobile-menu-toggle-btn:focus {
        background: #ffffff;
        color: var(--theme-blue);
        border-color: var(--theme-blue);
        outline: none;
    }


    /* Floating mobile menu drawer */
    #mobileMenuDrawer {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
        border-bottom: 2px solid var(--theme-blue);
        padding: 15px 20px 25px;
        z-index: 1002;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }
}

@media (max-width: 400px) {
    .header-area.linear-header .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .header-area.linear-header .custom-logo {
        max-height: 38px !important;
        max-width: 180px !important;
    }

    .mobile-search-toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 13.5px;
    }

    .header-cta-pill {
        padding: 6px 11px !important;
        font-size: 11.5px !important;
    }

    .mobile-menu-toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 350px) {
    .header-area.linear-header .custom-logo {
        max-height: 34px !important;
        max-width: 155px !important;
    }

    .header-cta-pill .cta-label {
        display: none;
    }

    .header-cta-pill {
        padding: 7px 11px !important;
    }

    .header-cta-pill .cta-icon {
        margin-right: 0 !important;
    }
}

/* Mobile Hero Typography & Layout */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .hero-section h1 {
        font-size: 27px !important;
        line-height: 1.25 !important;
    }

    .hero-section p {
        font-size: 14.5px !important;
    }

    .hero-buttons-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons-wrap .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-visual-card {
        margin-top: 25px !important;
        padding: 16px !important;
    }

    .hero-visual-card img {
        max-height: 210px !important;
    }
}

/* Section Title Mobile Safeguard: Disable side lines on narrow screens */
@media (max-width: 576px) {
    .section-title h2::before,
    .section-title h2::after {
        display: none !important;
    }

    .section-title h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
}

/* Counter / Stats Band Mobile Grid */
@media (max-width: 767px) {
    .counter-area {
        padding: 60px 0 !important;
    }

    .counter-area .counter-box h2 {
        font-size: 32px !important;
        margin-bottom: 6px !important;
    }

    .counter-area .counter-box span {
        font-size: 12px !important;
    }
}

/* About Page Vision/Mission/Goal Cards Mobile */
@media (max-width: 767px) {
    .pillar-card {
        padding: 24px 18px !important;
        margin-bottom: 20px;
    }

    .pillar-icon-circle {
        width: 54px !important;
        height: 54px !important;
        margin-bottom: 14px !important;
    }
}

/* Shop Catalog Mobile Refinements */
@media (max-width: 767px) {
    .shop-area {
        padding-top: 40px !important;
        padding-bottom: 50px !important;
    }

    .shop-sidebar {
        margin-bottom: 30px !important;
        padding: 18px !important;
    }

    .shop-top-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .shop-top-bar .filter-sort {
        width: 100%;
    }

    .shop-top-bar .filter-sort form {
        width: 100%;
        justify-content: space-between;
    }

    .product-img-wrap {
        height: 220px !important;
    }
}

/* Single Product Details Mobile */
@media (max-width: 767px) {
    .product-details-area {
        padding-top: 40px !important;
        padding-bottom: 50px !important;
    }

    .product-details-img {
        min-height: 260px !important;
        padding: 15px !important;
        margin-bottom: 25px !important;
    }

    .product-details-img img {
        max-height: 240px !important;
    }

    .product-details-content h1 {
        font-size: 23px !important;
    }
}

/* Single Blog Post Details Mobile */
@media (max-width: 767px) {
    .blog-details-area {
        padding-top: 35px !important;
        padding-bottom: 50px !important;
    }

    .blog-article-card {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    .blog-article-card h1 {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }

    .blog-featured-media {
        max-height: 240px !important;
    }

    .blog-featured-media img {
        max-height: 240px !important;
    }

    .blog-details-body p {
        font-size: 15px !important;
        line-height: 1.75 !important;
        margin-bottom: 1.2rem !important;
    }

    .blog-details-body p:first-of-type {
        font-size: 16px !important;
    }

    .author-bio-card {
        padding: 18px 14px !important;
    }
}

/* Footer Mobile Refinements */
@media (max-width: 767px) {
    .site-footer {
        padding-top: 50px !important;
        padding-bottom: 35px !important;
    }

    .footer-widget {
        margin-bottom: 28px !important;
    }

    .footer-title h4 {
        margin-bottom: 14px !important;
        font-size: 16px !important;
    }
}




