/* ========================================
   NAVIGATION & HEADER STYLES
   ======================================== */

/* Center-align mega menu wrapper content */
#sp-menu.menu-center .sp-megamenu-wrapper {
    justify-content: right;
}

/* ========================================
   MAIN BODY STYLES
   ======================================== */

/* Default padding for mobile and tablets */
#sp-main-body {
    padding: 50px 0;
}

/* Override padding for desktop and larger screens */
@media (min-width: 992px) {
    #sp-main-body {
        padding: 75px 0;
    }
}

/* === PFA Glossary - Trading Definitions Page === */
.pfa-glossary {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
}
.pfa-glossary p {
    margin-bottom: 16px;
    text-align: justify;
}
.pfa-glossary p strong {
    color: #1e293b;
    font-size: 1.02em;
}
h3.pfa-glossary-letter {
    font-size: 1.4rem;
    font-weight: 800;
    color: #4C90FE;
    margin: 32px 0 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

/* ========================================
   BUTTON STYLES & INTERACTIVE ELEMENTS
   ======================================== */

/* Primary button styling - light blue background with white text */
.pfalightblue {
    background: #4C90FE !important;
    color: #fff;
}

    /* Button hover effect - changes to green on mouse hover */
    .pfalightblue:hover {
        background: #23D761 !important;
    }

/* ========================================
   FORM STYLES
   ======================================== */

/* CB Styling - CB Plugins / Default

/* ========================================
   TABLE STYLES WITH HOVER EFFECTS
   ======================================== */

/* Base table styling for interactive hover tables */
.hoverTable {
    width: 100%;
    border-collapse: collapse;
}

    .hoverTable td {
        padding: 7px;
        border: #888888 1px solid;
    }

    /* Default dark blue background for table rows */
    .hoverTable tr {
        background: #022142;
    }

        /* Hover highlight effect - light blue background on row hover */
        .hoverTable tr:hover {
            background-color: #4C90FE;
        }

/* ========================================
   DATA GRID TABLE STYLES
   ======================================== */

/* --- datagrid-wrapper --- */
.datagrid {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* --- datagrid-table-base --- */
.datagrid table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
    min-width: 480px;
}

/* --- datagrid-cell-padding --- */
.datagrid table td,
.datagrid table th {
    padding: 10px 14px;
}

/* --- datagrid-thead --- */
.datagrid table thead th {
    background-color: #4C90FE;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #3a7de6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.datagrid table thead th:first-child {
    border-top-left-radius: 7px;
}

.datagrid table thead th:last-child {
    border-top-right-radius: 7px;
}

/* --- datagrid-tbody-cells --- */
.datagrid table tbody td {
    color: #1e293b;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f1f5f9;
}

/* --- datagrid-row-stripe --- */
.datagrid table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.datagrid table tbody tr:hover {
    background-color: #eff6ff;
}

/* --- datagrid-category-row --- */
.datagrid table tbody tr.datagrid-category td {
    background-color: #1e3a5f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    border-bottom: none;
}

/* Reset stripe on category rows */
.datagrid table tbody tr.datagrid-category:nth-child(even) {
    background-color: #1e3a5f;
}

.datagrid table tbody tr.datagrid-category:hover {
    background-color: #1e3a5f;
}

/* --- datagrid-ticker-column --- */
.datagrid table tbody td:nth-child(2) {
    font-weight: 600;
    color: #4C90FE;
}

/* --- datagrid-numeric-columns --- */
.datagrid table tbody td:nth-child(4),
.datagrid table tbody td:nth-child(5) {
    font-family: 'Courier New', monospace;
    text-align: right;
}

.datagrid table thead th:nth-child(4),
.datagrid table thead th:nth-child(5) {
    text-align: right;
}

/* --- datagrid-last-row --- */
.datagrid table tbody tr:last-child td {
    border-bottom: none;
}

/* --- datagrid-responsive --- */
@media (max-width: 576px) {
    .datagrid table td,
    .datagrid table th {
        padding: 8px 10px;
        font-size: 13px;
    }

    .datagrid table thead th {
        font-size: 12px;
    }

    .datagrid table tbody tr.datagrid-category td {
        font-size: 12px;
    }
}

/* ========================================
   UTILITY CLASSES - SHADOWS & EFFECTS
   ======================================== */

/* Primary box shadow utility with rounded corners and padding */
.boxShadow {
    -webkit-box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.5);
    border-radius: 5px;
    padding: 20px;
}

/* Alternative box shadow with more pronounced depth effect */
.boxShadow2 {
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2), 0 10px 50px 0 rgba(0, 0, 0, 0.19);
}

