:root {
    --red: #B22222;
    --red-dk: #7e082f;
    --green: #1a6b3a;
    --blue: #1a4f8a;
    --orange: #c45200;
    --purple: #5b2c87;
    --teal: #0d6b58;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f3f4f6;
    --white: #ffffff;
    --navy: #092140;
}

.wpb_content_element, ul.wpb_thumbnails-fluid > li, .wpb_button {
    margin-bottom: 0 !important;;
}

/* HEADER */
#ldrc-header h1 {
    color: white !important;
}

#ldrc-header {
    background: var(--red-dk);
    color: #fff !important;
    padding: 24px 20px 20px;
    text-align: center;
}

#ldrc-header .flag {
    width: 50px;
    margin: auto;
}

#ldrc-header h1 {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

#ldrc-header p {
    color: lightgray;
    font-size: .92rem;
    opacity: .88;
    max-width: 480px;
    margin: 0 auto 14px;
}

.lang-bar {
    display: inline-flex;
    background: rgba(255, 255, 255, .15);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .3);
    overflow: hidden;
}

.lang-bar button {
    background: none;
    border: none;
    color: #fff;
    padding: 7px 22px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    transition: background .18s;
    font-family: inherit;
}

.lang-bar button.on {
    background: rgba(255, 255, 255, .28);
}

/* SOS STRIP */
#ldrc-sos {
    background: var(--navy);
    padding: 10px 16px;
    text-align: center;
}
#ldrc-sos p{
    margin-bottom:10px !important;
}

#ldrc-sos-in {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom:10px !important;

}

.sos-lbl {
    font-size: .82rem;
    font-weight: 800;
    color: #ff6b6b;
    flex-shrink: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background .18s;
    white-space: nowrap;
}

.chip:hover {
    color:white !important;
    background: rgba(255, 255, 255, .18);
}

/* MAIN */
#ldrc-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 26px 14px 60px;
}

.intro {
    text-align: center;
    margin-bottom: 22px;
}

.intro h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.intro p {
    font-size: .88rem;
    color: var(--muted);
}

.intro-desktop p {
    display: inline;
}



.intro-mobile {
    display: none;
}

@media (max-width: 580px) {
    .intro-desktop {
        display: none;
    }
    
    .intro-mobile {
        display: block;
    }
    
    .intro-mobile p {
        margin: 4px 0;
    }
}

/* CATEGORY GRID */
#ldrc-cat-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
    direction: rtl;
}

body.ltr #ldrc-cat-grid {
    direction: ltr;
}

.cat {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 18px 16px 16px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all .2s;
    text-align: right;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

body.ltr .cat {
    text-align: left;
}

.cat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--acc, #999);
    border-radius: 14px 14px 0 0;
}

.cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .13);
    border-color: var(--acc, #999);
}

.ci {
    font-size: 1.85rem;
}

.cn {
    font-weight: 800;
    font-size: .95rem;
    color: var(--dark);
    line-height: 1.3;
}

.cd {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.35;
}

.ac-red {
    --acc: #B22222;
}

.ac-green {
    --acc: #1a6b3a;
}

.ac-blue {
    --acc: #1a4f8a;
}

.ac-orange {
    --acc: #c45200;
}

.ac-purple {
    --acc: #5b2c87;
}

.ac-teal {
    --acc: #0d6b58;
}

/* PANEL */
.panel {
    display: none;
}

