/*
 * Site header menus, mobile header and footer (resource/views/layouts/site-nav/).
 * Every class starts with "sn-" so nothing here touches the rest of the site.
 */

.sn-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
.sn-nav a, .sn-mbar a, .sn-sheet a, .sn-drawer a, .sn-foot a { text-decoration: none; }
.sn-nav button, .sn-mbar button, .sn-sheet button, .sn-drawer button, .sn-foot .sn-fa-h {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit;
}
.sn-nav :focus-visible, .sn-mbar :focus-visible, .sn-sheet :focus-visible, .sn-drawer :focus-visible, .sn-foot :focus-visible {
  outline: 2px solid #1F8F75; outline-offset: 2px; border-radius: 6px;
}
.sn-cico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #EAF7F2; color: #1F8F75; display: grid; place-items: center; font-size: 22px; }
.sn-cico::before { color: inherit; }

/* Service tints */
.sn-ic { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; }
.sn-ic .sn-i { width: 22px; height: 22px; }
.k-teal .sn-ic { background: #E3F6F0; color: #1F8F75; }
.k-blue .sn-ic { background: #E6F1FC; color: #1F78BD; }
.k-violet .sn-ic { background: #EFEAFB; color: #6D4BC4; }
.k-amber .sn-ic { background: #FDF1E1; color: #B4610A; }
.sn-badge { align-self: flex-start; justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: rgba(61, 217, 172, .16); color: #7FF0CC;
  border: 1px solid rgba(61, 217, 172, .35); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.sn-badge .sn-i { width: 14px; height: 14px; }
.sn-strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: #F6F8FA; font-size: 13.5px; color: #334155; }
.sn-strip .sn-i { width: 16px; height: 16px; color: #1F8F75; }
.sn-strip span { margin-right: auto; color: #1F8F75; font-weight: 700; }
.sn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-chips a { border: 1px solid #D9E2E7; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #1E293B; background: #fff; line-height: 1.6; }
.sn-chips a:hover { border-color: #2ABB9C; color: #1F8F75; }
/* the tag chips keep the old class for click tracking; this undoes its look */
.sn-chips a.dv-search-result-tag { margin: 0; background: #fff; color: #1E293B; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid #D9E2E7; }

/* ---------------- Desktop menu ---------------- */
.sn-nav { position: relative; padding-top: 4px; }
.sn-nav-list { display: flex; justify-content: center; align-items: center; gap: 42px; list-style: none; margin: 0; padding: 18px 0 6px; }
.sn-nav-btn, .sn-nav-link { display: flex; align-items: center; gap: 6px; color: #334155; font-size: 16px; font-weight: 500; transition: color .15s; }
.sn-nav-btn:hover, .sn-nav-link:hover, .sn-nav-btn[aria-expanded="true"] { color: #1F8F75; }
.sn-nav .sn-chev { width: 14px; height: 14px; stroke-width: 2.2; transition: transform .2s; }
.sn-nav-btn[aria-expanded="true"] .sn-chev { transform: rotate(180deg); }
.sn-ai-ico { display: grid; place-items: center; color: #1F8F75; }
.sn-ai-ico .sn-i { width: 18px; height: 18px; }
.sn-nav-link.sn-ext { color: #64748B; font-size: 15px; }

.sn-panel { position: absolute; top: calc(100% + 8px); left: 50%; width: 1000px; max-width: calc(100% - 32px); background: #fff; border: 1px solid #E8EDEF;
  border-radius: 16px; box-shadow: 0 24px 48px rgba(15, 23, 42, .16); z-index: 1030; overflow: hidden; text-align: right;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.sn-panel.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .16s, transform .16s; }
.sn-h { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: #64748B; font-weight: 700; }

.sn-p-tests { display: grid; grid-template-columns: 270px 1fr; }
.sn-pop { background: #F7F9FA; padding: 20px 16px; border-left: 1px solid #EEF1F3; display: grid; gap: 2px; align-content: start; }
.sn-pop a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14.5px; color: #1E293B; }
.sn-pop a:hover { background: #fff; color: #17614F; }
.sn-rank { flex: none; width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid #E2E8F0; display: grid; place-items: center; font-size: 12px; color: #64748B; font-weight: 700; }
.sn-pop a:nth-of-type(-n+3) .sn-rank { background: #E3F6F0; border-color: #BFE8DA; color: #1F8F75; }
.sn-cats { padding: 20px 22px; }
.sn-cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.sn-cgrid a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 14px; color: #334155; }
.sn-cgrid a:hover { background: #F3FAF7; color: #17614F; }
.sn-pfoot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 12px 22px; border-top: 1px solid #EEF1F3; background: #FBFCFC; font-size: 13px; color: #64748B; }
.sn-pfoot-ai { display: inline-flex; align-items: center; gap: 6px; color: #1F8F75; font-weight: 700; }
.sn-pfoot-ai .sn-i { width: 16px; height: 16px; }
.sn-pfoot-all { margin-right: auto; background: #22B573; color: #fff !important; border-radius: 9px; padding: 7px 16px; font-weight: 700; font-size: 14px; }

.sn-p-ai { display: grid; grid-template-columns: 300px 1fr; }
.sn-hero { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; color: #fff !important; background-color: #0F3D3E;
  background-image: radial-gradient(circle at 12% 112%, rgba(61, 217, 172, .5), transparent 58%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px; }
.sn-hero b { font-size: 20px; line-height: 1.5; }
.sn-hero-line { font-size: 13.5px; color: #CFE6E1; line-height: 1.9; }
.sn-hero-cta { margin-top: auto; align-self: flex-start; background: #3DD9AC; color: #0B2A26; font-weight: 700; border-radius: 9px; padding: 8px 14px; font-size: 14px; }
.sn-hero:hover .sn-hero-cta { background: #64E5BF; }
.sn-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; align-content: start; }
.sn-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #EEF1F3; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.sn-card:hover { border-color: #BFE8DA; box-shadow: 0 6px 16px rgba(15, 23, 42, .06); }
.sn-tx { display: grid; gap: 2px; }
.sn-tx b { font-size: 15px; color: #130F26; }
.sn-tx small { font-size: 12.5px; color: #64748B; line-height: 1.7; }
.sn-tags { display: flex; gap: 4px; margin-top: 4px; }
.sn-tags i { font-style: normal; font-size: 11px; font-weight: 700; direction: ltr; background: #F1EDFC; color: #5B3FB0; border-radius: 5px; padding: 0 6px; }
.sn-p-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }

/* ---------------- Mobile header ---------------- */
.sn-mwarn { position: relative; margin: 8px 8px 0; }
.sn-mwarn-box { text-align: center; padding: 5px 36px 5px 8px; font-size: 18px; border-radius: 10px; }
.sn-mwarn-x { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center;
  font: inherit; background: none; border: 0; padding: 0; color: #94A3B8; cursor: pointer; }
.sn-mwarn-x .sn-i { width: 16px; height: 16px; }

/* The page's body is a scroll container (overflow-x: hidden), so position: sticky cannot work here;
   site-nav.js pins the bar with position: fixed once it reaches the top, and the wrapper keeps its space. */
.sn-mbar-wrap { height: 56px; margin-top: 8px; }
.sn-mbar { position: relative; z-index: 1020; background: #fff; border-bottom: 1px solid #E5E7EB; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px; direction: rtl; transition: transform .22s, box-shadow .2s; }
.sn-mbar.is-fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.sn-mbar.is-hidden { transform: translateY(-100%); box-shadow: none; }
.sn-mgrp { display: flex; position: relative; }
.sn-ib { width: 44px; height: 44px; display: grid; place-items: center; color: #1E293B; border-radius: 10px; position: relative; }
.sn-ib .sn-i { width: 23px; height: 23px; }
.sn-dot { position: absolute; top: 9px; left: 9px; width: 8px; height: 8px; border-radius: 50%; background: #22B573; border: 2px solid #fff; }
.sn-mlogo img { height: 38px; width: auto; display: block; }
.sn-amenu { position: absolute; top: 48px; left: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .18); padding: 6px;
  display: none; min-width: 190px; z-index: 5; text-align: right; }
.sn-amenu.is-open { display: grid; }
.sn-amenu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #1E293B; }
.sn-amenu a:hover { background: #F6F8FA; }

/* Search sheet */
.sn-sheet { position: fixed; inset: 0; background: #fff; z-index: 1060; transform: translateY(-102%); visibility: hidden;
  transition: transform .25s, visibility 0s .25s; display: flex; flex-direction: column; direction: rtl; text-align: right; }
.sn-sheet.is-open { transform: none; visibility: visible; transition: transform .25s; }
.sn-sheet-head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid #E5E7EB; margin: 0; }
.sn-sheet-in { flex: 1; display: flex; align-items: center; gap: 8px; background: #F1F3F5; border: 1px solid #2ABB9C; border-radius: 10px; padding: 0 12px; margin: 0; }
.sn-sheet-in .sn-i { width: 19px; height: 19px; color: #334155; }
.sn-sheet-in input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font: inherit; font-size: 16px; color: #1E293B; outline: 0 !important; box-shadow: none; }
.sn-sheet-in:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(42, 187, 156, .2); }
.sn-sheet-body { padding: 16px; display: grid; gap: 18px; overflow-y: auto; align-content: start; }
.sn-sheet .sn-h { margin-bottom: 8px; }
.sn-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sn-sgrid a { display: flex; align-items: center; gap: 8px; border: 1px solid #EEF0F3; border-radius: 9px; padding: 8px; font-size: 12.5px; color: #334155; }
.sn-sgrid .sn-cico { width: 30px; height: 30px; font-size: 19px; }

/* Side menu */
.sn-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(15, 23, 42, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.sn-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.sn-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: 86%; max-width: 380px; background: #fff; z-index: 1050; display: flex; flex-direction: column;
  transform: translateX(102%); visibility: hidden; transition: transform .28s, visibility 0s .28s; box-shadow: -8px 0 30px rgba(15, 23, 42, .15); direction: rtl; text-align: right; }
.sn-drawer.is-open { transform: none; visibility: visible; transition: transform .28s; }
.sn-drawer:focus { outline: 0; }
.sn-drawer-hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 6px; border-bottom: 1px solid #EEF0F3; }
.sn-drawer-hd img { height: 34px; width: auto; margin-right: 8px; }
.sn-drawer-bd { overflow-y: auto; padding: 14px 16px 24px; display: grid; gap: 14px; align-content: start; flex: 1; overscroll-behavior: contain; }
.sn-accard { display: flex; align-items: center; justify-content: space-between; background: #EAF5FD; color: #135D93 !important; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.sn-accard.is-member { background: #E8F7F1; color: #17614F !important; }
.sn-accard.is-admin { background: #FFF2E5; color: #C2620C !important; }
.sn-accard small { display: block; font-weight: 400; font-size: 12px; color: #4B6475; }
.sn-dsearch { display: flex !important; align-items: center; gap: 8px; width: 100%; background: #F1F3F5 !important; border-radius: 10px; padding: 10px 12px !important; color: #7A8594 !important; font-size: 13px; }
.sn-dsearch .sn-i { width: 18px; height: 18px; color: #334155; }
.sn-lab { font-size: 11.5px; font-weight: 700; color: #64748B; margin-bottom: -6px; }
.sn-mi { display: flex !important; align-items: center; gap: 12px; min-height: 48px; width: 100%; border-bottom: 1px solid #F1F3F5 !important; font-size: 15px; color: #1E293B !important; }
.sn-mi > .sn-i { width: 21px; height: 21px; color: #1F8F75; }
.sn-mi .sn-chev { margin-right: auto; width: 16px; height: 16px; color: #94A3B8; transition: transform .2s; }
.sn-acc.is-open > .sn-mi .sn-chev { transform: rotate(180deg); }
.sn-sub { display: none; padding: 6px 0 10px; }
.sn-acc.is-open > .sn-sub { display: grid; }
.sn-sub-cats { grid-template-columns: 1fr 1fr; gap: 4px; }
.sn-sub-cats a { display: flex; align-items: center; gap: 7px; padding: 7px 6px; font-size: 12.5px; border-radius: 8px; background: #F8FAFB; color: #334155; }
.sn-sub-cats .sn-cico { width: 28px; height: 28px; font-size: 18px; border-radius: 8px; }
.sn-ai-chip { flex: none; width: 27px; height: 27px; margin: 0 -3px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #0F3D3E, #1F8F75); }
.sn-ai-chip .sn-i { width: 17px; height: 17px; color: #7FF0CC; }
.sn-ai-count { font-size: 11px; font-weight: 700; color: #1F8F75; background: #E3F6F0; border-radius: 999px; padding: 0 8px; }
.sn-sub-ai { gap: 8px; padding: 4px 0 12px; }
.sn-mhero { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; color: #fff !important; background-color: #0F3D3E;
  background-image: radial-gradient(circle at 10% 120%, rgba(61, 217, 172, .5), transparent 60%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 16px 16px, 16px 16px; }
.sn-mhero-t { display: grid; gap: 3px; flex: 1; }
.sn-mhero b { font-size: 15px; }
.sn-mhero small { font-size: 12px; color: #CFE6E1; }
.sn-mgo { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #3DD9AC; color: #0B2A26; display: grid; place-items: center; font-weight: 700; }
.sn-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sn-tile { display: grid; gap: 3px; padding: 11px; border: 1px solid #EEF1F3; border-radius: 12px; align-content: start; color: #334155; }
.sn-tile .sn-ic { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 3px; }
.sn-tile .sn-ic .sn-i { width: 19px; height: 19px; }
.sn-tile b { font-size: 13.5px; color: #130F26; }
.sn-tile small { font-size: 11.5px; color: #64748B; line-height: 1.6; }
.sn-sub-rich { gap: 2px; padding: 4px 0 10px; }
.sn-sub-rich a { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sn-sub-rich .sn-ic { width: 34px; height: 34px; border-radius: 9px; }
.sn-sub-rich .sn-ic .sn-i { width: 18px; height: 18px; }
.sn-mt { display: grid; }
.sn-mt b { font-size: 14px; font-weight: 500; color: #1E293B; }
.sn-mt small { font-size: 11.5px; color: #64748B; }
.sn-small { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; padding-top: 4px; }
.sn-small a { color: #64748B; }
.sn-help { font-size: 12px; color: #64748B; border-top: 1px solid #F1F3F5; padding-top: 10px; }
.sn-help a { color: #334155; font-weight: 700; unicode-bidi: isolate; }

/* While the side menu or search is open: no page scroll, and the notification stays out of the way */
html.sn-locked, html.sn-locked body { overflow: hidden; }
html.sn-locked .notification-toast, html.sn-panel-open .notification-toast { visibility: hidden; }

/* ---------------- Footer ---------------- */
.sn-foot { background: #2F3D4C; color: #DDE5EA; margin-top: 40px; }
.sn-newsbox { padding-top: 56px; }
.sn-fcols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 28px; }
.sn-brand { display: grid; gap: 10px; align-content: start; font-size: 14px; color: #BFCAD3; }
.sn-brand p { margin: 0; line-height: 1.9; }
.sn-brand-lg { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.sn-brand-lg img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.sn-contact { display: grid; gap: 4px; }
.sn-contact a { color: #fff !important; font-weight: 700; unicode-bidi: isolate; }
.sn-soc { display: flex; gap: 8px; margin-top: 4px; }
.sn-soc a { width: 40px; height: 40px; border-radius: 10px; background: #3A4858; display: grid; place-items: center; color: #DDE5EA !important; transition: background .15s; }
.sn-soc a:hover { background: #47586B; }
.sn-fa-t { margin: 0 0 10px !important; font-size: 16px !important; color: #fff; font-weight: 700; }
.sn-fa-h { display: none !important; }
.sn-fa-b { list-style: none; margin: 0; padding: 0; display: grid; }
.sn-fa-b a { display: block; padding: 5px 0; font-size: 14px; color: #BFCAD3 !important; }
.sn-fa-b a:hover { color: #fff !important; }
.sn-ftags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.sn-ftags .dv-footer-exam-link { margin: 0 !important; }
.sn-fbot { background: #283442; }
.sn-fbot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; color: #9FB0BD; }
.sn-fbot-in p { margin: 0; }
.sn-fbot-in a { color: #CFE0EA !important; }
.sn-badges { display: flex; gap: 8px; align-items: center; }
.sn-badges .namad img { max-height: 80px; }

@media (max-width: 991.98px) {
  .sn-newsbox { padding-top: 28px; }
  .sn-fcols { grid-template-columns: 1fr; gap: 0; padding-top: 22px; padding-bottom: 8px; }
  .sn-brand { padding-bottom: 16px; border-bottom: 1px solid #43515F; margin-bottom: 4px; }
  .sn-fa-t { display: none; }
  .sn-fa-h { display: flex !important; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; font-size: 15px; font-weight: 700; color: #fff !important; border-bottom: 1px solid #43515F !important; }
  .sn-fa-h .sn-chev { width: 16px; height: 16px; color: #8C9AA6; transition: transform .2s; }
  .sn-fa.is-open .sn-fa-h .sn-chev { transform: rotate(180deg); }
  .sn-fa .sn-fa-b { display: none; }
  .sn-fa.is-open .sn-fa-b { display: grid; padding: 4px 0 10px; }
  .sn-fa-b a { display: flex; align-items: center; min-height: 44px; padding: 0; border-bottom: 1px dashed #3E4C5B; }
  .sn-ftags { padding-top: 16px; }
  /* Room for sticky bottom bars and the chat button so they never cover the trust badges */
  .sn-fbot-in { flex-direction: column; align-items: flex-start; padding-bottom: 84px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sn-panel, .sn-mbar, .sn-sheet, .sn-drawer, .sn-backdrop, .sn-nav .sn-chev, .sn-mi .sn-chev { transition: none !important; }
}
