/* =========================================
   FarmersBD — Disease Details Page UI
   Matches reference design exactly
   ========================================= */

/* ── Breadcrumb ── */
.disease-breadcrumb {
    background: #f0f6fb;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2ecf3;
    margin-bottom: 0;
}
.disease-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.disease-breadcrumb .breadcrumb-item a {
    color: #0284c7;
    text-decoration: none;
}
.disease-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}
.disease-breadcrumb .breadcrumb-item.active {
    color: #64748b;
}
.disease-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #94a3b8;
}

/* ── Hero Banner ── */
.disease-hero {
    background: linear-gradient(135deg, #0c3d6b 0%, #0a5a8e 40%, #0d7bb5 70%, #1094d4 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    display: flex;
    margin-bottom: 1.5rem;
}
.disease-hero-content {
    padding: 2rem 2.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.disease-hero-image {
    width: 320px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.disease-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}
.disease-hero-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, #0a5a8e, transparent);
    z-index: 1;
}

/* Category Badge */
.disease-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.85);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(6px);
    width: fit-content;
}
.disease-cat-badge svg {
    width: 14px;
    height: 14px;
}

/* Disease Title */
.disease-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.15rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.disease-hero .disease-name-bn {
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.65rem;
}
.disease-hero .disease-intro-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    max-width: 520px;
    font-weight: 400;
}

/* Quick Info Row at bottom of hero */
.disease-quick-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}
.disease-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.disease-quick-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.disease-quick-icon svg {
    width: 16px;
    height: 16px;
    fill: #7dd3fc;
}
.disease-quick-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    display: block;
    margin-bottom: 0.1rem;
}
.disease-quick-value {
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 700;
    display: block;
    line-height: 1.25;
}

/* ── Tab Navigation ── */
.disease-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2ecf3;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.disease-tab {
    flex: 1;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    position: relative;
}
.disease-tab:hover {
    background: #f8fafc;
    color: #0284c7;
}
.disease-tab.active {
    background: #0284c7;
    color: #ffffff;
    border-radius: 10px;
    margin: 0.25rem;
}
.disease-tab svg {
    width: 16px;
    height: 16px;
}

/* ── Warning Alert ── */
.disease-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.disease-warning-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.disease-warning-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}
.disease-warning h5 {
    font-size: 1rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.25rem;
}
.disease-warning p {
    font-size: 0.85rem;
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

/* ── Content Sections (tabbed content) ── */
.disease-section {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2ecf3;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.disease-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.disease-section-title svg {
    width: 22px;
    height: 22px;
    fill: #0284c7;
}
.disease-section-body {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.7;
}
.disease-section-body p {
    margin-bottom: 0.75rem;
}
.disease-section-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}
.disease-section-body li {
    margin-bottom: 0.4rem;
}

/* Tab Content visibility */
.disease-tab-content {
    display: none;
}
.disease-tab-content.active {
    display: block;
}

/* ── Sidebar Cards ── */
/* AI Scanner Card */
.disease-ai-card {
    background: linear-gradient(135deg, #0c3d6b 0%, #0d7bb5 100%);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.disease-ai-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.disease-ai-card h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
}
.disease-ai-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
}
.disease-ai-card .ai-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.disease-ai-card .ai-icon-circle svg {
    width: 24px;
    height: 24px;
    fill: #7dd3fc;
}
.btn-ai-scan {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #0369a1;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}
.btn-ai-scan:hover {
    background: #f0f9ff;
    color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Quick Facts Card */
.disease-facts-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2ecf3;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.disease-facts-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}
.disease-facts-title svg {
    width: 18px;
    height: 18px;
    fill: #0284c7;
}

.disease-fact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f8fafc;
}
.disease-fact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.disease-fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.disease-fact-icon.blue { background: #dbeafe; color: #2563eb; }
.disease-fact-icon.green { background: #d1fae5; color: #059669; }
.disease-fact-icon.orange { background: #ffedd5; color: #ea580c; }
.disease-fact-icon.red { background: #fee2e2; color: #dc2626; }
.disease-fact-icon.purple { background: #ede9fe; color: #7c3aed; }

.disease-fact-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    display: block;
}
.disease-fact-value {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 700;
    display: block;
    line-height: 1.3;
}

/* Contact CTA */
.disease-contact-cta {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2ecf3;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.disease-contact-phone {
    background: #f0f9ff;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid #e2ecf3;
}
.disease-contact-phone .phone-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.disease-contact-phone .phone-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}
.disease-contact-phone .phone-num {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.disease-contact-phone .phone-label {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
}

/* Expert Card */
.disease-expert-card {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.25rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.disease-expert-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.disease-expert-card .expert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.disease-expert-card .expert-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}
.disease-expert-card h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    position: relative;
}
.disease-expert-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
}
.btn-expert-consult {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #0369a1;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}
.btn-expert-consult:hover {
    background: #f0f9ff;
    color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ── Recommended Products ── */
.disease-products-section {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2ecf3;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.disease-products-section h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.disease-product-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    margin-bottom: 0.6rem;
    transition: all 0.2s;
}
.disease-product-item:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
}
.disease-product-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.disease-product-item h6 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
}
.disease-product-item h6 a {
    color: inherit;
    text-decoration: none;
}
.disease-product-item h6 a:hover {
    color: #0284c7;
}
.disease-product-item .price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #059669;
}
.disease-product-item .btn-buy-sm {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.2s;
}
.disease-product-item .btn-buy-sm:hover {
    background: #0369a1;
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .disease-hero {
        flex-direction: column;
    }
    .disease-hero-image {
        width: 100%;
        height: 200px;
        order: -1;
    }
    .disease-hero-image::before {
        display: none;
    }
    .disease-hero-content {
        padding: 1.5rem;
    }
    .disease-quick-row {
        gap: 1rem;
    }
}
@media (max-width: 767.98px) {
    .disease-hero h1 {
        font-size: 1.3rem;
    }
    .disease-hero .disease-name-bn {
        font-size: 1.1rem;
    }
    .disease-tabs {
        flex-wrap: wrap;
    }
    .disease-tab {
        flex: 0 0 50%;
        font-size: 0.8rem;
        padding: 0.65rem 0.5rem;
    }
    .disease-quick-row {
        flex-direction: column;
        gap: 0.65rem;
    }
    .disease-section {
        padding: 1rem;
    }
}
@media (max-width: 575.98px) {
    .disease-tab {
        flex: 0 0 50%;
        font-size: 0.76rem;
    }
    .disease-hero-content {
        padding: 1rem;
    }
    .disease-hero h1 {
        font-size: 1.15rem;
    }
}
