/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --cpf-primary: #00ff00 !important;
    /* Reverted to Neon Green */
    --cpf-dark: #1e293b !important;
    /* Slate 800 */
    --cpf-text: #334155 !important;
    /* Slate 700 */
    --cpf-border: #e2e8f0 !important;
    --cpf-link: #008000 !important;
    /* Slightly darker green for text readability */
    --cpf-bg-table-head: #f1f5f9 !important;
    --cpf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Base Wrapper */
.custom-page-content {
    font-family: 'Poppins', sans-serif !important;
    color: var(--cpf-dark) !important;
    line-height: 1.8 !important;
    font-size: 17px !important;
    max-width: 100% !important;
}

/* 1. Main Page Title (H1) */
body.page h1.entry-title,
body.page .page-header h1,
body.page h1.wp-block-post-title,
.custom-page-content h1 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.5rem !important;
    /* 40px */
    font-weight: 800 !important;
    color: var(--cpf-dark) !important;
    margin-bottom: 50px !important;
    position: relative !important;
    display: inline-block !important;
    letter-spacing: -0.5px !important;
}

body.page h1.entry-title::after,
body.page .page-header h1::after,
body.page h1.wp-block-post-title::after,
.custom-page-content h1::after {
    content: "";
    position: absolute !important;
    bottom: -12px !important;
    left: 0 !important;
    width: 60px !important;
    height: 6px !important;
    background: var(--cpf-primary) !important;
    border-radius: 0 !important;
    display: block !important;
    transition: width 0.3s ease !important;
}

body.page h1.entry-title:hover::after,
.custom-page-content h1:hover::after {
    width: 100px !important;
}

/* 2. Headings (H2 - H6) */
.custom-page-content h2,
.custom-page-content h3,
.custom-page-content h4,
.custom-page-content h5,
.custom-page-content h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    margin-top: 50px !important;
    margin-bottom: 25px !important;
    position: relative !important;
    padding-left: 24px !important;
    color: var(--cpf-dark) !important;
    border: none !important;
    line-height: 1.3 !important;
    transition: color 0.3s ease !important;
}

.custom-page-content h2:hover {
    color: var(--cpf-primary) !important;
}

.custom-page-content h2 {
    font-size: 1.8rem !important;
    letter-spacing: -0.02em !important;
}

.custom-page-content h3 {
    font-size: 1.5rem !important;
}

.custom-page-content h4 {
    font-size: 1.25rem !important;
}

.custom-page-content h5 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.custom-page-content h6 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: var(--cpf-text) !important;
}

/* The Modern Accent Bar - SHARP & CLEAN */
.custom-page-content h2::before,
.custom-page-content h3::before,
.custom-page-content h4::before,
.custom-page-content h5::before,
.custom-page-content h6::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 4px !important;
    height: 100% !important;
    min-height: 24px !important;
    background: var(--cpf-primary) !important;
    border-radius: 0 !important;
    display: block !important;
}

/* 3. Horizontal Line */
.custom-page-content hr {
    border: 0;
    height: 1px !important;
    background: linear-gradient(to right, var(--cpf-border), transparent) !important;
    margin: 50px 0 !important;
}

/* 4. Paragraphs & Text */
.custom-page-content p {
    color: var(--cpf-text) !important;
    margin-bottom: 24px !important;
    text-align: justify !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
}

/* 5. Blockquotes */
.custom-page-content blockquote {
    border-left: none !important;
    position: relative !important;
    padding: 30px 40px !important;
    font-style: italic !important;
    color: var(--cpf-dark) !important;
    margin: 40px 0 !important;
    background: #f8fafc !important;
    border-radius: 4px !important;
    box-shadow: inset 4px 0 0 var(--cpf-primary), var(--cpf-shadow) !important;
    font-size: 1.1rem !important;
}

.custom-page-content blockquote::before {
    content: "\201C";
    position: absolute !important;
    top: 10px !important;
    left: 20px !important;
    font-size: 60px !important;
    color: var(--cpf-primary) !important;
    opacity: 0.2 !important;
    font-family: serif !important;
}

/* 6. Links */
.custom-page-content a {
    color: var(--cpf-link) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 2px solid rgba(0, 255, 0, 0.3) !important;
    /* Sharper line */
    display: inline !important;
    background: none !important;
    transition: all 0.2s !important;
}

.custom-page-content a:hover {
    color: var(--cpf-dark) !important;
    border-bottom: 2px solid var(--cpf-primary) !important;
    background-color: rgba(0, 255, 0, 0.1) !important;
}

/* 7. Lists */
.custom-page-content ul,
.custom-page-content ol {
    margin: 30px 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.custom-page-content ul li,
.custom-page-content ol li {
    margin-bottom: 16px !important;
    color: var(--cpf-text) !important;
    font-size: 1.05rem !important;
    position: relative !important;
    line-height: 1.8 !important;
}

/* Bullets - Sharp Squares */
.custom-page-content ul li {
    padding-left: 28px !important;
}

.custom-page-content ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 11px !important;
    width: 6px !important;
    height: 6px !important;
    background: var(--cpf-primary) !important;
    border-radius: 0 !important;
}

/* Ordered */
.custom-page-content ol {
    counter-reset: cpf-counter !important;
}

.custom-page-content ol li {
    counter-increment: cpf-counter !important;
    display: table !important;
    width: 100% !important;
}

.custom-page-content ol li::before {
    content: "(" counter(cpf-counter, lower-alpha) ")" !important;
    font-weight: 700 !important;
    color: var(--cpf-primary) !important;
    display: table-cell !important;
    padding-right: 15px !important;
    white-space: nowrap !important;
    width: 30px !important;
    vertical-align: top !important;
}

/* 8. Tables - Sharper */
.custom-page-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 40px 0 !important;
    border: 1px solid var(--cpf-border) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: var(--cpf-shadow) !important;
}

.custom-page-content table th,
.custom-page-content table td {
    padding: 16px 20px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--cpf-border) !important;
}

.custom-page-content table th {
    background-color: #f8fafc !important;
    color: var(--cpf-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
}

.custom-page-content table tr:last-child td {
    border-bottom: none !important;
}

.custom-page-content table tr:hover td {
    background-color: #f1f5f9 !important;
}

/* 9. Images - Sharper */
.custom-page-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
    box-shadow: var(--cpf-shadow) !important;
    margin: 30px 0 !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.custom-page-content img:hover {
    transform: scale(1.01) !important;
}

.custom-page-content figcaption {
    text-align: center !important;
    font-size: 0.9rem !important;
    color: var(--cpf-text) !important;
    margin-top: 12px !important;
    font-weight: 500 !important;
}

/* Mobile Adjustments */
@media(max-width: 768px) {
    .custom-page-content {
        font-size: 16px !important;
    }

    .custom-page-content h1 {
        font-size: 2rem !important;
    }

    .custom-page-content h2 {
        font-size: 1.5rem !important;
    }

    .custom-page-content ul li {
        padding-left: 24px !important;
    }

    .custom-page-content blockquote {
        padding: 20px !important;
    }

    .custom-page-content table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        border-radius: 4px !important;
    }
}