
:root { --teal:#0f616c; --teal2:#177b86; --gold:#d7b470; --ink:#0a2d33; --muted:#5e777b; --soft:#eaf7f6; --white:#fff; --line:rgba(15,97,108,.14); --shadow:0 18px 55px rgba(15,97,108,.14); --radius:24px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; direction:rtl; font-family:Tahoma, Arial, sans-serif; color:var(--ink); background:#fbfdfd; }
a { color:inherit; text-decoration:none; } img { max-width:100%; display:block; }
.container { width:min(1200px, calc(100% - 34px)); margin:auto; }
.ltr, .ltr-text { direction:ltr; unicode-bidi:embed; } .ltr-text { text-align:left; }
.topbar { position:sticky; top:0; z-index:90; background:rgba(255,255,255,.93); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.nav { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.logo { display:flex; align-items:center; gap:12px; font-weight:900; color:var(--teal); } .logo img { width:165px; border-radius:10px; }
.menu { display:flex; align-items:center; gap:6px; flex-wrap:wrap; } .menu a { padding:10px 12px; border-radius:999px; color:var(--teal); font-weight:800; } .menu a:hover { background:var(--soft); }
.nav-actions { display:flex; align-items:center; gap:8px; }
.mobile-toggle { display:none; border:1px solid var(--line); background:#fff; color:var(--teal); border-radius:12px; padding:10px 12px; font-size:1.2rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:999px; padding:12px 18px; font-weight:900; cursor:pointer; transition:.18s ease; }
.btn-primary { background:linear-gradient(135deg,var(--teal),#1b8b98); color:#fff; box-shadow:0 10px 28px rgba(15,97,108,.25); } .btn-primary:hover { transform:translateY(-2px); }
.btn-outline { background:#fff; color:var(--teal); border:1px solid var(--line); } .btn-gold { background:var(--gold); color:#15383e; }
.hero { padding:84px 0 52px; overflow:hidden; background:radial-gradient(circle at 15% 20%, rgba(215,180,112,.28), transparent 30%), linear-gradient(135deg,#e7f6f5,#fff); }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:38px; align-items:center; }
.kicker { color:var(--gold); font-weight:900; letter-spacing:.5px; margin-bottom:12px; }
h1 { font-size:clamp(2.15rem,5vw,4.4rem); line-height:1.08; margin:0 0 18px; color:var(--teal); }
h2 { color:var(--teal); font-size:clamp(1.55rem,3vw,2.3rem); margin:0 0 12px; } h3 { color:var(--teal); }
.lead, .section-desc { color:var(--muted); line-height:1.9; font-size:1.05rem; } .lead { margin:0 0 28px; }
.hero-visual img { border-radius:30px; box-shadow:var(--shadow); border:8px solid #fff; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:28px; } .stat { background:#fff; border:1px solid var(--line); border-radius:18px; padding:17px; box-shadow:0 8px 28px rgba(15,97,108,.08); } .stat b { display:block; color:var(--teal); font-size:1.55rem; } .stat span { color:var(--muted); font-size:.9rem; }
.section { padding:70px 0; } .section.alt { background:linear-gradient(180deg,#fff,var(--soft)); } .section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:24px; }
.about-card { display:grid; grid-template-columns:.9fr 1.1fr; gap:30px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); } .about-card img { border-radius:20px; } .about-text p { line-height:2; color:var(--muted); }
.category-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; } .category-card { background:#fff; border:1px solid var(--line); border-radius:24px; overflow:hidden; box-shadow:0 12px 38px rgba(15,97,108,.08); } .category-card img { height:170px; width:100%; object-fit:cover; } .category-card .body { padding:18px; } .category-card p { direction:ltr; text-align:right; color:var(--muted); line-height:1.6; }
.slider { position:relative; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow); margin:8px 0 22px; } .slider-track { display:flex; transition:transform .45s ease; direction:ltr; } .slide { min-width:100%; display:grid; grid-template-columns:1fr 1fr; gap:26px; align-items:center; padding:28px; direction:rtl; } .slide img { width:100%; height:330px; object-fit:cover; border-radius:22px; } .slide h3 { margin:0 0 10px; font-size:1.8rem; } .slide p { color:var(--muted); line-height:1.9; } .slider-btn { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:0; background:rgba(15,97,108,.9); color:#fff; font-size:1.4rem; cursor:pointer; } .slider-btn.prev { right:14px; } .slider-btn.next { left:14px; } .slider-dots { display:flex; justify-content:center; gap:7px; padding:0 0 18px; } .slider-dots button { width:9px; height:9px; border-radius:50%; border:0; background:#c9dbde; cursor:pointer; } .slider-dots button.active { width:24px; border-radius:999px; background:var(--teal); }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; padding:18px; background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:0 12px 35px rgba(15,97,108,.07); margin-bottom:26px; } .search { flex:1 1 320px; } .search input { width:100%; border:1px solid var(--line); border-radius:999px; background:#f7fbfb; outline:0; padding:14px 18px; font-size:1rem; } .search input:focus { background:#fff; border-color:var(--teal); } .filters { display:flex; flex-wrap:wrap; gap:8px; } .filter { border:1px solid var(--line); background:#fff; color:var(--teal); border-radius:999px; padding:10px 14px; font-weight:900; cursor:pointer; } .filter.active { background:var(--teal); color:#fff; }
.product-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; } .product-card { background:#fff; border:1px solid var(--line); border-radius:24px; overflow:hidden; box-shadow:0 12px 34px rgba(15,97,108,.08); transition:.18s ease; display:flex; flex-direction:column; } .product-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); } .product-card img { width:100%; height:230px; object-fit:cover; } .product-card .body { padding:18px; display:flex; flex-direction:column; gap:11px; flex:1; } .product-card h3 { margin:0; color:var(--ink); line-height:1.4; font-size:1.05rem; direction:ltr; text-align:left; } .meta { color:var(--muted); } .card-footer { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.badges { display:flex; flex-wrap:wrap; gap:6px; } .badge { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; color:var(--teal); background:var(--soft); font-size:.78rem; font-weight:900; } .badge.gold { color:#73551d; background:rgba(215,180,112,.23); } .link-more { color:var(--teal); font-weight:900; }
.contact-band { background:linear-gradient(135deg,var(--teal),#116f7a); color:#fff; border-radius:30px; padding:34px; display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; box-shadow:var(--shadow); } .contact-band h2 { color:#fff; } .contact-band p { color:rgba(255,255,255,.86); line-height:1.8; } .contact-links { display:flex; flex-wrap:wrap; gap:10px; } .phone-big { direction:ltr; display:inline-flex; align-items:center; gap:8px; padding:13px 18px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; font-weight:900; }
.page-hero { padding:46px 0; background:linear-gradient(135deg,var(--soft),#fff); } .breadcrumbs { color:var(--muted); margin-bottom:14px; }
.product-detail { padding:44px 0 70px; } .detail-grid { display:grid; grid-template-columns:1fr 340px; gap:24px; align-items:start; } .spec-frame, .white-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:14px; box-shadow:var(--shadow); } .spec-frame img { width:100%; border-radius:16px; } .side-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:22px; box-shadow:0 12px 34px rgba(15,97,108,.08); position:sticky; top:96px; } .info-list { list-style:none; padding:0; margin:16px 0; } .info-list li { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); } .info-list b { color:var(--teal); }
.table-wrap { overflow:auto; border-radius:20px; border:1px solid var(--line); background:#fff; box-shadow:0 10px 28px rgba(15,97,108,.06); } table.pro-table { width:100%; border-collapse:collapse; min-width:650px; } .pro-table th, .pro-table td { padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:top; line-height:1.7; } .pro-table th { width:260px; color:var(--teal); background:#f3fbfb; text-align:right; } .pro-table th span { display:block; direction:ltr; color:#789094; font-size:.82rem; margin-top:3px; } .pro-table tr:last-child th, .pro-table tr:last-child td { border-bottom:0; } .features-table td:first-child { width:62px; color:var(--teal); font-weight:900; text-align:center; }
.explain-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; } .explain-card { background:#fff; border:1px solid var(--line); border-radius:22px; overflow:hidden; box-shadow:0 12px 30px rgba(15,97,108,.08); } .explain-card img { width:100%; height:260px; object-fit:cover; } .explain-card h3 { margin:0; padding:14px 16px; font-size:1rem; border-top:1px solid var(--line); } .technical-img img { height:auto; object-fit:contain; background:#fff; } .related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px; }
.footer { margin-top:56px; background:#082d33; color:#dbeef0; padding:36px 0; } .footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:24px; } .footer h3 { color:#fff; } .footer a, .footer p { color:#dbeef0; line-height:1.8; } .backtop { position:fixed; bottom:18px; left:18px; z-index:70; width:46px; height:46px; border-radius:50%; background:var(--teal); color:#fff; display:grid; place-items:center; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:.2s; } .backtop.show { opacity:1; pointer-events:auto; }
@media (max-width:980px) { .hero-grid,.about-card,.detail-grid,.contact-band,.slide { grid-template-columns:1fr; } .category-grid { grid-template-columns:repeat(2,1fr); } .product-grid,.related-grid { grid-template-columns:repeat(2,1fr); } .footer-grid { grid-template-columns:1fr; } .stats { grid-template-columns:repeat(2,1fr); } .menu { display:none; position:absolute; top:76px; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); padding:12px 18px; box-shadow:var(--shadow); } .menu.show { display:flex; flex-direction:column; align-items:stretch; } .mobile-toggle { display:block; } .nav-actions .btn-outline { display:none; } .side-card { position:static; } }
@media (max-width:620px) { .container { width:calc(100% - 22px); } .hero { padding-top:48px; } .product-grid,.related-grid,.category-grid,.explain-grid { grid-template-columns:1fr; } .product-card img { height:210px; } .logo img { width:132px; } .btn { padding:10px 13px; font-size:.9rem; } .slide { padding:18px; } .slide img { height:230px; } .slider-btn { width:38px; height:38px; } .contact-links { flex-direction:column; } .phone-big { width:100%; justify-content:center; } table.pro-table { min-width:560px; } }

/* NAB custom updates start */
html[data-theme="dark"] { --ink:#eaf6f7; --muted:#a9c4c8; --soft:#10343a; --white:#0b252a; --line:rgba(255,255,255,.12); --shadow:0 18px 55px rgba(0,0,0,.35); }
html[data-theme="dark"] body { background:#071c20; color:var(--ink); }
html[data-theme="dark"] .topbar { background:rgba(7,28,32,.94); border-bottom-color:var(--line); }
html[data-theme="dark"] .hero { background:radial-gradient(circle at 15% 20%, rgba(215,180,112,.18), transparent 30%), linear-gradient(135deg,#0a2a30,#071c20); }
html[data-theme="dark"] .page-hero, html[data-theme="dark"] .section.alt { background:linear-gradient(180deg,#0a2a30,#071c20); }
html[data-theme="dark"] .stat, html[data-theme="dark"] .about-card, html[data-theme="dark"] .category-card, html[data-theme="dark"] .slider, html[data-theme="dark"] .toolbar, html[data-theme="dark"] .product-card, html[data-theme="dark"] .contact-band, html[data-theme="dark"] .spec-frame, html[data-theme="dark"] .white-card, html[data-theme="dark"] .side-card, html[data-theme="dark"] .table-wrap, html[data-theme="dark"] .explain-card, html[data-theme="dark"] .btn-outline { background:#0b252a; border-color:var(--line); color:var(--ink); }
html[data-theme="dark"] .pro-table th { background:#10343a; }
html[data-theme="dark"] .pro-table td { background:#0b252a; color:var(--ink); }
html[data-theme="dark"] .search input { background:#102f35; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] .menu a:hover, html[data-theme="dark"] .badge { background:#123f47; }
html[data-theme="dark"] .product-card h3 { color:var(--ink); }
html[data-theme="dark"] .footer { background:#041216; }
.product-card img, .slide img { object-fit:contain; background:#f4fbfa; }
.product-card img { padding:8px; }
.spec-frame > a > img, .spec-frame > img { background:#f4fbfa; object-fit:contain; }
.theme-toggle { position:fixed; bottom:76px; left:18px; z-index:75; width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,.35); background:var(--gold); color:#13363b; display:grid; place-items:center; box-shadow:var(--shadow); cursor:pointer; font-size:1.1rem; font-weight:900; }
.theme-toggle:hover { transform:translateY(-2px); }
html[data-theme="dark"] .theme-toggle { background:#fff; color:#0f616c; border-color:var(--line); }
@media (max-width:620px) { .theme-toggle { bottom:74px; left:14px; width:44px; height:44px; } .backtop { left:14px; } }
/* NAB custom updates end */


/* NAB v4 professional visuals + search + bilingual toggle */
.header-tool-btn {
  min-width:44px; height:44px; padding:0 13px; border-radius:999px; border:1px solid var(--line);
  background:#fff; color:var(--teal); display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-weight:900; cursor:pointer; transition:.18s ease; box-shadow:0 8px 22px rgba(15,97,108,.06);
}
.header-tool-btn:hover { transform:translateY(-2px); background:var(--soft); }
.header-tool-btn .icon { font-size:1.05rem; line-height:1; }
.header-tool-btn .label { font-size:.88rem; }
html[data-theme="dark"] .header-tool-btn { background:#0b252a; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] .header-tool-btn:hover { background:#123f47; }

.search { display:flex; align-items:center; gap:8px; }
.search input { flex:1 1 auto; }
.search-submit {
  flex:0 0 auto; border:0; border-radius:999px; padding:12px 18px; font-weight:900; cursor:pointer;
  background:linear-gradient(135deg,var(--teal),#1b8b98); color:#fff; box-shadow:0 8px 22px rgba(15,97,108,.18);
}
.search-submit:hover { transform:translateY(-1px); }

.explain-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:stretch; }
.explain-card {
  position:relative; border-radius:26px; border:1px solid rgba(15,97,108,.16); overflow:hidden;
  background:linear-gradient(180deg,#fff,#f7fcfc); box-shadow:0 18px 44px rgba(15,97,108,.11);
  cursor:zoom-in; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.explain-card:hover { transform:translateY(-4px); box-shadow:0 24px 64px rgba(15,97,108,.18); border-color:rgba(15,97,108,.32); }
.explain-card::before {
  content:'🔎'; position:absolute; top:14px; inset-inline-start:14px; z-index:3; width:42px; height:42px;
  display:grid; place-items:center; border-radius:50%; color:#fff; background:rgba(15,97,108,.88); box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.explain-card img {
  width:100%; height:360px; object-fit:contain; padding:14px; background:linear-gradient(135deg,#f4fbfa,#fff);
}
.explain-card h3 {
  margin:0; padding:16px 18px; font-size:1.02rem; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; gap:12px; align-items:center;
}
.explain-card h3::after { content:'اضغط للتكبير'; color:var(--gold); font-size:.82rem; white-space:nowrap; }
html[lang="en"] .explain-card h3::after { content:'Click to enlarge'; }
.technical-img { grid-column:1/-1; }
.technical-img img { height:auto; min-height:260px; max-height:620px; object-fit:contain; padding:18px; }
.spec-frame > a > img, .spec-frame > img { max-height:580px; object-fit:contain; padding:10px; border-radius:18px; }

.lightbox-modal {
  position:fixed; inset:0; z-index:999; display:none; align-items:center; justify-content:center; padding:24px;
  background:rgba(3,20,24,.86); backdrop-filter:blur(12px);
}
.lightbox-modal.show { display:flex; }
.lightbox-panel {
  width:min(1180px,100%); max-height:94vh; border-radius:28px; overflow:hidden;
  background:#fff; box-shadow:0 28px 90px rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.22);
  display:grid; grid-template-rows:auto 1fr auto;
}
.lightbox-top { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 18px; border-bottom:1px solid var(--line); }
.lightbox-title { margin:0; color:var(--teal); font-weight:900; line-height:1.5; }
.lightbox-close, .lightbox-arrow {
  border:0; border-radius:50%; background:var(--teal); color:#fff; width:44px; height:44px; cursor:pointer; font-size:1.35rem;
  display:grid; place-items:center; box-shadow:0 10px 26px rgba(15,97,108,.25);
}
.lightbox-body { position:relative; display:grid; place-items:center; min-height:300px; background:linear-gradient(135deg,#f7fcfc,#fff); padding:18px; }
.lightbox-body img { max-width:100%; max-height:74vh; object-fit:contain; border-radius:16px; background:#fff; }
.lightbox-arrow { position:absolute; top:50%; transform:translateY(-50%); opacity:.95; }
.lightbox-arrow.prev { inset-inline-start:18px; }
.lightbox-arrow.next { inset-inline-end:18px; }
.lightbox-caption { padding:12px 18px; color:var(--muted); border-top:1px solid var(--line); line-height:1.7; }
html[data-theme="dark"] .lightbox-panel { background:#0b252a; border-color:var(--line); }
html[data-theme="dark"] .lightbox-top, html[data-theme="dark"] .lightbox-caption { border-color:var(--line); }
html[data-theme="dark"] .lightbox-body { background:linear-gradient(135deg,#071c20,#0b252a); }

.site-search-modal {
  position:fixed; inset:0; z-index:998; display:none; padding:20px; background:rgba(3,20,24,.76); backdrop-filter:blur(10px);
  align-items:flex-start; justify-content:center; overflow:auto;
}
.site-search-modal.show { display:flex; }
.site-search-panel {
  margin-top:70px; width:min(920px,100%); background:#fff; border:1px solid var(--line); border-radius:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.28); overflow:hidden;
}
.site-search-head { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:18px 20px; border-bottom:1px solid var(--line); }
.site-search-head h3 { margin:0; }
.site-search-close { border:0; background:var(--teal); color:#fff; border-radius:50%; width:42px; height:42px; cursor:pointer; font-size:1.2rem; }
.site-search-form { display:flex; gap:10px; padding:18px 20px; border-bottom:1px solid var(--line); }
.site-search-form input { flex:1; border:1px solid var(--line); border-radius:999px; padding:14px 18px; outline:0; font-size:1rem; background:#f7fbfb; }
.site-search-form input:focus { background:#fff; border-color:var(--teal); }
.site-search-form button { border:0; border-radius:999px; padding:12px 20px; background:var(--teal); color:#fff; font-weight:900; cursor:pointer; }
.site-search-results { padding:8px 20px 20px; display:grid; gap:10px; max-height:55vh; overflow:auto; }
.site-search-item { display:grid; grid-template-columns:88px 1fr; gap:14px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:18px; background:#fff; transition:.18s ease; }
.site-search-item:hover { transform:translateY(-2px); box-shadow:0 14px 34px rgba(15,97,108,.12); }
.site-search-item img { width:88px; height:64px; object-fit:contain; background:#f4fbfa; border-radius:12px; }
.site-search-item h4 { margin:0 0 4px; color:var(--ink); direction:ltr; text-align:left; }
.site-search-item p { margin:0; color:var(--muted); font-size:.92rem; }
.site-search-empty { color:var(--muted); text-align:center; padding:30px 10px; }
html[data-theme="dark"] .site-search-panel, html[data-theme="dark"] .site-search-item { background:#0b252a; border-color:var(--line); }
html[data-theme="dark"] .site-search-head, html[data-theme="dark"] .site-search-form { border-color:var(--line); }
html[data-theme="dark"] .site-search-form input { background:#102f35; color:var(--ink); border-color:var(--line); }
html[lang="en"] body { direction:ltr; }
html[lang="en"] .slide { direction:ltr; }
html[lang="en"] .ltr-text { text-align:left; }
html[lang="en"] .pro-table th { text-align:left; }
html[lang="en"] .category-card p { text-align:left; }

@media (max-width:980px) {
  .header-tool-btn .label { display:none; }
  .header-tool-btn { min-width:42px; width:42px; padding:0; }
}
@media (max-width:620px) {
  .explain-card img { height:285px; padding:10px; }
  .technical-img img { min-height:210px; max-height:480px; }
  .lightbox-modal { padding:10px; }
  .lightbox-panel { border-radius:20px; }
  .lightbox-body { padding:10px; }
  .lightbox-arrow { width:38px; height:38px; }
  .lightbox-arrow.prev { inset-inline-start:8px; }
  .lightbox-arrow.next { inset-inline-end:8px; }
  .site-search-panel { margin-top:38px; border-radius:22px; }
  .site-search-form { flex-direction:column; }
  .site-search-item { grid-template-columns:72px 1fr; }
  .site-search-item img { width:72px; height:56px; }
}


/* NAB v5 intro highlight */
.intro-highlight {
  margin: 14px 0 16px;
  color: var(--teal);
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.95;
}
.intro-highlight strong {
  font-weight: 1000;
  background: linear-gradient(90deg, rgba(15,97,108,.10), rgba(215,180,112,.18));
  border: 1px solid rgba(215,180,112,.35);
  border-radius: 18px;
  padding: 10px 16px;
  display: inline-block;
  box-shadow: 0 12px 34px rgba(15,97,108,.08);
}
html[data-theme="dark"] .intro-highlight { color: #d7b470; }
html[data-theme="dark"] .intro-highlight strong {
  background: linear-gradient(90deg, rgba(215,180,112,.12), rgba(15,97,108,.32));
  border-color: rgba(215,180,112,.28);
}
@media (max-width:620px) { .intro-highlight strong { display:block; padding: 10px 12px; } }

/* NAB v6 updates: clearer visuals, universal image viewer, header tools, category buttons */
.hero-actions { margin-top: 18px; }
.header-tool-btn[data-lang-toggle] {
  background: linear-gradient(135deg, var(--teal), #178795);
  color: #fff;
  border-color: rgba(15,97,108,.28);
}
.header-tool-btn[data-site-search-open] {
  background: linear-gradient(135deg, var(--gold), #f0d28d);
  color: #17383d;
  border-color: rgba(215,180,112,.45);
}
.header-tool-btn[data-lang-toggle]:hover,
.header-tool-btn[data-site-search-open]:hover { filter: brightness(1.03); box-shadow: 0 12px 30px rgba(15,97,108,.18); }
html[data-theme="dark"] .header-tool-btn[data-lang-toggle] { background: linear-gradient(135deg,#16828e,#0f616c); color:#fff; }
html[data-theme="dark"] .header-tool-btn[data-site-search-open] { background: linear-gradient(135deg,#d7b470,#f0d28d); color:#09252a; }

.category-card .link-more {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
  padding:12px 20px;
  min-height:46px;
  border-radius:999px;
  border:1px solid rgba(215,180,112,.45);
  background: linear-gradient(135deg, var(--teal), #168897);
  color:#fff !important;
  font-weight:1000;
  box-shadow:0 14px 34px rgba(15,97,108,.18);
}
.category-card .link-more::after { content:'←'; font-weight:1000; }
html[dir="ltr"] .category-card .link-more::after { content:'→'; }
.category-card .link-more:hover { transform:translateY(-2px); background:linear-gradient(135deg,#0b515b,var(--teal)); box-shadow:0 18px 44px rgba(15,97,108,.25); }

.explain-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(330px, 1fr));
  gap:24px;
  align-items:stretch;
}
.explain-card {
  border-radius:30px;
  border:1px solid rgba(15,97,108,.18);
  background:linear-gradient(180deg,#ffffff 0%,#f5fbfb 100%);
  box-shadow:0 22px 60px rgba(15,97,108,.12);
  overflow:hidden;
  isolation:isolate;
}
.explain-card img {
  width:100%;
  height:430px;
  object-fit:contain;
  padding:18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(215,180,112,.12), transparent 32%),
    linear-gradient(135deg,#f8fcfc,#ffffff);
}
.explain-card h3 {
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  font-weight:1000;
}
.technical-img { grid-column:1/-1; }
.technical-img img {
  min-height:320px;
  max-height:unset;
  height:auto;
  padding:20px;
}
.js-zoomable-image { cursor:zoom-in; }
.js-zoomable-image:focus { outline:3px solid rgba(215,180,112,.75); outline-offset:4px; border-radius:16px; }

.lightbox-modal {
  background:rgba(2,16,19,.88);
  backdrop-filter: blur(16px);
}
.lightbox-panel {
  width:min(1320px, 98vw);
  max-height:96vh;
  border-radius:30px;
  background:#fff;
  display:grid;
  grid-template-rows:auto minmax(280px, 1fr) auto;
}
.lightbox-top {
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  background:linear-gradient(90deg, rgba(15,97,108,.08), rgba(215,180,112,.12));
}
.lightbox-title { font-size:clamp(1rem, 1.7vw, 1.35rem); color:var(--teal); }
.lightbox-subtitle { margin:4px 0 0; color:var(--muted); font-size:.92rem; line-height:1.6; }
.lightbox-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-inline-start:auto; }
.zoom-btn {
  border:1px solid rgba(15,97,108,.22);
  border-radius:999px;
  background:#fff;
  color:var(--teal);
  font-weight:1000;
  padding:9px 12px;
  cursor:pointer;
  min-width:64px;
  transition:.18s ease;
}
.zoom-btn:hover,
.zoom-btn.active {
  background:linear-gradient(135deg,var(--gold),#f2d692);
  color:#12363b;
  box-shadow:0 10px 26px rgba(215,180,112,.22);
}
.lightbox-close { background:var(--teal); color:#fff; flex:0 0 auto; }
.lightbox-body {
  overflow:hidden;
  padding:22px;
  min-height:420px;
  background:
    radial-gradient(circle at 10% 10%, rgba(215,180,112,.15), transparent 34%),
    linear-gradient(135deg,#f6fbfb,#ffffff);
}
.lightbox-body.zoomed {
  overflow:auto;
  place-items:start center;
  cursor:grab;
}
.lightbox-body img {
  transition:width .22s ease, max-width .22s ease, max-height .22s ease, transform .22s ease;
  border-radius:18px;
  background:#fff;
  box-shadow:0 16px 48px rgba(0,0,0,.13);
}
.lightbox-body.zoomed img { margin:40px auto; }
.lightbox-caption { font-weight:700; background:#fff; }
html[data-theme="dark"] .lightbox-panel,
html[data-theme="dark"] .lightbox-caption { background:#0b252a; }
html[data-theme="dark"] .lightbox-top { background:linear-gradient(90deg, rgba(15,97,108,.28), rgba(215,180,112,.12)); }
html[data-theme="dark"] .lightbox-body { background:linear-gradient(135deg,#071c20,#0b252a); }
html[data-theme="dark"] .zoom-btn { background:#102f35; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] .zoom-btn.active,
html[data-theme="dark"] .zoom-btn:hover { background:linear-gradient(135deg,#d7b470,#f2d692); color:#09252a; }

@media (max-width:760px) {
  .explain-grid { grid-template-columns:1fr; gap:18px; }
  .explain-card img { height:330px; padding:12px; }
  .technical-img img { min-height:230px; }
  .lightbox-modal { padding:8px; }
  .lightbox-panel { width:100%; max-height:97vh; border-radius:22px; }
  .lightbox-top { padding:12px; }
  .lightbox-tools { width:100%; margin-inline-start:0; justify-content:center; }
  .zoom-btn { min-width:58px; padding:8px 9px; font-size:.82rem; }
  .lightbox-body { min-height:300px; padding:12px; }
  .lightbox-body img { max-height:66vh; }
  .category-card .link-more { width:100%; }
}


/* NAB v7 fixes: working header search/translation, clearer spec visuals, stronger section buttons */
.hero .nav-actions { margin-top: 18px; }
.header-tool-btn {
  position: relative;
  z-index: 3;
  min-width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15,97,108,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.header-tool-btn .icon { font-size: 1.08rem; line-height: 1; }
.header-tool-btn .label { font-size: .9rem; }
.header-tool-btn[data-lang-toggle] { background: linear-gradient(135deg, var(--teal), #168897); color:#fff; }
.header-tool-btn[data-site-search-open] { background: linear-gradient(135deg, var(--gold), #f3d991); color:#14373d; }
.header-tool-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15,97,108,.18); filter: brightness(1.03); }
.category-card .link-more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(215,180,112,.55) !important;
  background: linear-gradient(135deg, var(--teal), #168a97) !important;
  color: #fff !important;
  font-weight: 1000;
  text-decoration: none !important;
  box-shadow: 0 16px 38px rgba(15,97,108,.22);
}
.category-card .link-more::after { content: '←'; font-weight: 1000; }
html[dir="ltr"] .category-card .link-more::after { content: '→'; }
.category-card .link-more:hover { transform: translateY(-2px); background: linear-gradient(135deg, #0b515b, var(--teal)) !important; box-shadow: 0 22px 52px rgba(15,97,108,.30); }

.explain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
  align-items: stretch;
}
.explain-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px !important;
  border: 1px solid rgba(15,97,108,.18) !important;
  background: linear-gradient(180deg,#fff 0%, #f5fbfb 100%) !important;
  box-shadow: 0 24px 70px rgba(15,97,108,.13) !important;
  cursor: zoom-in;
  isolation: isolate;
}
.explain-card::before {
  content: '🔍';
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15,97,108,.95), rgba(22,137,151,.92));
  color:#fff;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.explain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(215,180,112,.10), transparent 34%, rgba(15,97,108,.05));
  opacity: .85;
}
.explain-card:hover { transform: translateY(-5px); box-shadow: 0 30px 82px rgba(15,97,108,.20) !important; }
.explain-card img {
  display:block;
  width:100% !important;
  height: clamp(310px, 34vw, 520px) !important;
  object-fit: contain !important;
  padding: 22px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(215,180,112,.16), transparent 30%),
    linear-gradient(135deg, #f8fcfc 0%, #ffffff 52%, #eef8f8 100%) !important;
}
.explain-card h3 {
  position: relative;
  z-index: 4;
  margin:0;
  padding: 17px 20px !important;
  border-top: 1px solid rgba(15,97,108,.12) !important;
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(10px);
  font-weight: 1000;
  line-height: 1.6;
}
.explain-card h3::after { color: var(--gold) !important; font-weight: 1000; }
.technical-img { grid-column: 1 / -1; }
.technical-img img {
  height: auto !important;
  min-height: 260px;
  max-height: none !important;
  padding: 24px !important;
}
.js-zoomable-image { cursor: zoom-in; }
.js-zoomable-image:focus { outline: 3px solid rgba(215,180,112,.8); outline-offset: 5px; border-radius: 18px; }

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,16,19,.90) !important;
  backdrop-filter: blur(18px);
}
.lightbox-modal.show { display: flex; }
.lightbox-panel {
  width: min(1480px, 98vw) !important;
  max-height: 96vh !important;
  border-radius: 34px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow: 0 34px 120px rgba(0,0,0,.42) !important;
  display: grid;
  grid-template-rows: auto minmax(310px, 1fr) auto;
}
.lightbox-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding: 15px 18px !important;
  background: linear-gradient(90deg, rgba(15,97,108,.09), rgba(215,180,112,.15));
}
.lightbox-title { margin:0; color:var(--teal); font-weight:1000; font-size:clamp(1rem,1.7vw,1.36rem); }
.lightbox-subtitle { margin:5px 0 0; color:var(--muted); font-weight:700; line-height:1.6; }
.lightbox-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-inline-start:auto; }
.zoom-btn {
  border: 1px solid rgba(15,97,108,.22);
  border-radius: 999px;
  background:#fff;
  color:var(--teal);
  font-weight:1000;
  padding:9px 12px;
  min-width:64px;
  cursor:pointer;
  transition:.18s ease;
}
.zoom-btn:hover,
.zoom-btn.active { background:linear-gradient(135deg,var(--gold),#f2d692); color:#12363b; box-shadow:0 12px 28px rgba(215,180,112,.24); }
.lightbox-close,
.lightbox-arrow { border:0; border-radius:50%; background:var(--teal); color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow:0 12px 28px rgba(15,97,108,.28); }
.lightbox-close { width:44px; height:44px; font-size:1.35rem; flex:0 0 auto; }
.lightbox-body {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(215,180,112,.16), transparent 32%),
    linear-gradient(135deg,#f6fbfb,#fff) !important;
}
.lightbox-body.zoomed { overflow:auto; place-items:start center; cursor:grab; }
.lightbox-body.zoomed.dragging { cursor:grabbing; }
.lightbox-body img {
  max-width:100%;
  max-height:76vh;
  object-fit:contain;
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 52px rgba(0,0,0,.14);
  transition: width .24s ease, max-width .24s ease, max-height .24s ease;
}
.lightbox-body.zoomed img { margin:46px auto; }
.lightbox-arrow { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; font-size:1.7rem; z-index:4; opacity:.96; }
.lightbox-arrow.prev { inset-inline-start:18px; }
.lightbox-arrow.next { inset-inline-end:18px; }
.lightbox-caption { padding:13px 19px; color:var(--muted); border-top:1px solid var(--line); line-height:1.7; font-weight:800; background:#fff; }
.site-search-modal { z-index: 9998; }
.site-search-modal.show { display:flex !important; }
.site-search-panel { width:min(960px, 100%) !important; }
.site-search-item span { color: var(--teal); font-weight: 1000; font-size: .9rem; }
html[data-theme="dark"] .lightbox-panel,
html[data-theme="dark"] .lightbox-caption,
html[data-theme="dark"] .explain-card,
html[data-theme="dark"] .explain-card h3 { background:#0b252a !important; }
html[data-theme="dark"] .lightbox-top { background:linear-gradient(90deg, rgba(15,97,108,.30), rgba(215,180,112,.13)); }
html[data-theme="dark"] .lightbox-body { background:linear-gradient(135deg,#071c20,#0b252a) !important; }
html[data-theme="dark"] .zoom-btn { background:#102f35; color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] .zoom-btn:hover,
html[data-theme="dark"] .zoom-btn.active { background:linear-gradient(135deg,#d7b470,#f2d692); color:#09252a; }
@media (max-width: 980px) { .header-tool-btn .label { display:inline; } }
@media (max-width: 760px) {
  .explain-grid { grid-template-columns:1fr; gap:18px; }
  .explain-card img { height: clamp(270px, 70vw, 390px) !important; padding: 14px !important; }
  .technical-img img { min-height: 220px; padding:14px !important; }
  .category-card .link-more { width:100%; }
  .lightbox-modal { padding:8px; }
  .lightbox-panel { width:100% !important; max-height:97vh !important; border-radius:22px !important; }
  .lightbox-top { padding:12px !important; }
  .lightbox-tools { width:100%; justify-content:center; margin-inline-start:0; }
  .zoom-btn { min-width:58px; padding:8px 9px; font-size:.82rem; }
  .lightbox-body { min-height:300px; padding:12px; }
  .lightbox-body img { max-height:66vh; }
  .lightbox-arrow { width:40px; height:40px; }
  .lightbox-arrow.prev { inset-inline-start:7px; }
  .lightbox-arrow.next { inset-inline-end:7px; }
}
