:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --success: #166534;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] { font-family: 'Noto Sans Arabic', sans-serif; }

/* Header & Nav */
.main-header {
    background: white;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    min-height: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}
.logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.3rem; }
.blue-icon { width: 24px; height: 24px; background: var(--primary); border-radius: 6px; }

.lang-switcher-wrap { display: flex; justify-content: center; margin: 1.5rem 0; }
.lang-pill { background: white; border: 1px solid var(--border); border-radius: 50px; padding: 4px; display: flex; }
.lang-pill button { border: none; background: none; padding: 8px 20px; border-radius: 50px; cursor: pointer; font-weight: 600; color: var(--muted); transition: 0.3s; }
.lang-pill button.active { background: var(--primary); color: white; }

.tab-bar-wrap { display: flex; justify-content: center; margin-bottom: 2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 5px 16px; scrollbar-width: none; }
.tab-bar { display: flex; flex-wrap: nowrap; gap: 5px; background: #e2e8f0; padding: 5px; border-radius: 12px; min-width: max-content; }
.tab-btn { border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; transition: 0.2s; }
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.page-intro { text-align: center; margin-bottom: 2.5rem; }
.page-intro h1 { font-size: clamp(1.45rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.page-intro p { color: var(--muted); font-size: 1.1rem; }

.calculator-grid { display: grid; grid-template-columns: 1fr 450px; gap: 2rem; align-items: start; }

/* Cards */
.card { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02); }
.input-card h2 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--primary); }

