/* Scoped Blog Styles */

/* 1. Base Reset for Blog Content Area */
.blog-details__desc {
    font-family: 'Inter', sans-serif; /* Optional: Use a nice font if available, or inherit */
    color: #334155; /* Slate-700 */
    line-height: 1.7;
}

/* 2. Provider Review Card (Component) */
.provider-review-card {
    background-color: #ffffff;
    border-radius: 0.75rem; /* 12px */
    border: 1px solid #e5e7eb; /* Gray-200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Shadow-md */
    margin-bottom: 2rem;
    overflow: hidden;
}

.provider-review-card .card-body {
    padding: 1.5rem;
}

/* Flex Utilities mappings */
.provider-review-card .d-flex { display: flex !important; }
.provider-review-card .align-items-center { align-items: center !important; }
.provider-review-card .justify-content-between { justify-content: space-between !important; }
.provider-review-card .mb-3 { margin-bottom: 1rem !important; }
.provider-review-card .mb-1 { margin-bottom: 0.25rem !important; }
.provider-review-card .me-3 { margin-right: 1rem !important; }

/* Rank Circle */
.provider-rank {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); /* Indigo-500 to Purple-500 */
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Typography */
.provider-review-card h3.h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937; /* Gray-800 */
    margin: 0 0 0.25rem 0;
}

.provider-review-card .text-primary {
    color: #6366f1 !important; /* Indigo-500 */
}

.provider-review-card .text-muted {
    color: #64748b !important; /* Slate-500 */
}

/* Boxes (Pros/Cons) */
.review-box {
    padding: 1rem;
    border-radius: 0.5rem;
    height: 100%;
    border: 1px solid transparent;
}

.review-box.success-box {
    background-color: #f0fdf4; /* Green-50 */
    border-color: #bbf7d0; /* Green-200 */
}

.review-box.danger-box {
    background-color: #fef2f2; /* Red-50 */
    border-color: #fecaca; /* Red-200 */
}

.review-box h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-success { color: #16a34a !important; /* Green-600 */ }
.text-danger { color: #dc2626 !important; /* Red-600 */ }

/* Lists */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem; /* ~15px */
    display: flex;
    align-items: flex-start;
}

.list-unstyled li i {
    flex-shrink: 0;
    margin-top: 0.25rem;
    margin-right: 0.5rem;
}

/* Verdict */
.bg-light {
    background-color: #f8fafc !important; /* Slate-50 */
}
.rounded { border-radius: 0.375rem !important; }
.fst-italic { font-style: italic !important; }
.text-sm { font-size: 0.875rem !important; }

/* Grid System (Basic Fallback if Bootstrap grid fails/conflicts) */
.provider-review-card .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.provider-review-card .col-md-6 {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .provider-review-card .col-md-6 {
        width: 50%;
    }
}

/* 3. Colored Header (Section Title) */
.section-header-branded {
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header-branded .icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); /* Amber to Orange */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.section-header-branded .icon-box:hover {
    transform: scale(1.05);
}

.section-header-branded .icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
}

.section-header-branded .content {
    flex: 1;
}

.section-header-branded .active-line {
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #f59e0b, transparent);
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.section-header-branded h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3056; /* Brand Dark */
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .section-header-branded h2 { font-size: 1.875rem; }
    .section-header-branded .icon-box { width: 3.5rem; height: 3.5rem; }
    .section-header-branded .icon-box svg { width: 1.75rem; height: 1.75rem; }
}

/* 4. Case Study Card */
.case-study-card {
    background: white;
    border: 1px solid #e2e8f0; /* Slate-200 */
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* Shadow-lg */
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

@media (min-width: 640px) {
    .case-study-card { padding: 2rem; }
}

.case-study-card h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #1e3056; /* Brand Dark */
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .case-study-card h3 { font-size: 1.5rem; }
}

/* Grid for Comparison */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .case-study-grid { grid-template-columns: 1fr 1fr; }
}

