html, body {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-weight: 400;
    background-color: #111E3A;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Poppins Font Weight Utilities */
.fw-thin { font-weight: 100; }
.fw-extralight { font-weight: 200; }
.fw-light { font-weight: 300; }
.fw-regular { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.fw-black { font-weight: 900; }

/* Typography defaults with Poppins weights */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-weight: 600;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
h4 { font-weight: 500; }
h5 { font-weight: 500; }
h6 { font-weight: 500; }

p, span, a, li {
    font-weight: 400;
}

strong, b {
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGV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NjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Market Table Section Background */
.market-table-section {
    position: relative;
    background-image: url('/Images/tables.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    padding: 80px 0 20px 0;
    min-height: 800px;
}

.market-table-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10.45%;
    background: linear-gradient(to bottom,
        rgba(17, 30, 58, 1) 0%,
        rgba(17, 30, 58, 0) 100%);
    backdrop-filter: blur(98px);
    -webkit-backdrop-filter: blur(98px);
    pointer-events: none;
    z-index: 1;
}

.market-table-section > * {
    position: relative;
    z-index: 2;
}

/* ========================================
   TOOLS SECTIONS (Usage & Features)
   ======================================== */

/* Tools Usage Section */
.tools-usage-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tools-usage-section .container-efx {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 44px;
}

/* Tools Features Section */
.tools-features-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tools-features-section .container-efx {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tools-features-section .row,
.tools-usage-section .row {
    width: 100%;
    padding-top: 20px;
}

/* Make all cards same height in a row */
.tools-features-section .row > [class*="col"],
.tools-usage-section .row > [class*="col"] {
    display: flex;
}

.tools-features-section .row > [class*="col"] > *,
.tools-usage-section .row > [class*="col"] > * {
    flex: 1;
}

/* Tools Image Section */
.tools-image-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.tools-image-container {
    width: 100%;
}

.tools-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   STRATEGY PROVIDER SECTION
   ======================================== */

.strategy-provider-section {
    width: 100%;
    margin-top: -150px;
    position: relative;
    z-index: 10;
}

.strategy-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Badge */
.strategy-badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    gap: 10px;
    background: rgba(64, 89, 244, 0.1);
    border-radius: 154px;
}

.strategy-star {
    flex: none;
    order: 0;
    flex-grow: 0;
}

.strategy-badge-text {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
    color: #B5F8FE;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Title */
.strategy-title {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 56px;
    line-height: 130%;
    color: #FAFAFF;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* Description */
.strategy-description {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #A5ABB4;
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
}

/* Image Wrapper */
.strategy-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.strategy-image {
    width: 100%;
    max-width: 639px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .strategy-title {
        font-size: 42px;
    }

    .strategy-provider-section {
        margin-top: -100px;
    }
}

@media (max-width: 767.98px) {
    .strategy-title {
        font-size: 36px;
    }

    .strategy-image-wrapper {
        margin-top: 2rem;
    }

    .strategy-provider-section {
        margin-top: -60px;
    }
}

/* ========================================
   RTL SUPPORT - Market Opportunities
   ======================================== */

[dir="rtl"] .market-opportunities-column {
    align-items: flex-end;
}

[dir="rtl"] .market-opportunities-divider {
    align-items: flex-end;
}

[dir="rtl"] .market-card-content {
    align-items: flex-end;
    text-align: right;
}

[dir="rtl"] .market-card-text {
    align-items: flex-end;
    text-align: right;
}

[dir="rtl"] .market-card-title {
    text-align: right !important;
}

[dir="rtl"] .market-card-description {
    text-align: right !important;
}

[dir="rtl"] .read-more-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .read-more-link svg {
    transform: scaleX(-1);
}

[dir="rtl"] .energies-card .market-card-background {
    left: 0;
    right: auto;
    background-position: left center;
}

/* RTL Support - Section Header */
[dir="rtl"] .section-header {
    text-align: right !important;
}

[dir="rtl"] .section-header[style*="flex-start"] {
    align-items: flex-end !important;
}

[dir="rtl"] .section-title {
    text-align: right !important;
}

[dir="rtl"] .section-description {
    text-align: right !important;
}