.input-group { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
input, select { width: 100%; padding: 12px; border: 1.2px solid var(--border); border-radius: 10px; font-size: 1rem; outline: none; transition: border 0.3s; }
input:focus { border-color: var(--primary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.prefix { position: absolute; left: 12px; font-weight: 700; color: var(--muted); font-size: 0.8rem; }
[dir="rtl"] .prefix { left: auto; right: 12px; }

.input-wrapper input { padding-left: 45px; }
[dir="rtl"] .input-wrapper input { padding-left: 12px; padding-right: 45px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; display: block; }

.segmented-control { display: flex; background: var(--bg); padding: 4px; border-radius: 10px; gap: 4px; }
.segmented-control input { display: none; }
.segmented-control label { flex: 1; text-align: center; padding: 8px; border-radius: 7px; cursor: pointer; transition: 0.2s; font-weight: 600; }
.segmented-control input:checked + label { background: white; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.btn-primary { width: 100%; background: var(--primary); color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; margin-top: 1rem; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.privacy-note { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 12px; }

/* Result Card */
.sticky { position: sticky; top: 20px; }
.res-placeholder { text-align: center; padding: 3rem 0; color: var(--muted); }
.total-display { font-size: 2.8rem; font-weight: 800; color: var(--primary); margin: 0.5rem 0; }
.badge { background: #dcfce7; color: var(--success); padding: 4px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 800; display: inline-block; }
.human-summary { background: #f1f5f9; padding: 1rem; border-radius: 12px; font-size: 0.9rem; margin-bottom: 1.5rem; color: var(--text); }

.employee-meta { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); }
.meta-item { font-size: 0.95rem; margin-bottom: 4px; }

.breakdown-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.breakdown-table th { text-align: left; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--border); }
[dir="rtl"] .breakdown-table th { text-align: right; }

.breakdown-table td { padding: 12px 0; border-bottom: 1px solid #f8fafc; font-size: 0.95rem; }
.total-row td { border-bottom: none; padding-top: 15px; font-size: 1.1rem; }

.legal-disclaimer { font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; margin-bottom: 1.5rem; }
.btn-print { width: 100%; background: transparent; border: 1px solid var(--border); padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: background 0.3s; }
.btn-print:hover { background: #f9fafb; }

/* FAQ */
.faq-container { margin: 4rem 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 0.5rem; }
.faq-item summary { font-weight: 700; cursor: pointer; padding: 1rem; outline: none; }
.faq-item p { padding: 0 1rem 1rem 1rem; color: var(--muted); font-size: 0.9rem; }

/* Tabs Content */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Law Tab */
.law-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.law-table th, .law-table td { border: 1px solid var(--border); padding: 12px; text-align: left; }
[dir="rtl"] .law-table th, [dir="rtl"] .law-table td { text-align: right; }
.law-links { margin: 1.5rem 0; padding-left: 1.5rem; }
[dir="rtl"] .law-links { padding-left: 0; padding-right: 1.5rem; }
.law-links a { color: var(--primary); text-decoration: underline; }
.law-note { font-size: 0.85rem; color: var(--muted); padding: 1rem; background: #fffbeb; border-radius: 10px; border: 1px solid #fef3c7; }

/* GCC Tabs */
.sub-tab-nav { display: flex; gap: 8px; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 10px; overflow-x: auto; }
.sub-btn { background: #f1f5f9; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.sub-btn.active { background: var(--primary); color: white; }
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--primary); color: white; border: none; border-radius: 50%;
    cursor: pointer; opacity: 0; transition: 0.4s; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(20px);
}
[dir="rtl"] .back-to-top { right: auto; left: 30px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }

.footer { text-align: center; padding: 4rem 0; color: var(--muted); font-size: 0.85rem; }

/* Print Logic */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .container { max-width: 100%; margin: 0; padding: 0; }
    .calculator-grid { display: block; }
    .result-card { position: relative; top: 0; border: none; box-shadow: none; padding: 0; margin: 0 auto; width: 90%; text-align: center; }
    .badge { border: 1px solid var(--success); }
    .total-display { color: black; border-bottom: 2px solid black; display: inline-block; padding-bottom: 5px; }
    .breakdown-table th, .breakdown-table td { color: black; border-color: #eee; }
    .only-print { display: block !important; margin-bottom: 2rem; }
    .employee-meta { text-align: left; }
    [dir="rtl"] .employee-meta { text-align: right; }
}

.only-print { display: none; }

/* Responsive */
@media (max-width: 900px) {
    .calculator-grid { grid-template-columns: 1fr; }
    .sticky { position: static; }
    .faq-grid { grid-template-columns: 1fr; }
    .page-intro h1 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); }
}

/* Logo Branding Styles */
.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 15px;
    height: 100%;
    min-height: 110px;
    padding: 10px 0;
    box-sizing: border-box;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-title {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1;
}

/* Ensure Logo flips correctly in Arabic (RTL) */
[dir="rtl"] .site-branding {
    flex-direction: row-reverse;
}

.support-email {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-email a {
    color: #0066cc;
    text-decoration: none;
}

.support-email a:hover {
    text-decoration: underline;
}

.support-disclaimer {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    }

.support-email {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-email a {
    color: #0066cc;
    text-decoration: none;
}

.support-email a:hover {
    text-decoration: underline;
}

.support-disclaimer {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    }


/* ========================================
   NAVIGATION - MOBILE RESPONSIVE (FINAL)
   ======================================== */

/* Hide scrollbar on tab-bar-wrap */
.tab-bar-wrap::-webkit-scrollbar { display: none; }
.tab-bar-wrap { -ms-overflow-style: none; scrollbar-width: none; }

/* Desktop: center the nav */
@media screen and (min-width: 768px) {
    .tab-bar-wrap {
        justify-content: center;
        padding: 5px 16px;
    }
    .tab-bar {
        min-width: auto;
    }
}

/* Mobile: scrollable nav */
@media screen and (max-width: 767px) {
    .tab-bar-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0 8px 0;
        margin: 0;
        width: 100%;
    }
    .tab-bar {
        flex-wrap: nowrap;
        min-width: max-content;
        width: max-content;
        padding: 5px 12px;
        gap: 5px;
    }
    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Small screens 480px */
@media screen and (max-width: 480px) {
    .tab-bar {
        padding: 5px 10px;
        gap: 4px;
    }
    .tab-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
    /* Fix 1: Stop iOS Safari auto-zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
    /* Fix 2: Reduce card padding on small screens */
    .card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    /* Fix 2b: input-card padding */
    .input-card, .result-container {
        padding: 1.1rem;
    }
}

/* Very small screens 375px */
@media screen and (max-width: 375px) {
    .tab-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .tab-bar {
        flex-wrap: wrap;
        justify-content: center;
        min-width: auto;
    }
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Mobile: responsive layout for rest of page */
@media screen and (max-width: 767px) {
    body { font-size: 14px; }
    .container, .calc-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }
    .site-logo { max-width: 180px; height: 70px; }
    .lang-pill button { padding: 8px 16px; font-size: 13px; }
    h1 { font-size: 1.8em !important; }
    h2 { font-size: 1.5em !important; }
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 12px; }
    .benefits-grid, .commission-tiers, .partner-profiles,
    .difference-cards, .contact-grid, .blog-posts {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .form-row { grid-template-columns: 1fr !important; }
    .steps { flex-direction: column !important; }
}

@media screen and (max-width: 480px) {
    .site-logo { max-width: 150px; height: 60px; }
    h1 { font-size: 1.5em !important; }
    h2 { font-size: 1.3em !important; }
}
/* ========================================
   GCC CALCULATORS PAGE
   ======================================== */
.gcc-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2rem; }

/* Country tab bar */
.gcc-tab-bar-wrap {
    display: flex; justify-content: center;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 4px 10px; margin-bottom: 1.5rem;
}
.gcc-tab-bar-wrap::-webkit-scrollbar { display: none; }
.gcc-tab-bar {
    display: flex; flex-wrap: nowrap; gap: 6px;
    background: #e2e8f0; padding: 5px; border-radius: 12px; min-width: max-content;
}
.gcc-tab-btn {
    border: none; padding: 9px 18px; border-radius: 8px;
    cursor: pointer; background: transparent; color: var(--muted);
    font-weight: 600; white-space: nowrap; transition: 0.2s; font-size: 14px;
}
.gcc-tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.gcc-tab-btn:hover:not(.active) { background: #f1f5f9; }

/* Tab content */
.gcc-tab-content { display: none; }
.gcc-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* TOP ROW: Calculator | Result side by side */
.gcc-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.gcc-calc-card { padding: 1.8rem; }
.gcc-calc-card h2 { font-size: 1.1rem; margin-bottom: 1.2rem; color: var(--primary); }
.gcc-result-card {
    padding: 1.8rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gcc-result-card .total-display { font-size: 2.2rem; }

/* Law section full width below */
.gcc-law-full { padding: 1.8rem; }
.gcc-law-header { margin-bottom: 1.2rem; }
.gcc-law-header h2 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.3rem; }
.law-ref { font-size: 0.82rem; color: var(--muted); }

.gcc-law-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.gcc-law-table-wrap h3,
.gcc-law-details h3 { font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--text); }

/* Key points list */
.gcc-key-points {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}
.gcc-key-points li { margin-bottom: 4px; }

/* Official links */
.gcc-official-links {
    list-style: none; padding: 0; margin: 0;
}
.gcc-official-links li { margin-bottom: 6px; }
.gcc-official-links a {
    font-size: 0.85rem; color: var(--primary);
    text-decoration: none; font-weight: 600;
}
.gcc-official-links a:hover { text-decoration: underline; }

/* Detailed law sections */
.gcc-law-sections {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    margin-bottom: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.gcc-law-section h4 {
    font-size: 0.88rem; font-weight: 700;
    color: var(--text); margin-bottom: 0.4rem;
}
.gcc-law-section p {
    font-size: 0.85rem; color: var(--muted);
    line-height: 1.6;
}

/* Error box */
.gcc-error {
    color: #dc2626; padding: 10px;
    background: #fef2f2; border-radius: 8px;
    margin-top: 10px; font-size: 0.88rem;
}

/* Mobile */
@media screen and (max-width: 900px) {
    .gcc-top-row { grid-template-columns: 1fr; }
    .gcc-law-grid { grid-template-columns: 1fr; }
    .gcc-law-sections { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767px) {
    .gcc-tab-btn { padding: 8px 13px; font-size: 12px; }
    .gcc-page { padding: 0 8px 2rem; }
    .gcc-calc-card, .gcc-result-card, .gcc-law-full { padding: 1.2rem; }
    .gcc-result-card .total-display { font-size: 1.8rem; }
}

.gcc-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gcc-bullet-list li {
    padding: 4px 0 4px 1.2rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}
.gcc-bullet-list li::before {
    content: "\2022";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ======================================================
   SITE-WIDE BLUE FOOTER
   ====================================================== */
.site-footer {
    background: linear-gradient(160deg, #1e5fa8 0%, #163f74 100%);
    color: #fff;
    margin-top: 3rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}
.site-footer-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.9fr 1fr 1fr 1fr;
    gap: 2rem;
}
.site-footer-col-brand {
    padding-right: 1rem;
    border-right: 1px solid rgba(255,255,255,.12);
}
.site-footer-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}
.site-footer-tagline {
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin: 0 0 1rem;
}
.site-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 4px 11px;
    font-size: .72rem;
    color: rgba(255,255,255,.88);
    margin-bottom: 1.1rem;
}
.site-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.site-footer-contacts a {
    font-size: .78rem;
    color: rgba(255,255,255,.68);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.site-footer-contacts a:hover { color: #fff; }
.site-footer-col h4 {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 .85rem;
}
.site-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.site-footer-col ul li a {
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s;
}
.site-footer-col ul li a:hover { color: #fff; }
.site-footer-legal-note {
    margin-top: .85rem;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: .72rem;
    color: rgba(255,255,255,.52);
    line-height: 1.6;
}
/* bottom bar */
.site-footer-bottom {
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .75rem 1.5rem;
    max-width: 100%;
}
.site-footer-bottom-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.site-footer-bottom p {
    font-size: .72rem;
    color: rgba(255,255,255,.38);
    margin: 0;
}
.site-footer-disclaimer-bar {
    background: rgba(255,255,255,.06);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .65rem 1.5rem;
    text-align: center;
}
.site-footer-disclaimer-bar p {
    max-width: 1100px;
    margin: 0 auto;
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .site-footer-body {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .site-footer-col-brand {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.1);
        padding-right: 0;
        padding-bottom: 1.25rem;
    }
}
@media (max-width: 480px) {
    .site-footer-body { grid-template-columns: 1fr; }
    .site-footer-bottom-inner { flex-direction: column; text-align: center; }
}
/* ── Mobile touch polish ─────────────────────────────── */
.tab-btn, .btn-primary, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}
/* Ensure breakdown table never overflows on mobile */
@media (max-width: 600px) {
    .breakdown-table {
        font-size: .82rem;
    }
    .breakdown-table th,
    .breakdown-table td {
        padding: 8px 6px;
    }
    /* Tighter result card total */
    .total-display {
        font-size: 1.9rem;
    }
    /* Content sections padding */
    .content-section {
        padding: 0 .6rem !important;
    }
    .faq-container {
        padding: 1rem .6rem;
    }
}
/* iOS momentum scroll on tab bar */
.tab-bar-wrap {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ===== Leave Encashment Calculator (page ID 253) ===== */
.lec-wrap{font-family:"Sora",sans-serif;color:#1A1816;max-width:640px;margin:0 auto 2rem}
.lec-wrap *,.lec-wrap *::before,.lec-wrap *::after{box-sizing:border-box}
.lec-badge{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#3A72C4;margin-bottom:.3rem}
.lec-card{background:#fff;border:1px solid #E2DDD6;border-radius:12px;padding:1.5rem;margin-bottom:1rem}
.lec-st{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6B6560;margin-bottom:1.2rem}
.lec-field{margin-bottom:1.2rem}
.lec-field:last-child{margin-bottom:0}
.lec-lbl{display:block;font-size:13px;font-weight:500;color:#1A1816;margin-bottom:.4rem}
.lec-lbl span{font-weight:400;color:#6B6560;font-size:12px}
.lec-iw{position:relative;display:flex;align-items:center}
.lec-pfx{position:absolute;left:12px;font-size:13px;font-weight:500;color:#6B6560;pointer-events:none;z-index:1}
.lec-in,.lec-sel{width:100%;height:46px;border:1.5px solid #E2DDD6;border-radius:8px;font-size:15px;font-weight:500;color:#1A1816;background:#fff;outline:none;transition:border-color .15s;padding:0 12px}
.lec-in{padding-left:52px;-moz-appearance:textfield;appearance:textfield}
.lec-in::-webkit-inner-spin-button,.lec-in::-webkit-outer-spin-button{-webkit-appearance:none}
.lec-sel{cursor:pointer}
.lec-in:focus,.lec-sel:focus{border-color:#3A72C4;box-shadow:0 0 0 3px rgba(58,114,196,.12)}
.lec-2col{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:480px){.lec-2col{grid-template-columns:1fr}}
.lec-tg{display:flex;border:1.5px solid #E2DDD6;border-radius:8px;overflow:hidden}
.lec-tg label{flex:1;margin:0;cursor:pointer;font-weight:normal}
.lec-tg input[type=radio]{display:none}
.lec-tb{display:block;padding:11px 12px;text-align:center;font-size:13px;font-weight:500;color:#6B6560;background:#fff;transition:all .15s;border-right:1px solid #E2DDD6;margin-bottom:0}
.lec-tg label:last-child .lec-tb{border-right:none}
.lec-tg input[type=radio]:checked+.lec-tb{background:#1B4F8A;color:#fff}
.lec-btn{width:100%;height:52px;background:#1B4F8A;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;margin-top:.25rem;transition:background .15s;padding:0}
.lec-btn:hover{background:#3A72C4}
.lec-res{background:#1B4F8A;border-radius:12px;padding:1.5rem;margin-bottom:1rem;display:none}
.lec-res.visible{display:block}
.lec-rl{font-size:12px;font-weight:500;color:rgba(255,255,255,.65);letter-spacing:.06em;text-transform:uppercase;margin-bottom:.3rem}
.lec-ra{font-size:38px;font-weight:500;color:#fff;line-height:1;margin-bottom:.2rem}
.lec-rs{font-size:13px;color:rgba(255,255,255,.6)}
.lec-bk{margin-top:1.25rem;border-top:1px solid rgba(255,255,255,.15);padding-top:1.25rem;display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}
.lec-bl{font-size:11px;color:rgba(255,255,255,.55);margin-bottom:.2rem}
.lec-bv{font-size:15px;font-weight:500;color:rgba(255,255,255,.9)}
.lec-pills{display:none;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem}
.lec-pill{background:#fff;border:1px solid #E2DDD6;border-radius:8px;padding:.9rem 1rem}
.lec-pll{font-size:11px;color:#6B6560;margin-bottom:.3rem}
.lec-plv{font-size:14px;font-weight:500;color:#1A1816}
.lec-note{background:#FEF3E2;border:1px solid #F5D59A;border-radius:8px;padding:.85rem 1rem;font-size:12.5px;color:#8A4A00;line-height:1.6;display:none;margin-bottom:1rem}
.lec-note.visible{display:block}
.lec-fmb{background:#F0EDE6;border:1px solid #E2DDD6;border-radius:8px;padding:1rem 1.2rem;margin-top:1rem;font-size:13px;color:#6B6560;line-height:1.7}
.lec-fmb strong{color:#1A1816;font-weight:600}
.lec-fmb code{font-size:13px;background:#E2DDD6;padding:1px 5px;border-radius:4px}
.lec-disc{font-size:11.5px;color:#6B6560;line-height:1.6;margin-top:1rem;padding-top:1rem;border-top:1px solid #E2DDD6}
@media(max-width:480px){.lec-bk{grid-template-columns:1fr 1fr}.lec-ra{font-size:28px}.lec-pills{grid-template-columns:1fr}}
/* ===== End Leave Encashment Calculator ===== */


/* ===== RTL / Arabic Language Support ===== */
body.rtl { direction: rtl; font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
body.rtl .container { direction: rtl; }
body.rtl .card { text-align: right; }
body.rtl .article-content { direction: rtl; text-align: right; }
body.rtl .article-content ul, body.rtl .article-content ol { padding-right: 1.5rem; padding-left: 0; }
body.rtl .article-content h1,
body.rtl .article-content h2,
body.rtl .article-content h3 { text-align: right; }
body.rtl blockquote { border-right: 4px solid var(--primary, #1B4F8A); border-left: none; padding-right: 1rem; padding-left: 0; }
body.rtl .tab-bar { direction: rtl; }
body.rtl .main-header { direction: rtl; }
body.rtl label { text-align: right; }
body.rtl input, body.rtl select, body.rtl textarea { text-align: right; direction: rtl; }
body.rtl table { direction: rtl; }
body.rtl th, body.rtl td { text-align: right; }
body.rtl .page-intro h1, body.rtl .page-intro p { text-align: right; }
body.rtl .input-group label { text-align: right; }
body.rtl .result-section { direction: rtl; text-align: right; }
/* Language blocks */
.page-lang { transition: opacity 0.2s ease; }
.lang-ar { direction: rtl; }
/* Arabic headings */
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
.lang-ar p, .lang-ar li, .lang-ar td { font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.9; }
/* RTL nav adjustments */
body.rtl .tab-dropdown { right: auto; left: 0; }
body.rtl .gcc-dropdown-menu { right: auto; left: 0; }
/* ===== End RTL Support ===== */