/* Compare Box */
.compare-box {
    padding: 1.25rem;
    border-radius: 1rem; /* rounded-2xl */
    border-width: 1px;
    border-style: solid;
    height: 100%;
}

.compare-box.bad {
    background-color: #fef2f2; /* red-50 */
    border-color: #fecaca; /* red-200 */
}

.compare-box.good {
    background-color: #f0fdf4; /* green-50 */
    border-color: #bbf7d0; /* green-200 */
}

.compare-box h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.compare-box.bad h4 { color: #7f1d1d; /* red-900 */ }
.compare-box.good h4 { color: #14532d; /* green-900 */ }

.compare-box ul {
    list-style: disc;
    padding-left: 1rem;
    margin: 0;
}

.compare-box ul li {
    font-size: 0.875rem; /* text-sm */
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.compare-box.bad ul { color: #991b1b; /* red-800 */ }
.compare-box.good ul { color: #166534; /* green-800 */ }

/* Impact Box */
.impact-box {
    padding: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(to right, #fffbeb, #fff7ed); /* amber-50 to orange-50 */
    border: 2px solid #fcd34d; /* amber-300 */
    margin-top: 1rem;
    text-align: center;
}

.impact-box p {
    color: #78350f; /* amber-900 */
    font-weight: 700;
    margin: 0;
}

/* Extra Info Box */
.info-box-blue {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background-color: #eff6ff; /* blue-50 */
    border: 1px solid #bfdbfe; /* blue-200 */
}

.info-box-blue p {
    font-size: 0.875rem;
    color: #334155; /* slate-700 */
    line-height: 1.6;
    margin: 0;
}

.info-box-blue a {
    font-weight: 600;
    color: #0ea5e9; /* Brand Accent ? using sky-500 equivalent */
    text-decoration: none;
}
.info-box-blue a:hover {
    text-decoration: underline;
}

/* 5. Problem List Section */
.problem-section {
    margin-bottom: 3rem;
}

.problem-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.problem-header .bar {
    width: 0.25rem;
    height: 2rem;
    background-color: #f59e0b; /* brand-accent (amber) */
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .problem-header .bar { height: 2.5rem; }
}

.problem-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3056;
    margin: 0;
}

@media (min-width: 640px) {
    .problem-header h2 { font-size: 1.5rem; }
}

/* Intro Card */
.problem-intro-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.7); /* slate-200/70 */
    background: linear-gradient(135deg, #ffffff 0%, rgba(248, 250, 252, 0.5) 100%);
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .problem-intro-card { padding: 2rem; }
}

.problem-intro-card p {
    color: #334155; /* slate-700 */
    line-height: 1.625;
}

/* Problem Items Container */
.problem-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Problem Item */
.problem-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    transition: all 0.3s ease;
}

.problem-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
}

@media (min-width: 640px) {
    .problem-item { padding: 2rem; }
}

/* Danger Variant */
.problem-item.danger {
    border-color: #fecaca; /* red-200 */
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 50%, #fff1f2 100%); /* red-50 via white to rose-50 */
}

/* Animated Bottom Line for specific items (like Bot-Heavy) */
.problem-item .animated-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #dc2626; /* red-600 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.problem-item:hover .animated-line {
    transform: scaleX(1);
}

/* Item Header */
.problem-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.problem-item-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* slate-200 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.problem-item.danger .problem-item-icon {
    border-color: #fecaca; /* red-200 */
}

.problem-item-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #dc2626; /* red-600 */
}

@media (min-width: 640px) {
    .problem-item-icon { width: 3rem; height: 3rem; }
}

.problem-item h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #1e3056;
    margin: 0;
    padding-top: 0.25rem;
}

@media (min-width: 640px) {
    .problem-item h3 { font-size: 1.25rem; /* text-xl */ }
}

.problem-item-content {
    color: #334155; /* slate-700 */
    line-height: 1.625;
    font-size: 1rem;
}

.problem-item-content p {
    margin-bottom: 0.75rem;
}
.problem-item-content p:last-child {
    margin-bottom: 0;
}

.problem-item-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.problem-item-content ul li {
    margin-bottom: 0.5rem;
}

