/* ==========================================
EPFO Article Styling
========================================== */

/* ===========================
   Post Hero Section
=========================== */
.post-hero {
    background: #f4f7fb;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 35px 25px;
    margin: 30px auto 35px;
    text-align: center;
    max-width: 1200px;
    box-sizing: border-box;
}

/* Hero heading */
.post-hero h1 {
    color: #1e293b;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    margin: 0 auto 15px;
}

/* Hero description */
.post-hero p {
    color: #526174;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 18px;
}

/* Date and view count */
.post-hero .meta {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0 auto;
    display: block;
}


/* Main article */
.epfo-article {
    --epfo-primary: #174b37;
    --epfo-secondary: #247653;
    --epfo-light: #eef7f1;
    --epfo-border: #e2e9e4;
    --epfo-text: #303b34;
    --epfo-muted: #647168;

    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 22px 30px;
    box-sizing: border-box;

    color: var(--epfo-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.85;

    text-align: left !important;
    overflow-wrap: break-word;
}

/* Force consistent alignment */
.epfo-article,
.epfo-article * {
    box-sizing: border-box;
}

.epfo-article p,
.epfo-article li,
.epfo-article h2,
.epfo-article h3,
.epfo-article strong,
.epfo-article div,
.epfo-article span,
.epfo-article td,
.epfo-article th {
    text-align: left !important;
}

/* Paragraphs */
.epfo-article p {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    text-align: left !important;
}

/* Headings */
.epfo-article h2 {
    display: block;
    width: 100%;
    color: var(--epfo-primary);
    font-size: 25px;
    font-weight: 750;
    line-height: 1.4;
    margin: 38px 0 17px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--epfo-border);
    text-align: left !important;
}

.epfo-article h3 {
    display: block;
    width: 100%;
    color: #245b40;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    margin: 25px 0 12px;
    text-align: left !important;
}

.epfo-article strong {
    color: #244b36;
}

.epfo-article a {
    color: #19734c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Introduction */
.epfo-article .epfo-intro {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #eff8f2, #f8fbf8);
    border: 1px solid #dcebe0;
    border-left: 4px solid var(--epfo-secondary);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 25px;
    text-align: left !important;
}

.epfo-article .epfo-intro p:last-child {
    margin-bottom: 0;
}

/* Highlights */
.epfo-article .epfo-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.epfo-article .epfo-highlight {
    background: #fff;
    border: 1px solid var(--epfo-border);
    border-radius: 10px;
    padding: 17px 15px;
    text-align: center !important;
}

.epfo-article .epfo-highlight strong {
    display: block;
    color: var(--epfo-primary);
    font-size: 23px;
    text-align: center !important;
}

.epfo-article .epfo-highlight span {
    display: block;
    color: var(--epfo-muted);
    font-size: 13px;
    text-align: center !important;
}

/* Tables */
.epfo-article .epfo-table-wrap {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 20px 0 25px;
    border: 1px solid var(--epfo-border);
    border-radius: 9px;
    -webkit-overflow-scrolling: touch;
}

.epfo-article table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    line-height: 1.65;
    text-align: left !important;
}

.epfo-article table th {
    background: #edf5ef;
    color: var(--epfo-primary);
    font-weight: 700;
    padding: 13px 15px;
    border-bottom: 1px solid var(--epfo-border);
}

.epfo-article table td {
    padding: 12px 15px;
    border-bottom: 1px solid #edf0ed;
    vertical-align: top;
}

.epfo-article table tr:last-child td {
    border-bottom: none;
}

/* Information boxes */
.epfo-article .epfo-info,
.epfo-article .epfo-warning,
.epfo-article .epfo-success {
    display: block;
    width: 100%;
    padding: 17px 20px;
    margin: 22px 0;
    border-radius: 9px;
    text-align: left !important;
}

.epfo-article .epfo-info {
    background: #eff6ff;
    border: 1px solid #d7e7fa;
    border-left: 4px solid #4383c7;
}

