/* 
 * assets/css/proven-ways.css
 * Bespoke style for "Proven Ways to Avoid Common Mistakes in Secondary Claim Submission"
 * Follows AGENTS.md 9-color palette and typography rules
 */

/* ==========================================================================
   Base Scope (isolated to this page)
   ========================================================================== */
body {
    background-color: var(--color-background);
    color: var(--color-body-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Progress Bar (New Pattern)
   ========================================================================== */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Split Offset Hero (New Pattern)
   ========================================================================== */
.proven-hero {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(242, 248, 251, 0.82) 60%, rgba(255, 255, 255, 0.94) 100%),
        radial-gradient(circle at 10% 20%, rgba(24, 183, 201, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 102, 179, 0.08) 0%, transparent 40%),
        url('../../img/blog-img/blog_post_hero_bg.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
    overflow: hidden;
    position: relative;
}

.proven-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(24, 183, 201, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.proven-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.proven-hero-text .blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-body-text);
    margin-bottom: 16px;
    font-weight: 500;
}

.proven-hero-text .blog-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.proven-hero-text .blog-breadcrumb a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.proven-hero-text .blog-breadcrumb .breadcrumb-separator {
    color: var(--color-border);
    font-size: 0.75rem;
}

.proven-hero-text .blog-breadcrumb span[aria-current="page"] {
    color: var(--color-body-text);
    font-weight: 600;
}

.proven-hero-text .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-background-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    width: max-content;
}

.proven-hero-text .section-badge ion-icon {
    font-size: 1.1rem;
    color: var(--color-secondary);
    filter: drop-shadow(0 0 5px rgba(24, 183, 201, 0.55));
}

.proven-hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.proven-hero-text h1 .accent {
    color: var(--color-primary);
}

.proven-hero-text p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-body-text);
    margin-bottom: 28px;
    max-width: 95%;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.proven-author-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-background);
    padding: 8px 20px 8px 8px;
    border-radius: 99px;
    border: 1px solid var(--color-border);
    width: max-content;
    box-shadow: 0 4px 14px rgba(0, 102, 179, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proven-author-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 179, 0.1);
}

.proven-author-badge img,
.proven-author-img,
.author-badge-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.proven-author-img {
    border: 2px solid var(--color-background-soft);
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.12);
}

.author-badge-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-background);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.25);
    user-select: none;
}

.proven-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.proven-author-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--color-text);
    font-size: 14.5px;
}

.proven-author-date {
    font-size: 12.5px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.proven-hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proven-hero-visual .main-img {
    width: 85%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(18, 48, 74, 0.08);
    position: absolute;
    top: 10%;
    right: 0;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.proven-hero-visual .author-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--color-background-soft);
    box-shadow: 0 16px 32px rgba(0, 102, 179, 0.15);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 991px) {
    .proven-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .proven-hero-text p {
        margin: 0 auto 32px auto;
    }

    .proven-author-badge {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Content Grid & Layout
   ========================================================================== */
.proven-content-wrapper {
    max-width: 1100px;
    /* Widened from 800px to reduce free space */
    margin: 0 auto;
    padding: clamp(38px, 4.5vw, 54px) 24px;
}

.proven-content-wrapper h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 3vw, 32px);
    font-weight: 700;
    color: var(--color-text);
    margin: 48px 0 24px;
    position: relative;
}

.proven-content-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.proven-content-wrapper h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 32px 0 16px;
}

.proven-content-wrapper p {
    margin-bottom: 24px;
    font-size: 16px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* ==========================================================================
   Interactive Hover-Reveal Mistake Cards (New Pattern)
   ========================================================================== */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.mistake-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mistake-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(24, 183, 201, 0.08);
    border-color: var(--color-accent);
}

.mistake-icon {
    width: 48px;
    height: 48px;
    background: var(--color-background-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 24px;
    transition: all 0.3s ease;
}

.mistake-card:hover .mistake-icon {
    background: var(--color-secondary);
    color: var(--color-background);
    filter: drop-shadow(0 0 5px rgba(24, 183, 201, 0.55));
    transform: scale(1.1);
}

.mistake-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.mistake-card p {
    font-size: 15px;
    margin: 0;
    color: var(--color-body-text);
}

/* ==========================================================================
   Semantic Details/Summary FAQ (New Pattern)
   ========================================================================== */
.semantic-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
}