/* 6. Best Choice Card */
.best-choice-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 2px solid rgba(14, 165, 233, 0.4); /* brand-accent/40 */
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), #ffffff, rgba(239, 246, 255, 0.4));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
    margin-bottom: 2rem;
}

.best-choice-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); /* hover:shadow-3xl */
}

/* Background Effects */
.best-choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 9999px;
    filter: blur(64px);
    margin-right: -12rem;
    margin-top: -12rem;
    transition: transform 1s ease;
}

.best-choice-card:hover::before {
    transform: scale(1.25);
}

.best-choice-content {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .best-choice-content { padding: 2rem; }
}

@media (min-width: 1024px) {
    .best-choice-content { padding: 2.5rem; }
}

/* Badge */
.best-choice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #f59e0b, #f97316); /* amber-500 to orange-500 */
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .best-choice-badge { font-size: 1rem; position: absolute; top: 1.5rem; right: 2rem; margin-bottom: 0; }
}

.best-choice-badge svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Feature Grid */
.best-choice-features {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .best-choice-features { grid-template-columns: repeat(2, 1fr); }
}

.feature-box {
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: white;
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-box h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e3056;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-box ul li {
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.feature-box ul li::before {
    content: '•';
    color: #334155;
    position: absolute;
    left: 0;
}

/* Cost Comparison */
.cost-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .cost-grid { grid-template-columns: 1fr 1fr; }
}

.cost-box {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
}

.cost-box.bad {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.cost-box.good {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.cost-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cost-box.bad h4 { color: #7f1d1d; }
.cost-box.good h4 { color: #14532d; }

.cost-box ul {
    list-style: disc;
    padding-left: 1rem;
    margin: 0;
}

.cost-box ul li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cost-box.bad ul { color: #991b1b; }
.cost-box.good ul { color: #166534; }

/* Savings Footer */
.savings-box {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(to right, #fffbeb, #fff7ed);
    border: 2px solid #fcd34d;
    text-align: center;
    font-weight: 700;
    color: #78350f;
    font-size: 1.125rem;
}

/* 7. Alternative Provider Card (Redesign) */
.alt-provider-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.alt-provider-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-0.25rem);
}

.alt-provider-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alt-provider-rank {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Variant colors for ranks */
/* Rank 3 = Purple */
.alt-provider-card[data-rank="3"] .alt-provider-rank {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}
/* Rank 4 = Indigo */
.alt-provider-card[data-rank="4"] .alt-provider-rank {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.alt-provider-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e3056;
    margin: 0;
}

@media (min-width: 640px) {
    .alt-provider-header h3 { font-size: 1.25rem; }
}

.alt-box {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.alt-box.success {
    background-color: #f0fdf4; /* green-50 */
    border: 1px solid #bbf7d0;
}
.alt-box.success.bg-gradient {
    /* For purple variant */
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: rgba(168, 85, 247, 0.2);
}

.alt-box.danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}
.alt-box.warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
}

.alt-box h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alt-box.success h4 { color: #15803d; }
.alt-box.danger h4 { color: #b91c1c; }
.alt-box.warning h4 { color: #b45309; }

.alt-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alt-box ul li {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    position: relative;
    padding-left: 0.75rem;
}

/* Bullet colors */
.alt-box.success ul li { color: #166534; }
.alt-box.success ul li::before { content: '•'; color: #16a34a; position: absolute; left: 0; font-weight: bold; }

.alt-box.danger ul li { color: #991b1b; }
.alt-box.danger ul li::before { content: '•'; color: #dc2626; position: absolute; left: 0; font-weight: bold; }

.alt-box.warning ul li { color: #92400e; }
.alt-box.warning ul li::before { content: '•'; color: #d97706; position: absolute; left: 0; font-weight: bold; }

.alt-provider-footer {
    font-size: 0.75rem;
    color: #475569;
    font-style: italic;
    margin-top: auto;
}

/* Alternatives Grid Layout */
.alternatives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .alternatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .alternatives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