.epfo-article .epfo-warning {
    background: #fff8e8;
    border: 1px solid #f0e1b9;
    border-left: 4px solid #d49a27;
}

.epfo-article .epfo-success {
    background: var(--epfo-light);
    border: 1px solid #d6e9db;
    border-left: 4px solid #378653;
}

/* Service cards */
.epfo-article .epfo-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 22px 0;
}

.epfo-article .epfo-service-card {
    display: block;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--epfo-border);
    border-radius: 10px;
    background: #fff;
    text-align: left !important;
}

.epfo-article .epfo-service-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.epfo-article .epfo-service-card p {
    font-size: 14px;
    color: var(--epfo-muted);
    margin: 0;
}

/* Steps */
.epfo-article .epfo-steps {
    list-style: none;
    padding: 0;
    counter-reset: epfo-step;
    margin: 22px 0;
}

.epfo-article .epfo-steps li {
    counter-increment: epfo-step;
    position: relative;
    padding: 4px 0 19px 52px;
    margin: 0;
    text-align: left !important;
}

.epfo-article .epfo-steps li::before {
    content: counter(epfo-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--epfo-light);
    border: 1px solid #d2e6d8;
    color: var(--epfo-primary);
    font-weight: 750;
}

/* FAQ */
.epfo-article .epfo-faq {
    display: block;
    width: 100%;
    border: 1px solid var(--epfo-border);
    border-radius: 9px;
    margin: 12px 0;
    overflow: hidden;
    background: #fff;
    text-align: left !important;
}

.epfo-article .epfo-faq summary {
    padding: 16px 45px 16px 19px;
    font-weight: 700;
    color: var(--epfo-primary);
    cursor: pointer;
    line-height: 1.6;
    list-style: none;
    position: relative;
    text-align: left !important;
}

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

.epfo-article .epfo-faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
}

.epfo-article .epfo-faq[open] summary::after {
    content: "−";
}

.epfo-article .epfo-faq .epfo-faq-answer {
    padding: 0 19px 17px;
    color: var(--epfo-muted);
    font-size: 15px;
    text-align: left !important;
}

/* Conclusion */
.epfo-article .epfo-conclusion {
    display: block;
    background: linear-gradient(135deg, #eff7f1, #f9fbf9);
    border: 1px solid #dcebe0;
    border-radius: 10px;
    padding: 22px;
    margin-top: 30px;
    text-align: left !important;
}

/* List left spacing */
.epfo-article ul,
.epfo-article ol {
    padding-left: 30px;
    margin-left: 8px;
    margin-bottom: 22px;
}

.epfo-article li {
    padding-left: 5px;
    margin-bottom: 10px;
    text-align: left !important;
}

/* Responsive */

@media (max-width: 768px) {
    .post-hero {
        padding: 25px 16px;
        margin: 22px 12px 28px;
        border-radius: 10px;
    }

    .post-hero h1 {
        font-size: 24px;
    }

    .post-hero p {
        font-size: 15px;
    }
}

@media (max-width: 700px) {

    .post-hero {
        padding: 18px 15px;
        margin-bottom: 22px;
    }

    .epfo-article {
        font-size: 15px;
        line-height: 1.8;
        padding: 0 15px 25px;
    }

    .epfo-article h2 {
        font-size: 21px;
        margin-top: 30px;
    }

    .epfo-article h3 {
        font-size: 17px;
    }

    .epfo-article .epfo-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .epfo-article .epfo-highlight {
        padding: 14px 10px;
    }

    .epfo-article .epfo-highlight strong {
        font-size: 20px;
    }

    .epfo-article .epfo-service-grid {
        grid-template-columns: 1fr;
    }

    .epfo-article .epfo-intro,
    .epfo-article .epfo-conclusion {
        padding: 17px;
    }
}

@media (max-width: 380px) {
    .epfo-article .epfo-highlights {
        grid-template-columns: 1fr;
    }
}