/*
Theme Name: GeneratePress Child Fintech
Theme URI: https://generatepress.com
Description: Authority-first fintech publisher child theme. Optimized for Core Web Vitals and YMYL.
Author: Jairaj
Author URI: https://paisascope.in
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   1. CORE VARIABLES & SETUP
   ========================================================================== */
:root {
    --color-primary: #0f172a;
    --color-slate-900: #0f172a;
    /* Slate 900 - Trustworthy Dark */
    --color-accent: #2563eb;
    --color-blue-600: #2563eb;
    /* Royal Blue - Action */
    --color-success: #16a34a;
    /* Green - Positive/Money */
    --color-warning: #ca8a04;
    --color-danger: #dc2626;
    --color-bg-light: #f8fafc;
    --color-text-body: #334155;

    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --width-content: 720px;
    /* Readability focus */
    --gap-block: 2rem;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-light);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   2. CONTENT LAYOUT (Readability First)
   ========================================================================== */

/* Restrict Single Post Content Width */
.single .site-content,
.page .site-content {
    display: flex;
    justify-content: center;
}

.inside-article {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.post-content-wrapper {
    padding-left: 40px !important;
    padding-right: 40px !important;
    padding-top: 40px;
    padding-bottom: 40px;
    box-sizing: border-box;
    width: 100%;
}

/* Mobile Core Web Vitals check */
@media (max-width: 992px) {
    .inside-article {
        max-width: 100%;
    }

    .post-content-wrapper {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 768px) {
    .inside-article {
        border-radius: 0;
        box-shadow: none;
    }

    .post-content-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ==========================================================================
   3. COMPONENTS & TRUST SIGNALS
   ========================================================================== */

/* Affiliate Disclosure */
.fn-affiliate-disclosure {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 3px solid var(--color-accent);
}

/* Author Box (Mini Header) */
.fn-meta-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.fn-meta-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

/* Comparison Tables */
.fn-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.fn-comparison-table th,
.fn-comparison-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.fn-comparison-table th {
    background: #f8fafc;
    font-weight: 600;
}

.fn-cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s, outline 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.fn-cta-button:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.fn-cta-button:hover {
    background: #1e40af;
    /* Darker blue */
    color: #fff;
}

/* Pros & Cons */
.fn-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 2rem 0;
}

.fn-pro-box,
.fn-con-box {
    padding: 20px;
    border-radius: 8px;
}

.fn-pro-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.fn-con-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.fn-pro-title {
    color: var(--color-success);
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.fn-con-title {
    color: var(--color-danger);
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.fn-list-check li,
.fn-list-cross li {
    position: relative;
    padding-left: 20px;
}

.fn-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.fn-list-cross li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--color-danger);
    font-weight: bold;
}

ul.fn-list-check,
ul.fn-list-cross {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Responsive Grid for Pros/Cons */
@media (max-width: 600px) {
    .fn-pros-cons {
        grid-template-columns: 1fr;
    }
}

/* Disclaimer & Footer */
.fn-disclaimer {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    background: #0f172a;
    margin-top: 4rem;
}

/* ==========================================================================
   ADDITIONAL UTILITIES
   ========================================================================== */

/* Breadcrumbs (if using Yoast or similar, style them here) */
.breadcrumbs {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* FAQ Styles */
.fn-faq-section {
    margin: 2rem 0;
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
}

.fn-faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.fn-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    list-style: none;
    /* Hide default triangle in some browsers if desired */
}

.fn-faq-item summary::-webkit-details-marker {
    display: none;
}

.fn-faq-item summary::after {
    content: "+";
    float: right;
    font-weight: bold;
}

.fn-faq-item[open] summary::after {
    content: "-";
}

.fn-faq-answer {
    margin-top: 10px;
    color: var(--color-text-body);
}

/* ==========================================================================
   4. CUSTOM FINTECH COMPONENTS (YMYL & E-E-A-T)
   ========================================================================== */

/* Financial Disclaimer (Top of Page) */
.fn-financial-disclaimer {
    background-color: #f1f5f9;
    background-color: oklch(0.97 0.01 200);
    /* Very soft slate tint */
    border: 1px solid #e2e8f0;
    border: 1px solid oklch(0.9 0.02 200);
    padding: 12px 16px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--color-text-body);
    border-radius: 6px;
    font-style: italic;
    line-height: 1.5;
}

/* Author & Reviewer Box */
.fn-author-box {
    background-color: var(--color-bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fn-author-box strong {
    color: var(--color-primary);
}

/* Trust Box (Inline) */
.fn-trust-box-inline {
    background-color: #ecfdf5;
    background-color: oklch(0.98 0.04 150);
    /* Soft Mint for Trust */
    border: 1px dashed #6ee7b7;
    border: 1px dashed oklch(0.8 0.1 150);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.fn-trust-box-inline p {
    margin: 0;
    color: #064e3b;
    color: oklch(0.3 0.05 150);
    /* Deep green text */
    font-size: 0.95rem;
}

/* Pros & Cons Refinement */
.fn-pros,
.fn-cons {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.fn-pros {
    background: #f0fdf4;
    background: oklch(0.98 0.03 145);
    border: 1px solid #bbf7d0;
    border: 1px solid oklch(0.9 0.05 145);
}

.fn-cons {
    background: #fef2f2;
    background: oklch(0.98 0.03 20);
    border: 1px solid #fecaca;
    border: 1px solid oklch(0.9 0.05 20);
}

.fn-pros::before {
    content: "PROS";
    font-weight: 800;
    color: var(--color-success);
    display: block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.fn-cons::before {
    content: "CONS";
    font-weight: 800;
    color: var(--color-danger);
    display: block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* Sponsored Note (Transparency) */
.fn-sponsored-note {
    font-size: 0.65rem;
    text-transform: uppercase;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: super;
    margin-left: 5px;
    color: #475569;
    font-weight: 700;
}

/* FAQ Accordion (Modern Details/Summary) */
.fn-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fn-faq-item summary {
    padding: 15px;
    font-weight: 600;
    outline: none;
    transition: color 0.2s;
}

.fn-faq-item[open] summary {
    border-bottom: 1px solid #e2e8f0;
    color: var(--color-accent);
}

.fn-faq-answer {
    padding: 15px;
    background: var(--color-bg-light);
    font-size: 0.95rem;
}

/* Review Hero Section Styling */
.fn-review-hero {
    background-color: #eff6ff;
    background-color: oklch(0.97 0.02 240);
    /* Soft Blue Tint */
    padding: 24px;
    border-radius: 12px;
    margin: 25px 0;
}

.fn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.fn-stats-grid .stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.fn-stats-grid .stat-box strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.fn-hero-cta {
    margin-top: 25px;
    text-align: center;
}

.fn-hero-cta small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.75rem;
}

/* Editorial Badge Component */
.fn-editorial-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #334155;
    background-color: #f1f5f9;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* Updated Date Highlight */
.fn-updated-date {
    display: inline-block;
    font-weight: 600;
    color: var(--color-success);
}

/* ==========================================================================
   Fintech Child Theme - Implementation Guide
   ========================================================================== */

/*
   1. INSTALLATION:
      - Upload this 'generatepress-child' folder to /wp-content/themes/
      - Activate 'GeneratePress Child Fintech' in Appearance > Themes.
      - Ensure parent 'GeneratePress' theme is installed.

   2. CONFIGURATION:
      - Go to Appearance > Customize > Layout > Container. Set Width to 1200px (Theme handles inner 720px for posts).
      - Go to Appearance > Customize > Colors. Match the variables in style.css if desired, or let CSS override.
   
   3. MENUS & NAVIGATION:
      - Create categories (Credit Cards, Personal Loans, etc.) matching the Silo Structure.
      - Add these categories to the Primary Menu.

   4. PAGE TEMPLATES:
      - for "Best Credit Cards" (Pillar): Select 'Pillar Guide' template.
      - for "HDFC Regalia Review": Select 'Product Review' template.
      - for "Compare Loans": Select 'Comparison Page' template.
      - for standard articles: Default Template (single.php auto-applies).

   5. TRUST SIGNALS:
      - The theme automatically adds 'Affiliate Disclosure' above content.
      - 'Author Box' appears if Author Bio is filled in Users > Profile.
      - 'Editorial Policy' links in footer/popups need the pages created (/editorial-policy).

   6. SHORTCODES:
      - [current_year] -> 2026
      - [trust_box] -> Inserts "Why trust us" box.
      - [affiliate_button url="https://..." label="Go"] -> Button.
      - [faq_wrap][faq q="Wait?"]Yes[/faq][/faq_wrap] -> FAQ Schema block.

*/

/* ==========================================================================
   5. SINGLE POST STYLES
   ========================================================================== */

/* From original inline block */
.entry-content {
    max-width: 100%;
}

.entry-content p {
    line-height: 1.7;
    font-size: 18px;
    margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.entry-content h2 {
    font-size: 2.2rem;
}

.entry-content h3 {
    font-size: 1.6rem;
}

.fn-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #475569;
}

.fn-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.fn-breadcrumb a:hover {
    text-decoration: underline;
}

.fn-breadcrumb a:not(:last-child)::after {
    content: " / ";
    margin: 0 5px;
    color: #94a3b8;
}

/* Trust Signals and Components */
.fn-featured-image-wrapper {
    margin: 20px 0 30px;
}

.fn-featured-image-wrapper img {
    border-radius: 12px;
    margin-bottom: 30px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.fn-post-meta {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 30px !important;
    font-weight: 500;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    line-height: 1 !important;
    /* using 1 or normal for better inline alignment without hover effect */
}

.fn-post-meta span {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.fn-editorial-badge {
    background: #E0F2FE;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.fn-post-date time {
    display: inline;
}

/* Hide Duplicate GeneratePress entry-meta under entry-header */
.single .entry-header .entry-meta {
    display: none !important;
}

.fn-single-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    margin: 40px 0;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.fn-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.fn-author-info {
    flex-grow: 1;
}

.fn-author-name {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

.fn-author-name a {
    color: #0f172a;
    text-decoration: none;
}

.fn-author-title {
    font-size: 14px;
    color: #1E40AF;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.fn-author-bio {
    font-size: 15px;
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.fn-bottom-disclaimer {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 40px 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

.fn-bottom-disclaimer strong {
    display: block;
    margin-bottom: 5px;
    color: #713f12;
}

.fn-related-posts {
    margin-top: 40px;
    border-top: 2px solid #e2e8f0;
    padding-top: 30px;
}

.fn-related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.fn-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fn-related-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fn-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fn-related-card a {
    text-decoration: none;
    color: var(--color-slate-900, var(--color-primary));
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fn-related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.fn-related-title {
    font-size: 1rem;
    line-height: 1.4;
    color: #0f172a;
    margin-top: 10px;
    padding: 15px;
}

/* ==========================================================================
   6. GLOBAL TRUST FOOTER
   ========================================================================== */
.fn-trust-footer-block {
    background: #f9fafb;
    padding: 40px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.fn-trust-footer-block .fn-container {
    max-width: 1200px;
    margin: 0 auto;
}

.fn-trust-footer-content {
    margin-bottom: 20px;
}

.fn-trust-footer-content p {
    margin-top: 8px;
}

.fn-trust-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.fn-trust-footer-links a {
    color: #2563eb;
    text-decoration: none;
}

.fn-trust-footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   7. E-E-A-T AUTHOR SYSTEM
   ========================================================================== */

.fn-author-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fn-author-box-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 600px) {
    .fn-author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.fn-author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

.fn-author-info {
    flex: 1;
}

.fn-author-name {
    margin: 0 0 5px;
    font-size: 1.25rem;
    font-weight: 700;
}

.fn-author-name a {
    color: var(--color-primary);
    text-decoration: none;
}

.fn-author-name a:hover {
    color: var(--color-accent);
}

.fn-author-title {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.fn-author-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid #a7f3d0;
}

.fn-author-experience {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.fn-author-expertise {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #334155;
}

.fn-expertise-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 4px;
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
}

.fn-author-bio-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 15px;
}

.fn-author-social {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .fn-author-social {
        justify-content: center;
    }
}

.fn-author-social a {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.fn-editorial-transparency {
    background: #f8fafc;
    border-left: 3px solid var(--color-accent);
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #475569;
    border-radius: 0 4px 4px 0;
}

.fn-editorial-transparency p {
    margin: 0;
}

.fn-editorial-transparency a {
    color: var(--color-accent);
    font-weight: 600;
}

/* Author Archive Styles */
.fn-author-archive-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fn-author-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .fn-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.fn-author-avatar-large img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #f1f5f9;
}

.fn-author-details {
    flex: 1;
}

.fn-badge-large {
    font-size: 0.85rem;
    padding: 6px 14px;
}

.fn-section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.fn-author-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.fn-author-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.fn-author-post-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.fn-post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.fn-post-summary {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fn-post-title {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.fn-post-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.fn-post-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
}

.fn-post-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}


/* ==========================================================================
   8. PREMIUM FINTECH UI BLUEPRINT (SERIES-A STANDARDS)
   ========================================================================== */

/* Typography & General Additions */
:root {
    --fn-primary-btn: #1E40AF;
    --fn-primary-hover: #4F46E5;
    --fn-bg-light: #F8FAFC;
    --fn-bg-card-tint: #F1F5F9;
    --fn-bg-dark: #0F172A;
    --fn-text-main: #0F172A;
    --fn-text-secondary: #475569;
    --fn-text-muted: #64748B;
    --fn-cta-green: #10B981;
    --fn-cta-green-hover: #059669;
    --fn-border-color: #E2E8F0;
    --fn-font-family: 'Inter', 'Manrope', system-ui, sans-serif;
}

/* Base Container Logic */
.fn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .fn-container {
        padding: 0 24px;
    }
}

@media (max-width: 600px) {
    .fn-container {
        padding: 0 16px;
    }
}

body {
    font-family: var(--fn-font-family);
    color: var(--fn-text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--fn-font-family);
    font-weight: 700;
}

.fn-section-title {
    font-weight: 700;
    color: var(--fn-text-main);
    margin-bottom: 40px;
}

/* Base Buttons */
.fn-btn-primary {
    background: var(--fn-primary-btn);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.fn-btn-primary:hover {
    background: var(--fn-primary-hover);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

.fn-btn-outline {
    background: transparent;
    color: var(--fn-text-main);
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid var(--fn-border-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.fn-btn-outline:hover {
    background: var(--fn-bg-card-tint);
}

.fn-btn-outline-white {
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.fn-btn-outline-white:hover {
    background: #fff;
    color: var(--fn-primary-btn);
}

.fn-btn-apply-green {
    background: var(--fn-cta-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.fn-btn-apply-green:hover {
    background: var(--fn-cta-green-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Hero Section */
.fn-hero-modern {
    background: linear-gradient(135deg, #1E40AF 0%, #4F46E5 100%);
    padding: 120px 0;
    overflow: hidden;
    color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.fn-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.fn-hero-content .fn-hero-title {
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.01em;
    word-break: normal;
}

.fn-hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    color: #E2E8F0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.fn-hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.fn-hero-actions .fn-btn-primary {
    background: #fff;
    color: var(--fn-primary-btn);
}

.fn-hero-actions .fn-btn-primary:hover {
    background: var(--fn-bg-card-tint);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.fn-hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.fn-hero-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: #fff;
    max-width: 320px;
    width: 100%;
}

.fn-glass-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fn-glass-stats-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.fn-glass-stats-list li:last-child {
    margin-bottom: 0;
}

.fn-glass-stats-list li svg {
    color: var(--fn-cta-green);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Trust Bar */
.fn-trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--fn-border-color);
    padding: 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fn-text-secondary);
}

.fn-trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fn-trust-bar-inner .sep {
    color: #CBD5E1;
}

/* Feature Cards */
.fn-feature-cards-section {
    padding: 100px 0;
    background: var(--fn-bg-light);
}

.fn-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fn-feature-card {
    background: #EEF2FF;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.08);
    border: 1px solid #E0E7FF;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fn-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.fn-feature-card:hover .fn-feature-icon {
    color: #fff;
    background: #1E40AF;
}

.fn-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--fn-bg-card-tint);
    color: var(--fn-text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.fn-feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--fn-text-main);
}

.fn-feature-desc {
    color: var(--fn-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.fn-feature-cta {
    color: #1E40AF;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
}

.fn-feature-cta:hover {
    text-decoration: underline;
}

/* How It Works Section */
.fn-how-it-works-section {
    padding: 100px 0;
    background: var(--fn-bg-light);
}

.fn-hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 50px;
}

.fn-hiw-step {
    text-align: center;
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid var(--fn-border-color);
}

.fn-hiw-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.fn-hiw-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E40AF 0%, #4F46E5 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.fn-hiw-step h4 {
    font-size: 20px;
    color: var(--fn-text-main);
    margin-bottom: 10px;
}

.fn-hiw-step p {
    color: var(--fn-text-secondary);
    line-height: 1.6;
}

/* Social Proof */
.fn-social-proof-section {
    padding: 100px 0;
    background: var(--fn-bg-card-tint);
}

.fn-trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.fn-trust-point {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.fn-tp-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.fn-trust-point h4 {
    font-weight: 600;
    font-size: 16px;
    color: var(--fn-text-main);
}

.fn-star-rating {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--fn-text-main);
}

.fn-media-logos {
    border-top: 1px solid var(--fn-border-color);
    padding-top: 30px;
}

.fn-media-logos span {
    font-size: 14px;
    color: var(--fn-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.fn-logos-placeholder {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.fn-logos-placeholder .logo-box {
    background: #fff;
    color: var(--fn-text-muted);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    border: 1px solid var(--fn-border-color);
}

/* Product Preview */
.fn-product-preview-section {
    padding: 100px 0;
    background: #fff;
}

.fn-preview-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--fn-border-color);
    overflow-x: auto;
}

.fn-preview-table {
    width: 100%;
    border-collapse: collapse;
}

.fn-preview-table th,
.fn-preview-table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--fn-border-color);
}

.fn-preview-table th {
    background: var(--fn-bg-light);
    color: var(--fn-text-muted);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
}

.fn-preview-table tbody tr:nth-child(even) {
    background-color: var(--fn-bg-light);
}

.fn-preview-table tbody tr:hover {
    background-color: var(--fn-bg-card-tint);
}

.fn-preview-table tr:last-child td {
    border-bottom: none;
}

.fn-card-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
    vertical-align: middle;
}

/* About Section */
.fn-about-modern-section {
    padding: 100px 0;
    background: var(--fn-bg-light);
}

.fn-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.fn-about-illustration-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.fn-about-svg {
    width: 120px;
    height: 120px;
    color: var(--fn-primary-btn);
}

.fn-about-intro {
    font-size: 18px;
    color: var(--fn-text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.fn-about-bullets {
    list-style: none;
    padding: 0;
}

.fn-about-bullets li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--fn-text-main);
}

.fn-about-bullets li svg {
    color: var(--fn-cta-green);
    flex-shrink: 0;
}

/* Strong CTA Section */
.fn-strong-cta-section {
    padding: 100px 0;
    background: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.fn-cta-block {
    background: linear-gradient(135deg, #1E3A8A 0%, #4338CA 100%);
    border-radius: 24px;
    padding: 100px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.fn-cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 5px, transparent 5px, transparent 20px);
    pointer-events: none;
}

.fn-cta-block h2 {
    color: #fff;
    font-size: clamp(32px, 3vw, 42px);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.fn-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.fn-btn-large {
    font-size: 18px;
    padding: 16px 36px;
}

.fn-strong-cta-section .fn-btn-primary {
    background: var(--fn-cta-green);
    color: #fff;
}

.fn-strong-cta-section .fn-btn-primary:hover {
    background: var(--fn-cta-green-hover);
}

/* Footer Redesign */
.fn-modern-footer {
    background: var(--fn-bg-dark);
    color: #CBD5E1;
    padding: 100px 0 0;
}

.fn-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.fn-footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--fn-font-family);
    display: inline-block;
    border-bottom: 2px solid var(--fn-primary-btn);
    padding-bottom: 8px;
}

.fn-footer-col p {
    color: #CBD5E1;
    line-height: 1.8;
}

.fn-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fn-footer-col ul li {
    margin-bottom: 12px;
}

.fn-footer-col ul li a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fn-footer-col ul li a:hover {
    color: #fff;
}

.fn-footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.fn-footer-social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fn-footer-social-icons a:hover {
    background: var(--fn-primary-btn);
    transform: translateY(-3px);
}

.fn-newsletter-box {
    margin-top: 20px;
}

.fn-newsletter-form {
    display: flex;
    gap: 10px;
}

.fn-newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1E293B;
    color: #fff;
    font-family: var(--fn-font-family);
}

.fn-newsletter-form input::placeholder {
    color: #94A3B8;
}

.fn-newsletter-form button {
    background: var(--fn-primary-btn);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: var(--fn-font-family);
}

.fn-newsletter-form button:hover {
    background: var(--fn-primary-hover);
}

.fn-footer-bottom {
    background: #0B1120;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #1E293B;
}

.fn-footer-bottom p {
    margin: 0;
    color: #94A3B8;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .fn-hero-grid,
    .fn-about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fn-hero-actions,
    .fn-hero-trust {
        justify-content: center;
    }

    .fn-hero-visual {
        justify-content: center;
    }

    .fn-feature-grid,
    .fn-hiw-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .fn-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fn-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fn-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .inside-header,
    .inside-navigation {
        padding: 0 24px !important;
    }
}

@media (max-width: 600px) {

    .fn-feature-grid,
    .fn-hiw-steps {
        grid-template-columns: 1fr;
    }

    .fn-categories-grid {
        grid-template-columns: 1fr;
    }

    .fn-featured-grid {
        grid-template-columns: 1fr;
    }

    .fn-footer-grid {
        grid-template-columns: 1fr;
    }

    .fn-cta-buttons,
    .fn-newsletter-form {
        flex-direction: column;
    }

    .fn-hero-actions {
        flex-direction: column;
    }

    .inside-header,
    .inside-navigation {
        padding: 0 16px !important;
    }
}

/* Explore Core Categories */
.fn-categories-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.fn-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.fn-core-category-card {
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fn-core-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.fn-core-category-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #1E40AF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.fn-core-category-card:hover .fn-core-category-icon {
    background: #1E40AF;
    color: #fff;
}

.fn-core-category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fn-text-main);
    margin-bottom: 8px;
}

.fn-core-category-desc {
    font-size: 14px;
    color: var(--fn-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.fn-core-category-cta {
    color: #1E40AF;
    font-weight: 700;
    font-size: 14px;
}

/* Featured Guides */
.fn-featured-section {
    padding: 100px 0;
    background: #F8FAFC;
}

.fn-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.fn-post-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--fn-border-color);
}

.fn-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.fn-post-image {
    width: 100%;
    height: 200px;
    background: #E2E8F0;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.fn-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fn-post-content {
    padding: 24px;
}

.fn-post-category-tag {
    display: inline-block;
    background: #EEF2FF;
    color: #1E40AF;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.fn-post-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.fn-post-title a {
    color: var(--fn-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fn-post-title a:hover {
    color: #1E40AF;
}

.fn-post-excerpt {
    color: var(--fn-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.fn-read-more-btn {
    display: inline-block;
    color: #1E40AF;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fn-read-more-btn:hover {
    text-decoration: underline;
}

/* ==========================================================================
   9. GLOBAL POLISH & STICKY HEADER
   ========================================================================== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.inside-header,
.inside-navigation {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

.main-navigation .main-nav ul li a {
    font-weight: 600;
    color: #1a1a1a !important;
}

.main-navigation .main-nav ul li>a:hover,
.main-navigation .main-nav ul li>a:focus,
.main-navigation .main-nav ul li>a:active {
    color: #1E40AF !important;
}

/* Add 'nav-button' class to your GeneratePress Menu Item */
.main-navigation .main-nav ul li.nav-button>a {
    background: var(--fn-cta-green) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 20px !important;
    margin-left: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.main-navigation .main-nav ul li.nav-button>a:hover {
    background: var(--fn-cta-green-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   10. PREMIUM BRANDING (PAISASCOPE LOGO)
   ========================================================================== */
.main-title {
    margin: 0;
    line-height: 1;
}

.main-title a.fn-brand-logo {
    display: flex;
    align-items: center;
    font-family: var(--fn-font-family);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding-left: 0;
}

.main-title a.fn-brand-logo:hover {
    transform: scale(1.03);
}

.main-title .fn-brand-paisa {
    color: #0F172A;
}

.main-title .fn-brand-scope {
    color: #1E40AF;
}

@media (max-width: 768px) {
    .main-title a.fn-brand-logo {
        font-size: 24px;
        white-space: nowrap;
    }
}

/* ==========================================================================
   11. ACCESSIBILITY FIXES
   ========================================================================== */
.fn-btn-apply-green {
    background-color: #0b5e36;
    color: #ffffff;
}

.fn-btn-apply-green:hover,
.fn-btn-apply-green:focus {
    background-color: #084c2b;
    color: #ffffff;
}

.fn-social-proof-section {
    color: #1a1a1a;
}

.fn-social-proof-section span {
    color: #333333;
}

a:focus,
button:focus {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}