.semantic-faq details {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.semantic-faq summary {
    padding: 20px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.semantic-faq summary::-webkit-details-marker {
    display: none;
}

.semantic-faq summary:hover {
    background-color: var(--color-background-soft);
}

.semantic-faq summary .faq-icon {
    color: var(--color-primary);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.semantic-faq details[open] summary .faq-icon {
    transform: rotate(180deg);
}

.semantic-faq details[open] summary {
    background-color: var(--color-background-soft);
    border-bottom: 1px solid var(--color-border);
}

.faq-body {
    padding: 24px;
    color: var(--color-body-text);
    font-size: 16px;
    background: var(--color-background);
    line-height: 1.6;
}

/* ==========================================================================
   New Components & Interactive Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.takeaways-box {
    background: linear-gradient(135deg, var(--color-background-soft) 0%, #FFFFFF 100%);
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-primary);
    padding: 28px 32px;
    border-radius: 14px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.05);
}

.takeaways-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.takeaways-box h3 ion-icon {
    color: var(--color-secondary);
    filter: drop-shadow(0 0 5px rgba(24, 183, 201, 0.55));
    font-size: 1.4rem;
}

.takeaways-box p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--color-text);
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.takeaways-box p:last-child {
    margin-bottom: 0;
}

/* Best Practices Grid */
.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.practice-step-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 16px rgba(18, 48, 74, 0.04);
    z-index: 1;
}

.practice-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 102, 179, 0.04), transparent 50%);
    z-index: -1;
    transition: transform 0.4s ease;
}

.practice-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 102, 179, 0.09);
    border-color: var(--color-secondary);
}

.practice-step-card:hover::before {
    transform: scale(1.3);
}

/* FIX: Flexible Pill Badge for Phase / Step numbers - fixes text clipping & distortion */
.practice-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: max-content;
    height: 32px;
    padding: 0 16px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.25);
}

.practice-step-card h3,
.practice-step-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.practice-step-card h3 .accent,
.practice-step-card h4 .accent {
    color: var(--color-primary);
}

.practice-step-card p {
    font-size: 15.5px;
    color: var(--color-body-text);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.practice-step-card p:last-child {
    margin-bottom: 0;
}

.practice-step-card ul {
    margin: 16px 0;
    padding-left: 20px;
}

.practice-step-card ul li {
    font-size: 15px;
    color: var(--color-body-text);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Styled semantic icon list */
.practice-step-card ul.step-icon-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    gap: 12px;
}

.practice-step-card ul.step-icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.55;
    margin-bottom: 0;
}

.practice-step-card ul.step-icon-list li ion-icon {
    color: var(--color-secondary);
    filter: drop-shadow(0 0 4px rgba(24, 183, 201, 0.45));
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive Table Wrapper & Clean Healthcare Data Table */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 102, 179, 0.04);
    background: var(--color-background);
}

.comparison-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    text-align: left;
}

.comparison-data-table th {
    background: var(--color-background-soft);
    color: var(--color-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: 2px solid var(--color-border);
}

.comparison-data-table td {
    padding: 14px 20px;
    color: var(--color-body-text);
    border-bottom: 1px solid var(--color-border);
    line-height: 1.5;
}

.comparison-data-table tr:last-child td {
    border-bottom: none;
}

.comparison-data-table tr:hover td {
    background: rgba(242, 248, 251, 0.6);
}

/* Step CTA Button */
.step-cta-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: 99px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(0, 102, 179, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-cta-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.35);
    color: #FFFFFF;
}

.step-cta-action ion-icon {
    font-size: 18px;
}

/* ==========================================================================
   Author Bio Section (bottom of article)
   ========================================================================== */
.proven-author-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 40px) 24px clamp(38px, 4.5vw, 54px);
}

.proven-author-section-inner {
    position: relative;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 102, 179, 0.04);
}

.author-section-tag {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--color-primary);
    color: var(--color-background);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    border-radius: 99px;
}

.author-bio-card {
    display: flex;
    align-items: center;
    gap: 28px;
}

.author-bio-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-background-soft);
    box-shadow: 0 8px 20px rgba(0, 102, 179, 0.12);
    flex-shrink: 0;
}

.author-bio-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-bio-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.author-bio-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.author-bio-text p {
    font-size: 15px;
    color: var(--color-body-text);
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* FAQ Answer Paragraph Justification & Word Break Protection */
.contact-faq-answer-inner p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}