.panel.open {
    height: auto !important;
    display: block;
    animation: rise .28s ease;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.ptop {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    direction: rtl;
}

body.ltr .ptop {
    direction: ltr;
}

.back {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
    transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.back:hover {
    border-color: #999;
    color: var(--text);
}

.pttl {
    flex: 1;
}

.pttl h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
}

.psub {
    font-size: .84rem;
    color: var(--muted);
    margin-top: 2px;
}

/* TIP */
.tip {
    background: #fffbeb;
    border: 1.5px solid #fbbf24;
    border-radius: 10px;
    padding: 11px 15px;
    font-size: .85rem;
    color: #78350f;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    direction: rtl;
}

body.ltr .tip {
    direction: ltr;
}

.ti {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
    order: 2;
}

body.ltr .ti {
    order: 1;
}

/* CARDS */
.cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ldrc-card {
    height: 100% !important;
    background: var(--white);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border-right: 4px solid var(--acc, #ddd);
    display: flex;
    flex-direction: column;
}

body.ltr .ldrc-card {
    border-right: none;
    border-left: 4px solid var(--acc, #ddd);
}

.ch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    direction: rtl;
}

body.ltr .ch {
    direction: ltr;
}

.cico {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cm {
    flex: 1;
    direction: rtl;
}

body.ltr .cm {
    direction: ltr;
}

.cname {
    font-weight: 800;
    font-size: .98rem;
    color: var(--dark);
    margin-bottom: 1px;
    text-align: right;
}

body.ltr .cname {
    text-align: left;
}

.csub {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.cdesc {
    font-size: .86rem;
    color: var(--text);
    line-height: 1.5;
    text-align: right;
}

body.ltr .cdesc {
    text-align: left;
}

.bgs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.b {
    display: inline-block;
    border-radius: 50px;
    padding: 2px 10px;
    font-size: .74rem;
    font-weight: 800;
}

.bf {
    background: #dcfce7;
    color: #166534;
}

.bu {
    background: #fee2e2;
    color: #991b1b;
}

.bh {
    background: #dbeafe;
    color: #1e40af;
}

.bp {
    background: #fef3c7;
    color: #92400e;
}

.num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red);
    margin: 6px 0 4px;
    letter-spacing: .05em;
}

.num-label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}



.acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-top: auto;
}

.act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter .18s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.act:hover {
    filter: brightness(.92);
}

.acall {
    background: #dcfce7;
    color: #14532d;
}

.aweb {
    background: #dbeafe;
    color: #1e3a8a;
}

.areg {
    background: #ede9fe;
    color: #4c1d95;
}

@media (max-width: 768px) {
    .ldrc-card {
        padding: 14px 16px;
    }
    
    .ch {
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .cico {
        font-size: 1.2rem;
    }
    
    .cname {
        font-size: .94rem;
    }
    
    .cdesc {
        font-size: .84rem;
    }
    
    .act {
        padding: 7px 14px;
        font-size: .82rem;
    }
}

@media (max-width: 480px) {
    .ldrc-card {
        padding: 12px 14px;
        border-radius: 12px;
    }
    
    .ch {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .cico {
        font-size: 1.1rem;
        margin-top: 1px;
    }
    
    .cname {
        font-size: .88rem;
    }
    
    .cdesc {
        font-size: .80rem;
        line-height: 1.4;
    }
    
    .csub {
        font-size: .76rem;
    }
    
    .num {
        font-size: 1.3rem;
        margin: 4px 0 2px;
    }
    
    .num-label {
        font-size: .78rem;
        margin-bottom: 3px;
    }
    
    .acts {
        gap: 6px;
        margin-top: 10px;
    }
    
    .act {
        padding: 6px 12px;
        font-size: .76rem;
        flex: 1;
        justify-content: center;
    }
    
    .b {
        padding: 2px 8px;
        font-size: .70rem;
    }
}

@media (max-width: 360px) {
    .ldrc-card {
        padding: 10px 12px;
        border-radius: 10px;
    }
    
    .ch {
        gap: 6px;
        margin-bottom: 5px;
    }
    
    .cico {
        font-size: .95rem;
        margin-top: 0;
    }
    
    .cname {
        font-size: .82rem;
    }
    
    .cdesc {
        font-size: .76rem;
        line-height: 1.35;
    }
    
    .csub {
        font-size: .70rem;
    }
    
    .num {
        font-size: 1rem;
        margin: 2px 0 1px;
    }
    
    .num-label {
        font-size: .70rem;
        margin-bottom: 2px;
    }
    
    .acts {
        gap: 4px;
        margin-top: 8px;
    }
    
    .act {
        padding: 5px 10px;
        font-size: .70rem;
        flex: 1;
        justify-content: center;
    }
    
    .b {
        padding: 1px 6px;
        font-size: .65rem;
    }
}

/* AUB GHI BAR */
#ldrc-ghi-bar {
    background: #092140;
    padding: 10px 20px;
}

#ldrc-ghi-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ghi-logo {
    height: 38px;
    width: auto;
    display: block;
}

