.bgs {
    background: var(--white) !important;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif !important;
    background-color: var(--white);
    color: var(--text-main);
}

/* Banner Section */
.inr_banner {
    background: linear-gradient(135deg, #7b89a5 0%, #a7cbe4 100%) !important;
    /* Deepened navy for better logo contrast */
    padding: 100px 0 80px !important;
    /* Increased top padding for the logo prominence */
    position: relative !important;
    overflow: hidden !important;
}

.bhed_box {
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.black_hed {
    font-family: 'Inter', sans-serif !important;
    font-size: 5rem !important;
    font-weight: 900 !important;
    color: white !important;
    line-height: 1 !important;
    margin-bottom: 20px !important;
    letter-spacing: -2px !important;
    text-align: center !important;
}

.white_wrapper .black_hed {
    color: var(--polosys-navy) !important;
    font-size: 3.5rem !important;
    text-shadow: none !important;
}

.hed_sml {
    font-size: 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.4 !important;
    max-width: 800px;
    margin: 0 auto !important;
    text-align: center !important;
}

.matter.simg img {
    width: clamp(300px, 70%, 650px) !important;
    border-radius: 20px !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 40px auto !important;
    display: block !important;
}

.bbox.hed_sml.vm {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Blue Wrapper - Sub Banner */
.blue_wrapper {
    background: #f8fafc !important;
    padding: 100px 0 !important;
    border-bottom: 1px solid #e2e8f0;
}

.matter.hed_sml.cnt_txt.sbox {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 24px !important;
    line-height: 1.7 !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* Table Section Modernization */
.white_wrapper {
    background: #fbfcfe !important;
    padding: 120px 0 !important;
}

.table {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-cell {
    border: none !important;
    outline: none !important;
    padding: 20px 15px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9 !important;
    height: auto !important;
    min-height: 80px;
    overflow: visible !important;
    /* Changed from hidden to ensure text shows */
    text-align: center;
}

.table-cell h3 {
    background: transparent !important;
    color: var(--polosys-navy) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    word-break: keep-all;
}

.table-cell.plattform {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 15px 10px !important;
}

.full_tb {
    grid-column: span 4 !important;
    background: #f1f5f9 !important;
    color: var(--polosys-navy) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 30px !important;
    text-align: left !important;
    font-size: 13px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.table-cell.cell-feature {
    background: #ffffff;
    font-weight: 600 !important;
    color: var(--polosys-navy) !important;
    justify-content: flex-start !important;
    padding-left: 30px !important;
    text-align: left;
    font-size: 14px !important;
}

.table-cell:hover:not(.cell-feature):not(.plattform) {
    background: #fdfdfd;
}

.table-cell:nth-child(4n) {
    border-right: none !important;
}

.table-cell:not(.cell-feature) {
    border-left: 1px solid #f1f5f9 !important;
}

.table-cell img[src*="checked.png"] {
    width: 24px !important;
    height: 24px !important;
    filter: invert(34%) sepia(91%) hue-rotate(178deg) brightness(97%) contrast(101%);
    /* Precise Polosys Blue */
}

/* RTL Support */
html[dir="rtl"] .full_tb,
html[dir="rtl"] .table-cell.cell-feature {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-start !important; /* Start is right in RTL */
    align-items: center !important;
}

/* Fallback for flex layout in case flex-start forces left */
html[dir="rtl"] .table-cell.cell-feature {
    padding-right: 30px !important;
    padding-left: 15px !important;
    justify-content: right !important;
}

html[dir="rtl"] .table-cell:not(.cell-feature) {
    border-left: none !important;
    border-right: 1px solid #f1f5f9 !important;
}

html[dir="rtl"] .frm_txt,
html[dir="rtl"] .frm_txt_full {
    text-align: right !important;
}


/* Signup Form Section */
.blue_wrapper:last-of-type {
    background: #002d5b !important;
    /* Solid dark navy for better form pop */
    color: var(--white) !important;
    padding: 80px 0 !important;
}

.white_hed {
    color: var(--polosys-navy) !important;
    /* Changed from white to navy */
    font-weight: 700 !important;
    font-size: 32px !important;
    margin-bottom: 5px !important;
    letter-spacing: -1px;
}

.white_big {
    color: var(--polosys-blue) !important;
    /* Changed from light blue for better visibility */
    font-weight: 700 !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
}

.formbox {
    background: #ffffff;
    padding: 60px !important;
    border-radius: 40px;
    margin: 40px auto !important;
    border: 1px solid #e2e8f0;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
}

.frm_left,
.frm_right {
    width: 48% !important;
    float: none !important;
}

.frm_box {
    margin-bottom: 15px !important;
    /* Reduced from 25px */
    display: block !important;
    width: 100% !important;
}

.frm_txt,
.frm_txt_full {
    font-weight: 700 !important;
    color: var(--polosys-navy) !important;
    /* Changed from light to dark for legibility */
    margin-bottom: 10px !important;
    text-align: left !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}


.frm_fild,
.frm_fild_full {
    width: 100% !important;
    float: none !important;
}

.form-control {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    /* Darker border for white-on-white visibility */
    padding: 12px 20px !important;
    height: auto !important;
    background: #ffffff !important;
    color: #1e293b !important;
    transition: var(--transition) !important;
    font-size: 15px !important;
}

.form-control.input-lg {
    border-radius: 16px !important;
    padding: 15px 24px !important;
}

/* Fix for country dropdown options visibility */
select.form-control option {
    background-color: #ffffff !important;
    color: #1e293b !important;
    padding: 10px !important;
}


textarea.form-control.input-lg {
    resize: vertical !important;
    /* Prevent horizontal dragging out of the box */
    min-height: 180px !important;
}


.form-control.input-lg:focus {
    background: var(--white) !important;
    border-color: var(--polosys-blue) !important;
    box-shadow: 0 0 0 5px rgba(0, 96, 155, 0.15) !important;
}


.frm_btn {
    background: #fbc02d !important;
    color: #000c26 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 22px 80px !important;
    border-radius: 60px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 15px 35px rgba(251, 192, 45, 0.3) !important;
    border: none !important;
    cursor: pointer;
}

.frm_btn:hover {
    transform: translateY(-5px) scale(1.03);
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.2) !important;
}

/* Footer Section */
.footer {
    background: #0b111a !important;
    padding: 100px 0 60px !important;
}

.ftr_box {
    width: 25% !important;
}

.ftr_hed {
    font-weight: 800 !important;
    font-size: 22px !important;
    color: var(--white) !important;
    margin-bottom: 30px !important;
    display: block !important;
}

.ftr_link {
    color: #a0aec0 !important;
    transition: var(--transition) !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
    display: block !important;
    padding: 0 !important;
}

.ftr_link:hover {
    color: var(--accent-color) !important;
    transform: translateX(10px);
}

/* Responseive Grid */
@media (max-width: 1024px) {
    .table {
        grid-template-columns: 1fr 1fr !important;
    }

    .full_tb {
        grid-column: span 2 !important;
    }

    .frm_left,
    .frm_right {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .black_hed {
        font-size: 38px !important;
    }

    .white_big {
        font-size: 38px !important;
    }

    .inr_banner {
        padding: 140px 0 60px !important;
    }

    .table {
        grid-template-columns: 1fr !important;
    }

    .full_tb {
        grid-column: span 1 !important;
    }

    .table-cell:not(.cell-feature) {
        border-left: none !important;
        background: #fff !important;
    }

    .table-cell.cell-feature {
        background: #f8fafc !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* RTL Specific Overrides for Partners Page */
.rtl .full_tb {
    text-align: right !important;
    padding-right: 30px !important;
    padding-left: 10px !important;
}

.rtl .table-cell.cell-feature {
    justify-content: flex-end !important;
    padding-left: 10px !important;
    padding-right: 30px !important;
    text-align: right !important;
}

.rtl .frm_txt,
.rtl .frm_txt_full {
    text-align: right !important;
}

.rtl .ftr_link:hover {
    transform: translateX(-10px);
}

.rtl .table-cell:not(.cell-feature) {
    border-left: none !important;
    border-right: 1px solid #f1f5f9 !important;
}

.rtl .table-cell:first-child {
    border-right: none !important;
}