:root {
    --indigo: #293a8f;
    --indigo-2: #1f2f3b;
    --indigo-3: #16232d;
    --red: #f21b17;
    --red-dark: #980f08;
    --paper: #f7f7f2;
    --white: #fff;
    --muted: #66747d;
    --line: #dde1de;
    --shadow: 0 18px 50px rgba(22, 35, 45, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    min-height: 100svh;
    margin: 0;
    color: var(--indigo-2);
    background: var(--paper);
    direction: rtl;
    display: flex;
    flex-direction: column;
    font-family: "Times New Roman", "Traditional Arabic", Georgia, serif;
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
}
html[dir="ltr"] body { direction: ltr; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { overflow-wrap: anywhere; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px clamp(16px, 3vw, 48px);
    background: rgba(31, 47, 59, .97);
    color: var(--white);
    border-bottom: 3px solid var(--red);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: block; min-width: 0; }
.brand strong { display: block; line-height: 1.25; }
.brand strong { font-size: 20px; font-weight: 900; white-space: nowrap; }

.nav { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 4px;
    color: rgba(255,255,255,.84);
    border-bottom: 2px solid transparent;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--white); background: rgba(255,255,255,.08); border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; justify-content: end; gap: 8px; }
.lang-link, .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--red);
    color: var(--white);
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}
.menu-toggle { display: none; border: 0; cursor: pointer; font-size: 22px; }
.hero { min-height: calc(100svh - 76px); position: relative; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--indigo-3); }
.hero:before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,35,45,.98), rgba(41,58,143,.58), rgba(242,27,23,.34)), var(--hero) center/cover; }
html[dir="ltr"] .hero:before { background: linear-gradient(270deg, rgba(22,35,45,.98), rgba(41,58,143,.58), rgba(242,27,23,.34)), var(--hero) center/cover; }
.hero-inner { position: relative; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: clamp(70px, 12vh, 140px) 0 54px; }
.eyebrow { color: var(--red); font-weight: 900; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 5.8vw, 76px); line-height: 1.12; max-width: 920px; margin-bottom: 18px; font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.22; margin-bottom: 14px; font-weight: 900; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; margin-bottom: 8px; font-weight: 900; }
.lead { font-size: clamp(19px, 2vw, 25px); max-width: 780px; color: rgba(255,255,255,.9); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border-radius: 4px; border: 1px solid transparent; background: var(--red); color: var(--white); font-weight: 900; font-size: 17px; line-height: 1.25; text-align: center; }
.btn.secondary { background: var(--indigo); color: var(--white); }
.btn.outline { background: transparent; border-color: var(--red); color: var(--red); }
.section { padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 56px); }
.section.dark { background: var(--indigo-2); color: var(--white); }
.container { width: min(1180px, 100%); margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 650px; color: var(--muted); margin-bottom: 0; }
.dark .section-head p { color: rgba(255,255,255,.75); }
.title-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; border-right: 6px solid var(--red); background: var(--indigo-2); color: var(--white); padding: 14px 18px; cursor: pointer; text-align: inherit; font-weight: 900; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; }
html[dir="ltr"] .title-strip { border-right: 0; border-left: 6px solid var(--red); }
.title-strip span:first-child { min-width: 0; overflow-wrap: anywhere; }
.title-strip span:last-child { color: var(--red); font-size: 28px; line-height: 1; flex: 0 0 auto; }
.crud-list { display: grid; gap: 14px; }
.crud-item { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.crud-body { display: none; padding: 20px; border-top: 3px solid var(--red); }
.crud-item.open .crud-body { display: block; }
.crud-grid { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.crud-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span { padding: 7px 10px; border-radius: 999px; background: rgba(242,27,23,.1); color: var(--red-dark); font-weight: 800; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; padding: 22px; box-shadow: var(--shadow); }
.stat strong { display: block; color: var(--red); font-size: clamp(32px, 4vw, 42px); line-height: 1; }
.page-hero { padding: clamp(62px, 9vw, 118px) clamp(16px, 4vw, 56px); color: var(--white); background: linear-gradient(90deg, rgba(22,35,45,.97), rgba(41,58,143,.52)), var(--page-image) center/cover; }
html[dir="ltr"] .page-hero { background: linear-gradient(270deg, rgba(22,35,45,.97), rgba(41,58,143,.52)), var(--page-image) center/cover; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.footer { flex-shrink: 0; display: flex; justify-content: center; align-items: center; min-height: 38px; padding: 7px 18px; background: var(--indigo-3); color: rgba(255,255,255,.86); border-top: 2px solid var(--red); text-align: center; margin-top: auto; }
.footer p { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; line-height: 1.35; }
.footer strong { color: #fff; font-weight: 900; }
@media (max-width: 1180px) {
    .site-header { grid-template-columns: 1fr auto; }
    .brand { min-width: 0; }
    .brand strong { white-space: normal; }
    .nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; }
    .nav.open { display: flex; }
    .nav a { justify-content: flex-start; min-height: 42px; padding: 8px 12px; white-space: normal; }
    html[dir="rtl"] .nav a { justify-content: flex-end; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crud-grid { grid-template-columns: 1fr; }
    .crud-grid img { max-height: 340px; }
    .section-head { display: block; }
}
@media (max-width: 620px) {
    body { font-size: 17px; line-height: 1.7; }
    .site-header { padding: 10px 14px; gap: 10px; }
    .logo { width: 38px; height: 38px; }
    .brand { gap: 9px; }
    .brand strong { font-size: 17px; }
    .lang-link, .menu-toggle { min-width: 40px; min-height: 38px; padding: 7px 10px; }
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    .lead { font-size: 18px; }
    .hero-inner { width: min(100% - 28px, 1180px); padding-bottom: 42px; }
    .section { padding: 38px 14px; }
    .stats { grid-template-columns: 1fr; }
    .title-strip { padding: 12px 14px; font-size: 19px; }
    .crud-body { padding: 16px; }
    .btn { width: 100%; min-height: 42px; }
    .footer p { flex-wrap: wrap; gap: 6px; font-size: 14px; }
}

.clients-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.client-card { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 14px; padding: 22px 16px; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; background: #fff; text-align: center; box-shadow: 0 12px 28px rgba(22, 35, 45, .08); }
.client-card img { width: 58px; height: 58px; object-fit: contain; }
.client-card h3 { margin: 0; font-size: 20px; line-height: 1.35; color: var(--indigo-2); }
@media (max-width: 980px) { .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients-grid { grid-template-columns: 1fr; } .client-card { min-height: 128px; } }

.clients-panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.static-title-strip { cursor: default; }
.centered-title { justify-content: center; text-align: center; border-right: 0; border-left: 0; }
html[dir="ltr"] .centered-title { border-left: 0; }
.static-body { display: block; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: grid; grid-template-rows: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; background: #fff; box-shadow: 0 12px 28px rgba(22, 35, 45, .08); }
.news-card img { width: 100%; height: 100%; object-fit: cover; background: var(--indigo-2); }
.news-card div { padding: 16px; }
.news-card h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.35; color: var(--indigo-2); }
.news-card p { margin-bottom: 12px; color: var(--muted); font-size: 16px; }
.news-card span { color: var(--red); font-weight: 900; }
.news-detail { display: grid; gap: 18px; }
.news-summary-strip { padding: 16px 20px; background: var(--red); color: var(--white); border-radius: 6px; font-weight: 900; text-align: center; box-shadow: var(--shadow); }
.featured-news-image img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 6px; border-bottom: 5px solid var(--red); box-shadow: var(--shadow); }
.news-detail-body { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.news-detail-body h2, .detail-subtitle { color: var(--red); font-size: 22px; margin-bottom: 12px; font-weight: 900; }
.news-detail-body p { font-size: 18px; color: var(--indigo-2); }
.media-block iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; box-shadow: var(--shadow); }
.media-video { width: 100%; max-height: 560px; border-radius: 6px; background: #000; box-shadow: var(--shadow); }
.news-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border-bottom: 4px solid var(--red); box-shadow: 0 10px 22px rgba(22, 35, 45, .1); }
.detail-link { width: fit-content; }
@media (max-width: 980px) { .news-grid, .news-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-grid, .news-gallery { grid-template-columns: 1fr; } .news-card { grid-template-rows: 170px 1fr; } }
.centered-news-detail { text-align: center; }
.centered-news-detail .news-detail-body { text-align: center; }
.centered-news-detail .news-detail-body p { margin-left: auto; margin-right: auto; max-width: 900px; }
.centered-news-detail .detail-subtitle { text-align: center; }
.project-title-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-title-card { min-height: 130px; display: grid; place-items: center; padding: 22px; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; background: #fff; text-align: center; box-shadow: 0 12px 28px rgba(22, 35, 45, .08); transition: transform .18s ease, box-shadow .18s ease; }
.project-title-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(22, 35, 45, .14); }
.project-title-card h3 { margin: 0; color: var(--indigo-2); font-size: 22px; line-height: 1.35; }
@media (max-width: 980px) { .project-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-title-grid { grid-template-columns: 1fr; } .project-title-card { min-height: 110px; } }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; overflow: hidden; box-shadow: 0 12px 28px rgba(22, 35, 45, .08); }
.contact-card-head { background: var(--indigo-2); color: var(--white); padding: 14px 18px; font-size: 22px; font-weight: 900; text-align: center; }
.contact-list { display: grid; gap: 12px; padding: 20px; }
.contact-list div { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.contact-list strong { color: var(--red); font-size: 16px; }
.contact-list a, .contact-list span { color: var(--indigo-2); font-weight: 800; overflow-wrap: anywhere; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.social-grid a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--indigo-2); font-weight: 900; }
.social-grid a:hover { border-color: var(--red); color: var(--red); }
.social-grid span { color: var(--red); font-size: 14px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .social-grid { grid-template-columns: 1fr; } .contact-card-head { font-size: 20px; } }
.contact-page-section .contact-card { text-align: center; }
.contact-page-section .contact-list div { justify-items: center; text-align: center; }
.contact-page-section .social-grid a { justify-content: center; text-align: center; }
.about-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-card { min-height: 300px; display: grid; align-content: start; gap: 14px; padding: 24px; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; background: #fff; text-align: center; box-shadow: 0 12px 28px rgba(22, 35, 45, .08); }
.about-card span { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 2px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; }
.about-card h2 { margin: 0; color: var(--indigo-2); font-size: 25px; line-height: 1.3; }
.about-card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.about-card.featured { background: var(--indigo-2); color: #fff; }
.about-card.featured h2, .about-card.featured p { color: #fff; }
@media (max-width: 980px) { .about-card-grid { grid-template-columns: 1fr; } .about-card { min-height: auto; } }
.about-large-stack { grid-template-columns: 1fr; gap: 18px; }
.about-large-stack .about-card { min-height: 220px; align-content: center; padding: clamp(24px, 4vw, 42px); }
.about-large-stack .about-card span { display: none; }
.about-large-stack .about-card h2 { font-size: clamp(26px, 3vw, 36px); color: var(--red); }
.about-large-stack .about-card p { max-width: 920px; margin: 0 auto; font-size: 19px; color: var(--indigo-2); }
.company-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.company-card { display: grid; grid-template-rows: 190px 1fr; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; overflow: hidden; background: #fff; text-align: center; box-shadow: 0 12px 28px rgba(22,35,45,.08); transition: transform .18s ease, box-shadow .18s ease; }
.company-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(22,35,45,.14); }
.company-card img { width: 100%; height: 100%; object-fit: cover; background: var(--indigo-2); }
.company-card h3 { margin: 0; padding: 18px 14px; display: grid; place-items: center; color: var(--indigo-2); font-size: 21px; line-height: 1.35; }
.company-detail { display: grid; gap: 18px; text-align: center; }
.company-detail-image { background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; padding: 24px; box-shadow: var(--shadow); }
.company-detail-image img { width: min(360px, 100%); max-height: 300px; object-fit: contain; }
.company-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.company-detail-grid article { background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; padding: 24px; box-shadow: 0 12px 28px rgba(22,35,45,.08); }
.company-detail-grid h2 { margin-bottom: 10px; color: var(--red); font-size: 23px; }
.company-detail-grid p { margin: 0; color: var(--indigo-2); font-size: 17px; line-height: 1.8; }
@media (max-width: 980px) { .company-card-grid, .company-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .company-card-grid, .company-detail-grid { grid-template-columns: 1fr; } .company-card { grid-template-rows: 170px 1fr; } }
.company-card-logo { display: grid; place-items: center; background: var(--paper); padding: 20px; }
.company-card-logo img { width: min(150px, 80%); height: min(150px, 80%); object-fit: contain; }
.profile-card { background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--red); border-radius: 6px; padding: 24px; text-align: center; box-shadow: var(--shadow); }
.profile-card h2 { margin-bottom: 14px; color: var(--red); }
.profile-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.company-detail-image {
    display: grid;
    place-items: center;
    text-align: center;
}
.company-detail-image img {
    margin-inline: auto;
}
.company-card-logo {
    display: grid;
    place-items: center;
    text-align: center;
}
.company-card-logo img {
    margin-inline: auto;
}
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(242, 27, 23, .35);
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22,35,45,.12);
}
.back-button span { font-size: 22px; line-height: 1; }
.site-back-button { margin: 18px clamp(16px, 4vw, 56px) 0; align-self: flex-start; }
html[dir="ltr"] .site-back-button { align-self: flex-start; }
@media (max-width: 620px) { .site-back-button { margin-top: 14px; width: calc(100% - 28px); } }
/* Final responsive polish */
.site-header,
.clients-panel,
.crud-item,
.company-card,
.news-card,
.project-title-card,
.client-card,
.about-card,
.contact-card {
    max-width: 100%;
}

.brand strong,
.nav a,
.title-strip,
.company-card h3,
.news-card h3,
.project-title-card h3,
.client-card h3,
.about-card h2,
.contact-card-head {
    overflow-wrap: anywhere;
    word-break: normal;
}

.company-card {
    grid-template-rows: 190px auto;
}

.company-card .company-card-logo {
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: 22px;
    background: var(--paper);
}

.company-card .company-card-logo img {
    width: min(150px, 76%);
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

.company-card h3 {
    min-height: 86px;
    padding: 16px 14px;
    align-items: center;
    font-size: clamp(20px, 2vw, 24px);
}

.company-detail-image {
    display: grid;
    place-items: center;
}

.company-detail-image img {
    width: min(340px, 82%);
    max-height: 320px;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 8px 10px;
        gap: 8px;
    }

    .brand {
        min-width: 0;
        gap: 8px;
    }

    .brand strong {
        font-size: 16px;
        line-height: 1.25;
        white-space: normal;
    }

    .logo {
        width: 34px;
        height: 34px;
    }

    .header-actions {
        gap: 6px;
    }

    .lang-link,
    .menu-toggle {
        min-width: 38px;
        min-height: 36px;
        padding: 6px 9px;
        font-size: 16px;
    }

    .menu-toggle {
        font-size: 20px;
    }

    .nav {
        padding-top: 6px;
    }

    .nav a {
        min-height: 38px;
        font-size: 16px;
        line-height: 1.3;
    }

    .section {
        padding: 26px 10px;
    }

    .container {
        width: 100%;
    }

    .clients-panel {
        border-radius: 5px;
    }

    .title-strip {
        min-height: 58px;
        padding: 12px 10px;
        font-size: 20px;
        line-height: 1.35;
        justify-content: center;
        text-align: center;
    }

    .title-strip span:first-child {
        width: 100%;
    }

    .crud-body,
    .static-body {
        padding: 14px 10px;
    }

    .company-card-grid,
    .news-grid,
    .project-title-grid,
    .clients-grid,
    .news-gallery,
    .company-detail-grid,
    .contact-grid,
    .social-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .company-card {
        grid-template-rows: auto auto;
    }

    .company-card .company-card-logo {
        min-height: 172px;
        padding: 18px;
    }

    .company-card .company-card-logo img {
        width: min(138px, 72%);
        height: 138px;
    }

    .company-card h3 {
        min-height: auto;
        padding: 14px 12px 18px;
        font-size: 21px;
        line-height: 1.35;
    }

    .news-card {
        grid-template-rows: auto auto;
    }

    .news-card img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .project-title-card,
    .client-card,
    .about-card,
    .contact-card,
    .company-detail-grid article,
    .profile-card,
    .news-detail-body {
        padding: 18px 14px;
    }

    .about-large-stack .about-card {
        min-height: auto;
        padding: 22px 16px;
    }

    .about-large-stack .about-card h2 {
        font-size: 25px;
    }

    .about-large-stack .about-card p,
    .news-detail-body p,
    .company-detail-grid p {
        font-size: 17px;
        line-height: 1.8;
    }

    .company-detail-image {
        padding: 18px 12px;
    }

    .company-detail-image img {
        width: min(260px, 84%);
        max-height: 260px;
    }

    .news-summary-strip {
        padding: 13px 12px;
        font-size: 17px;
        line-height: 1.55;
    }

    .back-button,
    .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .brand strong {
        font-size: 15px;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .lang-link,
    .menu-toggle {
        min-width: 36px;
        min-height: 34px;
        padding: 5px 8px;
    }

    .title-strip {
        font-size: 19px;
    }

    .company-card .company-card-logo {
        min-height: 155px;
    }

    .company-card .company-card-logo img {
        width: 122px;
        height: 122px;
    }
}
/* Bottom icon-only back button */
.back-button {
    position: fixed;
    inset-block-end: 18px;
    inset-inline-start: 18px;
    z-index: 80;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    box-shadow: 0 12px 28px rgba(22,35,45,.22);
}
.back-button span {
    display: block;
    font-size: 25px;
    line-height: 1;
}
.site-back-button,
html[dir="ltr"] .site-back-button {
    margin: 0;
    align-self: auto;
}
@media (max-width: 620px) {
    .back-button,
    .site-back-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        inset-block-end: 14px;
        inset-inline-start: 14px;
    }
}
/* Professional about cards with compact inner title strips */
.about-page-section .crud-body.static-body {
    padding: clamp(18px, 3vw, 28px);
}
.about-large-stack {
    gap: 20px;
}
.about-large-stack .about-card {
    min-height: auto;
    align-content: start;
    gap: 20px;
    padding: clamp(22px, 3.4vw, 34px);
    border: 1px solid var(--line);
    border-bottom: 5px solid var(--red);
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(247,247,242,.65), #fff 46%),
        #fff;
    box-shadow: 0 14px 34px rgba(22,35,45,.09);
}
.about-large-stack .about-card h2 {
    width: fit-content;
    min-width: min(320px, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 9px 28px 11px;
    border-radius: 5px;
    background: var(--indigo-2);
    color: #fff;
    border-bottom: 4px solid var(--red);
    box-shadow: 0 10px 22px rgba(22,35,45,.12);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
    text-align: center;
}
.about-large-stack .about-card p {
    max-width: 940px;
    margin: 0 auto;
    color: var(--indigo-2);
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.95;
    text-align: center;
}
@media (max-width: 620px) {
    .about-page-section .crud-body.static-body {
        padding: 12px;
    }
    .about-large-stack {
        gap: 14px;
    }
    .about-large-stack .about-card {
        gap: 16px;
        padding: 18px 12px;
    }
    .about-large-stack .about-card h2 {
        min-width: 0;
        width: min(100%, 270px);
        padding: 8px 14px 10px;
        font-size: 23px;
    }
    .about-large-stack .about-card p {
        font-size: 17px;
        line-height: 1.85;
    }
}
/* Rebuilt home page */
.home-hero {
    position: relative;
    min-height: calc(100svh - 78px);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(22,35,45,.98) 0%, rgba(31,47,59,.96) 36%, rgba(41,58,143,.72) 64%, rgba(242,27,23,.78) 100%),
        var(--indigo-3);
    border-bottom: 3px solid var(--red);
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/Backstage/public/site-assets/logo-red.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(46vw, 520px);
    opacity: .105;
    filter: saturate(.8);
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 30%, rgba(255,255,255,.08), transparent 28%),
        radial-gradient(circle at 80% 62%, rgba(242,27,23,.18), transparent 30%);
    pointer-events: none;
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100% - 34px));
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}
.home-kicker {
    margin: 0;
    color: var(--red);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 900;
}
.home-hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.18;
    text-align: center;
}
.home-lead {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255,255,255,.92);
    font-size: clamp(21px, 2.2vw, 29px);
    line-height: 1.75;
    text-align: center;
}
.home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}
.home-stats-section {
    padding-top: clamp(34px, 5vw, 56px);
    padding-bottom: clamp(34px, 5vw, 56px);
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.home-stat-card {
    min-height: 128px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 18px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-bottom: 5px solid var(--red);
    border-radius: 7px;
    box-shadow: 0 14px 34px rgba(22,35,45,.09);
    text-align: center;
}
.home-stat-card strong {
    color: var(--red);
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1;
}
.home-stat-card span {
    color: var(--indigo-2);
    font-weight: 900;
    font-size: 17px;
}
.home-stack-section {
    padding-top: 0;
}
.home-stack {
    display: grid;
    gap: 22px;
}
.home-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.home-panel .title-strip {
    text-decoration: none;
}
.home-panel-body {
    padding: clamp(16px, 2.5vw, 24px);
}
.home-about-preview,
.home-service-grid,
.home-contact-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.home-contact-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-mini-card {
    min-height: 150px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--red);
    border-radius: 6px;
    background: var(--paper);
    text-align: center;
}
.home-mini-card h3 {
    margin: 0;
    color: var(--red);
    font-size: 23px;
}
.home-mini-card p {
    margin: 0;
    color: var(--indigo-2);
    font-size: 17px;
    line-height: 1.8;
}
.home-company-grid .company-card {
    box-shadow: none;
}
@media (max-width: 1180px) {
    .home-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .home-about-preview,
    .home-service-grid {
        grid-template-columns: 1fr;
    }
    .home-contact-preview {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .home-hero {
        min-height: calc(100svh - 64px);
        padding: 42px 0;
    }
    .home-hero::before {
        background-size: min(82vw, 320px);
        opacity: .09;
    }
    .home-hero h1 {
        font-size: 38px;
    }
    .home-lead {
        font-size: 19px;
        line-height: 1.7;
    }
    .home-actions {
        width: 100%;
    }
    .home-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .home-stat-card {
        min-height: 112px;
        padding: 14px 8px;
    }
    .home-stat-card span {
        font-size: 15px;
    }
    .home-panel-body {
        padding: 12px;
    }
}
@media (max-width: 390px) {
    .home-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Home settings layout */
.home-layout-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-layout-preview div {
    min-height: 120px;
}
.home-layout-preview p {
    margin: 0;
    color: var(--muted);
}
@media (max-width: 780px) {
    .home-layout-preview {
        grid-template-columns: 1fr;
    }
}
/* Softer home hero and visible contact details */
.home-hero {
    background:
        linear-gradient(115deg, rgba(22,35,45,.96) 0%, rgba(31,47,59,.92) 38%, rgba(41,58,143,.46) 68%, rgba(242,27,23,.52) 100%),
        var(--indigo-3);
}
.home-hero::before {
    background-size: min(38vw, 440px);
    opacity: .18;
    filter: saturate(1.05);
}
.home-hero::after {
    background:
        linear-gradient(180deg, rgba(22,35,45,.08), rgba(22,35,45,.18)),
        radial-gradient(circle at 50% 48%, rgba(255,255,255,.08), transparent 33%);
}
.home-kicker {
    color: #ff3a36;
    text-shadow: 0 2px 10px rgba(22,35,45,.34);
}
.home-hero h1,
.home-lead {
    text-shadow: 0 3px 18px rgba(22,35,45,.46);
}
.home-contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.home-contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--red);
    border-radius: 7px;
    padding: 20px;
    text-align: center;
}
.home-contact-card h3 {
    width: fit-content;
    min-width: min(260px, 100%);
    margin: 0 auto 16px;
    padding: 8px 18px 10px;
    border-radius: 5px;
    background: var(--indigo-2);
    color: #fff;
    border-bottom: 3px solid var(--red);
    font-size: 22px;
}
.home-contact-list,
.home-social-list {
    display: grid;
    gap: 10px;
}
.home-contact-list div,
.home-social-list a {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--indigo-2);
    text-align: center;
}
.home-contact-list strong,
.home-social-list strong {
    color: var(--red);
    font-size: 16px;
}
.home-contact-list a,
.home-contact-list span,
.home-social-list span {
    overflow-wrap: anywhere;
    font-weight: 800;
}
.home-social-list a:hover {
    border-color: var(--red);
    color: var(--red);
}
@media (max-width: 780px) {
    .home-contact-detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .home-hero::before {
        background-size: min(72vw, 300px);
        opacity: .16;
    }
    .home-contact-card {
        padding: 14px;
    }
    .home-contact-card h3 {
        min-width: 0;
        width: min(100%, 260px);
        font-size: 20px;
    }
}
/* Compact social links in one visual group */
.home-social-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.home-social-list a {
    min-height: 54px;
    align-content: center;
    padding: 10px 12px;
}
.home-social-list a strong {
    font-size: 16px;
}
.home-social-list a span {
    display: none;
}
@media (max-width: 620px) {
    .home-social-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Red patterned hero background with centered logo only */
.home-hero {
    background:
        radial-gradient(circle at center, rgba(255,255,255,.08), transparent 34%),
        linear-gradient(180deg, #b4120c 0%, #980f08 100%);
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/Backstage/public/site-assets/logo-red.png');
    background-repeat: repeat;
    background-position: center;
    background-size: 118px 118px;
    opacity: .13;
    filter: brightness(0) invert(1);
    transform: rotate(-10deg) scale(1.08);
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        url('/Backstage/public/site-assets/logo-red.png') center / min(230px, 32vw) no-repeat,
        linear-gradient(90deg, rgba(152,15,8,.25), rgba(180,18,12,.08), rgba(152,15,8,.25));
    opacity: .92;
    filter: brightness(0) invert(1);
    pointer-events: none;
}
.home-hero-inner {
    z-index: 1;
}
.home-hero h1,
.home-lead,
.home-kicker {
    text-shadow: 0 4px 18px rgba(70, 0, 0, .42);
}
@media (max-width: 620px) {
    .home-hero::before {
        background-size: 92px 92px;
    }
    .home-hero::after {
        background-size: min(180px, 52vw), auto;
        opacity: .82;
    }
}
/* Clean red hero with centered indigo logo */
.home-hero {
    background:
        linear-gradient(180deg, rgba(178, 18, 12, .96), rgba(145, 14, 8, .98)),
        #a80f0a;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.08), transparent 38%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 74px);
    opacity: 1;
    filter: none;
    transform: none;
}
.home-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: min(320px, 34vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: var(--indigo-2);
    opacity: .34;
    -webkit-mask: url('/Backstage/public/site-assets/logo-red.png') center / contain no-repeat;
    mask: url('/Backstage/public/site-assets/logo-red.png') center / contain no-repeat;
    filter: none;
    pointer-events: none;
}
.home-hero-inner {
    z-index: 1;
}
.home-hero h1,
.home-lead,
.home-kicker {
    text-shadow: 0 4px 16px rgba(80, 0, 0, .42);
}
@media (max-width: 620px) {
    .home-hero::after {
        width: min(230px, 58vw);
        opacity: .3;
    }
}
/* Exact-style clean red pattern image: no logo, no writing */
.home-hero {
    background: #a90f09 url('/Backstage/public/site-assets/home-red-pattern.svg') center / cover no-repeat;
}
.home-hero::before,
.home-hero::after {
    display: none;
}
.home-hero-inner {
    z-index: 1;
}
.home-hero h1,
.home-lead,
.home-kicker {
    text-shadow: 0 4px 18px rgba(68, 0, 0, .48);
}
/* Softer red watermark background */
.home-hero {
    background:
        linear-gradient(90deg, rgba(31,47,59,.28), rgba(31,47,59,.08)),
        rgba(126, 16, 12, .92)
        url('/Backstage/public/site-assets/home-red-pattern.svg') center / cover no-repeat;
    background-blend-mode: normal, soft-light;
}
.home-hero::before,
.home-hero::after {
    display: none;
}
/* Editable home hero controls and indigo buttons */
.home-hero {
    background:
        linear-gradient(90deg, rgba(31,47,59,.18), rgba(31,47,59,.04)),
        rgba(126, 16, 12, .84)
        var(--home-pattern) center / cover no-repeat;
    background-blend-mode: normal, soft-light;
}
.home-actions .btn,
.home-actions .btn.secondary,
.home-actions .contact-hero-btn {
    background: var(--indigo);
    border-color: rgba(255,255,255,.18);
    color: #fff;
}
.home-actions .btn:hover {
    background: var(--indigo-2);
}
.home-kicker,
.home-lead {
    color: var(--indigo-2);
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(255,255,255,.26);
}
.home-hero h1 {
    color: var(--indigo-2);
    font-weight: 900;
    text-shadow: 0 3px 12px rgba(255,255,255,.24);
}
.home-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}
.home-edit-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}
.home-edit-form label span,
.settings-bg-preview span {
    color: var(--muted);
    font-size: 13px;
}
.home-edit-form input,
.home-edit-form textarea,
.home-edit-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 9px 11px;
    color: var(--indigo-2);
    background: #fff;
}
.home-edit-form textarea {
    min-height: 110px;
    resize: vertical;
}
.home-edit-form .wide,
.settings-bg-preview,
.settings-save-row {
    grid-column: 1 / -1;
}
.settings-bg-preview {
    display: grid;
    gap: 8px;
}
.settings-bg-preview img {
    width: min(460px, 100%);
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.settings-save-row {
    display: flex;
    justify-content: center;
}
@media (max-width: 780px) {
    .home-edit-form {
        grid-template-columns: 1fr;
    }
}
/* Hero final text color: white text, indigo buttons */
.home-hero .home-kicker,
.home-hero h1,
.home-hero .home-lead {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 4px 18px rgba(68, 0, 0, .52);
}
.home-hero .home-actions .btn,
.home-hero .home-actions .btn.secondary,
.home-hero .home-actions .contact-hero-btn {
    background: var(--indigo);
    color: #fff;
    border-color: rgba(255,255,255,.22);
}
.home-hero .home-actions .btn:hover,
.home-hero .home-actions .contact-hero-btn:hover {
    background: var(--indigo-2);
}
/* Professional motion layer */
.motion-ready .home-hero .home-kicker,
.motion-ready .home-hero h1,
.motion-ready .home-hero .home-lead,
.motion-ready .home-hero .home-actions {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .72s ease, transform .72s ease;
}
.motion-ready .home-hero.is-visible .home-kicker {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .08s;
}
.motion-ready .home-hero.is-visible h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .18s;
}
.motion-ready .home-hero.is-visible .home-lead {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .30s;
}
.motion-ready .home-hero.is-visible .home-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .42s;
}
.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .58s ease, transform .58s ease, box-shadow .2s ease, border-color .2s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.home-panel,
.home-stat-card,
.company-card,
.project-title-card,
.news-card,
.client-card,
.home-mini-card {
    will-change: transform;
}
.home-panel:hover,
.home-stat-card:hover,
.company-card:hover,
.project-title-card:hover,
.news-card:hover,
.client-card:hover,
.home-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(22,35,45,.13);
}
@media (prefers-reduced-motion: reduce) {
    .motion-ready .home-hero .home-kicker,
    .motion-ready .home-hero h1,
    .motion-ready .home-hero .home-lead,
    .motion-ready .home-hero .home-actions,
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* Error pages */
.error-page-section {
    display: grid;
    min-height: calc(100svh - 130px);
    place-items: center;
}
.error-page-card {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-bottom: 5px solid var(--red);
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}
.error-page-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin: 0 auto 18px;
}
.error-page-card h1 {
    color: var(--red);
    font-size: clamp(32px, 4vw, 52px);
}
.error-page-card p {
    color: var(--indigo-2);
    font-size: 20px;
    font-weight: 800;
}
.error-page-card .actions {
    justify-content: center;
}
/* Certificate images */
.certificate-image-link {
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}
.certificate-image {
    width: min(520px, 100%);
    max-height: 420px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--red);
    border-radius: 6px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 12px 28px rgba(22,35,45,.08);
}
.certificate-admin-preview {
    width: 150px;
    height: 110px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 8px;
}
@media (max-width: 620px) {
    .certificate-image {
        max-height: 300px;
    }
}
/* Center certificate card content */
.certificates-page-section .crud-item {
    text-align: center;
}
.certificates-page-section .crud-body {
    display: none;
    justify-items: center;
    text-align: center;
}
.certificates-page-section .crud-item.open .crud-body,
.certificates-page-section .crud-body.static-body {
    display: grid;
}
.certificates-page-section .crud-body > p {
    width: min(820px, 100%);
    margin: 0 auto;
    color: var(--ink);
    font-weight: 700;
    line-height: 2;
    text-align: center;
}
.certificates-page-section .certificate-image-link {
    width: 100%;
}
.certificates-page-section .certificate-image {
    margin-inline: auto;
}

@media (max-width: 620px) {
    .certificates-page-section .crud-body > p {
        font-size: 16px;
        line-height: 1.9;
    }
}