.ghi-tagline {
    font-size: .75rem;
    color: rgba(255, 255, 255, .65);
    font-style: italic;
    text-align: right;
    line-height: 1.4;
    max-width: 280px;
}

body.ltr .ghi-tagline {
    text-align: left;
}

/* FOOTER */
#ldrc-footer {
    text-align: center;
    padding: 0;
    border-top: 1px solid var(--border);
    background: var(--white);
    overflow: hidden;
}

.footer-ghi {
    background: #092140;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-ghi img {
    height: 32px;
    width: auto;
    opacity: .9;
}

.footer-ghi-text {
    font-size: .78rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
}

.footer-copy {
    padding: 12px 20px;
    font-size: .75rem;
    color: var(--muted);
}

/* TRANSLATION ELEMENTS */
t {
    display: contents;
}

/* GLOBAL RTL/LTR */
#ldrc {
    direction: rtl;
}

body.ltr #ldrc {
    direction: ltr;
}

#ldrc-header,
#ldrc-header h1,
#ldrc-header p,
.lang-bar,
.lang-bar button,
#ldrc-sos,
#ldrc-sos-in,
.sos-lbl,
.chip,
#ldrc-main,
.intro,
.intro h2,
.intro p,
#ldrc-cat-grid,
.cat,
.ci,
.cn,
.cd,
.panel,
.ptop,
.pttl,
.pttl h3,
.psub,
.tip,
.ti,
.cards,
.ldrc-card,
.ch,
.cico,
.cm,
.cname,
.csub,
.cdesc,
.bgs,
.b,
.num,
.num-label,
.acts,
.act,
#ldrc-footer,
.footer-ghi,
.footer-ghi-text,
.footer-copy {
    direction: rtl;
}

body.ltr #ldrc-header,
body.ltr #ldrc-header h1,
body.ltr #ldrc-header p,
body.ltr .lang-bar,
body.ltr .lang-bar button,
body.ltr #ldrc-sos,
body.ltr #ldrc-sos-in,
body.ltr .sos-lbl,
body.ltr .chip,
body.ltr #ldrc-main,
body.ltr .intro,
body.ltr .intro h2,
body.ltr .intro p,
body.ltr #ldrc-cat-grid,
body.ltr .cat,
body.ltr .ci,
body.ltr .cn,
body.ltr .cd,
body.ltr .panel,
body.ltr .ptop,
body.ltr .pttl,
body.ltr .pttl h3,
body.ltr .psub,
body.ltr .tip,
body.ltr .ti,
body.ltr .cards,
body.ltr .ldrc-card,
body.ltr .ch,
body.ltr .cico,
body.ltr .cm,
body.ltr .cname,
body.ltr .csub,
body.ltr .cdesc,
body.ltr .bgs,
body.ltr .b,
body.ltr .num,
body.ltr .num-label,
body.ltr .acts,
body.ltr .act,
body.ltr #ldrc-footer,
body.ltr .footer-ghi,
body.ltr .footer-ghi-text,
body.ltr .footer-copy {
    direction: ltr;
}

/* RESPONSIVE */
@media (max-width: 580px) {
    #ldrc-cat-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cat {
        padding: 14px 12px;
        gap: 6px;
        text-align: center;
    }
    
    body.ltr .cat {
        text-align: center;
    }
    
    .ci {
        font-size: 1.6rem;
        margin: 0 auto;
    }
    
    .cn {
        font-size: .88rem;
    }
    
    .cd {
        font-size: .76rem;
        display: block;
    }
}

@media (max-width: 360px) {
    #ldrc-cat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cat {
        padding: 12px 10px;
        gap: 5px;
    }
    
    .ci {
        font-size: 1.4rem;
    }
    
    .cn {
        font-size: .82rem;
    }
    
    .cd {
        font-size: .72rem;
        line-height: 1.4;
    }
}

body.ltr {
    direction: ltr;
}