/* 3D effect for images with white border and shadow */
.img3D {
    border: solid 3px #fff;
    box-shadow: 0px 0px 5px #888888;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

/* Container for centering inline elements */
.inlineContainer {
    text-align: center;
}

/* Inline block element with vertical alignment */
.inline {
    display: inline-block;
    vertical-align: middle;
}

/* Center align */
.align-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Max width utilities */
.mx-w-sm { max-width: 400px; }
.mx-w-md { max-width: 650px; }
.mx-w-lg { max-width: 800px; }
.mx-w-xl { max-width: 1000px; }

/* ========================================
   RESPONSIVE VIDEO EMBED CONTAINER
   ======================================== */

/* Responsive container for YouTube embeds - maintains 16:9 aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0; /* for older browsers */
    overflow: hidden;
    margin: 10px auto;
}

    /* Ensures embedded videos fill the responsive container */
    .video-container iframe,
    .video-container object,
    .video-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* ========================================
   BLOG SECTION STYLES
   ======================================== */

/* Blog Styling EasyBlog / Themes / Custom CSS */

/* ========================================
   TRADING COURSE MODAL/OVERLAY
   ======================================== */

/* Full-screen overlay for trading course content */
.pfaCourse {
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 999999;
}

/* ========================================
   DEVELOPMENT TEAM CUSTOM STYLES
   ======================================== */

/* Blue text utility class */
.blue_txt {
    color: #4C90FE;
}

ul.icon_list {
    margin: 0px 0px 20px 0px;
    padding: 0px;
    list-style: none;
}

    /* Icon list styling with checkmark bullets */
    ul.icon_list li {
        padding: 0px 0px 0px 35px;
        margin: 0px 0px 10px 1px;
        position: relative;
    }

        ul.icon_list li::before {
            content: "\f058"; /* fa-circle-check (outlined) */
            font-family: "Font Awesome 6 Free";
            font-weight: 400; /* Regular style for outlined */
            position: absolute;
            left: 0;
            top: 0;
            color: #53A653; /* Custom green */
            font-size: 1.2em;
        }

        /* Alternative list item with cancel/X mark icon */
        ul.icon_list li.cancel_mark::before {
            content: "\f057"; /* fa-circle-xmark (outlined) */
            font-family: "Font Awesome 6 Free";
            font-weight: 400;
            color: #e60000; /* Clean red */
        }

    /* Dashed list variant with bottom borders */
    ul.icon_list.dashed_list li {
        padding: 0px 0px 12px 35px;
        border-bottom: dashed 1px #111;
    }

/* Flexbox layout for icon blocks with centered content */
.icon_block .sppb-column-addons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    .icon_block .sppb-column-addons .addon-root-image {
        min-width: 18%;
        padding: 10px;
        box-sizing: border-box;
    }

/* Image container styling for PFA boxes */
.pfa-box-img .sppb-addon-single-image-container {
    display: block;
}

    .pfa-box-img .sppb-addon-single-image-container img {
        width: 100%;
    }

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet responsive adjustments (768px and below) */
@media (max-width: 768px) {
    .icon_block .sppb-column-addons .addon-root-image {
        min-width: 30%;
    }
}

/* Mobile responsive adjustments (576px and below) */
@media (max-width: 576px) {
    .icon_block .sppb-column-addons .addon-root-image {
        min-width: 45%;
    }
}

/* === PFA Tools Section - NinjaTrader Page === */
.pfa-tools-section {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 2px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pfa-tools-section h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 6px;
    font-variant: small-caps;
    text-align: center;
}
.pfa-tools-intro {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.pfa-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.pfa-tool-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}
.pfa-tool-card h3 {
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0 0 4px;
}
.pfa-tool-card .pfa-tool-sub {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.pfa-tool-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 14px;
    text-align: justify;
    flex: 1;
}
.pfa-tool-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
}
.pfa-tool-link:hover {
    color: #059669;
    text-decoration: underline;
}
.pfa-suite-link {
    text-align: center;
    margin-bottom: 32px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #475569;
}
.pfa-suite-link a {
    font-weight: 700;
    color: #059669;
    text-decoration: none;
}
.pfa-suite-link a:hover {
    text-decoration: underline;
}
.pfa-articles-heading {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 14px;
    text-align: center;
}
.pfa-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pfa-articles-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.pfa-articles-list li:last-child {
    border-bottom: none;
}
.pfa-articles-list a {
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}
.pfa-articles-list a:hover {
    color: #10b981;
}
.pfa-articles-list .pfa-article-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #3b82f6;
    background: rgba(59,130,246,.1);
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}