/* Sainik Desk — layout: white header with dropdown nav, navy footer.
   Structure follows the owner's FINAL design exactly. */

.container { max-width: var(--colw); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

/* ---------- header ---------- */

.site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(28, 46, 84, .1);
  box-shadow: 0 2px 10px rgba(20, 33, 61, .06);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 68px;
  flex-wrap: nowrap;
  padding: .5rem 1.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hdr-scrolled { box-shadow: 0 4px 16px rgba(20, 33, 61, .1); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand .icon-slot {
  width: 42px;
  height: 42px;
  background-color: var(--navy);
  background-image: linear-gradient(150deg, var(--navy), var(--navy-2));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(20, 33, 61, .22);
  transition: transform .2s ease;
}
.brand .icon-slot.has-icon {
  background-image: var(--icon);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: none;
}
.brand:hover .icon-slot { transform: scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .78rem; }

.hnav { display: flex; flex-wrap: nowrap; align-items: center; gap: .1rem; margin: 0 0 0 auto; padding: 0; }
.hnav > li { list-style: none; position: relative; }
.hnav a, .hnav button.navlink {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .9875rem;
  min-height: 40px;
  padding: .55rem .72rem;
  border-radius: 999px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}
.hnav a:hover, .hnav button.navlink:hover { color: var(--orange); background: var(--orange-tint); }
.hnav a[aria-current="page"] { color: var(--navy); background: var(--navy-tint); box-shadow: inset 0 -2px 0 var(--orange); }
.hnav .caret { font-size: .7em; color: var(--muted); transition: transform .18s ease, color .18s ease; }
.dropdown:hover .caret, .dropdown:focus-within .caret { transform: rotate(180deg); color: var(--orange); }

/* the language switch — a small bordered pill */
.hnav a.lang-sw {
  min-height: 34px;
  margin: 0 .1rem;
  padding: .3rem .68rem;
  font-size: .85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: #fff;
}
.hnav a.lang-sw:hover { color: var(--orange); border-color: var(--orange); background: #fff; }

/* Contact — the filled pill that closes the row */
.hnav a.cta {
  margin-left: .25rem;
  padding: .55rem 1.1rem;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 33, 61, .28);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hnav a.cta:hover {
  background: var(--orange-btn);
  color: #fff;
  box-shadow: 0 5px 16px rgba(229, 106, 0, .4);
  transform: translateY(-1px);
}
.hnav a.cta[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(20, 33, 61, .28); }

/* dropdowns — open on hover and on keyboard focus, with a soft slide */
.dropdown { position: relative; }
.dropdown .menu {
  position: absolute;
  top: calc(100% + 10px); left: 0;
  min-width: 15.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: .45rem;
  margin: 0;
  list-style: none;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* invisible bridge across the gap, so the menu doesn't slam shut mid-way */
.dropdown .menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -12px;
  height: 12px;
}
.dropdown:hover .menu, .dropdown:focus-within .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown .menu a, .dropdown .menu .soon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 9px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.dropdown .menu a:hover, .dropdown .menu a:focus-visible { background: var(--navy-tint); color: var(--navy); border-left-color: var(--orange); }
.dropdown .menu .soon-item { color: var(--muted); cursor: default; }

.search-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  border: 0;
  cursor: pointer;
  padding: 0;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(20, 33, 61, .28);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.search-btn:hover {
  background: var(--orange-btn);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(229, 106, 0, .4);
}
.search-btn[aria-expanded="true"] { background: var(--orange-btn); }
.mobile-menu-btn { display: none; }

/* header search — a floating card under the pill, not a full-width bar */
.hdr-search { border: 0; background: transparent; padding: .6rem 0 0; }
.hdr-search[hidden] { display: none; }
.hdr-search .search {
  max-width: 42rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(28, 46, 84, .12);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 2px 5px rgba(20, 33, 61, .07), 0 16px 40px rgba(20, 33, 61, .15);
  animation: drawer-in .22s ease both;
}
.hdr-search .search button { border-radius: 8px; }
.hdr-search .search-results { border-radius: 14px; box-shadow: var(--shadow-lift); }
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- breadcrumb ---------- */

.breadcrumb { padding: 1rem 0 0; font-size: .9375rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }

/* ---------- main / sections ---------- */

main { padding: 0 0 3rem; }
main.inner { padding-top: 1.5rem; }

section.blk { padding: 2.25rem 0 .5rem; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.sec-head h2, section.blk > .container > h2 { font-size: 1.45rem; color: var(--navy); margin: 0; }

main.inner > h1 { color: var(--navy); position: relative; padding-bottom: .4em; }
main.inner > h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 3rem; height: 4px;
  border-radius: 3px;
  background: var(--orange);
}

.page-meta { color: var(--muted); margin: 1rem 0 1.75rem; }
.page-meta .reviewed {
  display: inline-block;
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 700;
  font-size: .875rem;
  padding: .2rem .75rem;
  border-radius: 999px;
}

/* ---------- footer — navy, four columns ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #C8D2E4;
  margin-top: 3rem;
  padding: 2.75rem 0 0;
}
.site-footer a { color: #E6ECF6; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.f-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: 2rem;
}
/* Logo ka apna chaukor navy (--navy #1C2E54) hai aur footer ka background
   bhi navy (--navy-deep #14213D) — dono ka antar sirf 1.2:1 baithta hai,
   yani chinh ghul jaata hai aur sirf safed "SD" tairta dikhta hai.
   Isliye footer me use halke tile par bithaya jaata hai: mark thoda chhota
   (78%), chaaron taraf halka kinaara. Chinh khud nahi badla — sirf uske
   peeche ki satah badli hai. */
.f-brand .icon-slot.has-icon {
  background-color: #F7F5EF;
  background-size: 78%;
  background-position: center;
  border-radius: 12px;
}
.f-brand .brand-text b { color: var(--orange); }
.f-brand .brand-text small { color: #9FB0CC; }
.f-brand p { font-size: .9375rem; line-height: 1.65; margin: 1rem 0; }
.f-social { display: flex; gap: .6rem; }
.f-social .icon-slot { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.f-title { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 .8rem; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0 0 .1rem; }
.f-col ul a, .f-col ul span { display: inline-block; padding: .3rem 0; font-size: .9375rem; }
.f-col ul .ext::before { content: "• "; color: var(--orange); }
.f-contact li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; font-size: .9375rem; }
.f-contact .icon-slot { width: 22px; height: 22px; border-radius: 6px; border-color: rgba(255,255,255,.3); background-color: transparent; }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  font-size: .875rem;
  color: #9FB0CC;
}
.f-bottom a { color: #C8D2E4; margin-left: 1.25rem; }
.f-bottom a:first-child { margin-left: 0; }

/* ---------- polished footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 123, 32, .1), transparent 25rem),
    linear-gradient(145deg, #101D38 0%, var(--navy-deep) 55%, #0C1830 100%);
  padding-top: 3.25rem;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #FFAE43 42%, transparent 88%);
}
.site-footer a { transition: color .18s ease, transform .18s ease; }
.site-footer a:hover { color: #FF9A3D; }

.f-grid {
  gap: 2.5rem;
  grid-template-columns: minmax(245px, 1.25fr) minmax(145px, .72fr) minmax(185px, .92fr) minmax(235px, 1.15fr);
  padding-bottom: 2.75rem;
}
.f-col { min-width: 0; }
.f-brand p { max-width: 30rem; line-height: 1.72; margin: 1.1rem 0 1.3rem; color: #B8C5DA; }
.f-social { gap: .65rem; }
.f-social .icon-slot {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.08);
  background-size: 58%;
  border: 1px solid rgba(255,255,255,.22);
  background-image: var(--icon);
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.f-social .icon-slot:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}
.f-title {
  position: relative;
  margin: .2rem 0 1.15rem;
  padding-bottom: .65rem;
}
.f-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}
.f-col li { margin-bottom: .2rem; }
.f-col ul a, .f-col ul span { padding: .34rem 0; }
.f-col:not(.f-brand) > ul:not(.f-contact) a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.f-col:not(.f-brand) > ul:not(.f-contact) a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  opacity: .8;
}
.f-col ul .ext::before { content: none; }
.f-contact {
  padding: .8rem 1rem !important;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.f-contact li { gap: .75rem; align-items: center; padding: .38rem 0; }
.f-contact .icon-slot { width: 25px; height: 25px; border: 0; }
.f-contact + p {
  font-size: .8rem !important;
  line-height: 1.55;
  color: #93A6C5 !important;
  margin: .85rem .2rem 0 !important;
}
.f-bottom { padding: 1.2rem 0 1.35rem; }

@media (max-width: 62em) {
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38em) {
  .site-footer { padding-top: 2.5rem; }
  .f-grid { grid-template-columns: 1fr; gap: 2rem; }
  .f-brand p { max-width: none; }
  .f-bottom { align-items: flex-start; }
  .f-bottom > span:last-child { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
  .f-bottom a { margin-left: 0; }
}

/* ---------- mobile navigation and page rhythm ---------- */

@media (max-width: 62em) {
  .container { padding-left: 1rem; padding-right: 1rem; }

  .site-header { padding: 0; }
  .hdr-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: .55rem 1rem .35rem;
    border-radius: 0;
  }
  .hdr-in > .brand { width: max-content; max-width: 100%; }
  .brand .icon-slot { width: 38px; height: 38px; border-radius: 9px; }
  .brand-text b { font-size: 1.12rem; }
  .brand-text small { font-size: .7rem; }

  .hnav {
    width: 100%;
    margin: .45rem 0 0;
    padding: .08rem 0 .16rem;
    display: none;
    flex-wrap: wrap;
    overflow: visible;
    border-top: 1px solid rgba(28, 46, 84, .1);
  }
  .hdr-in.menu-open .hnav { display: flex; }
  .hnav > li { flex: 0 0 auto; }
  .hnav a, .hnav button.navlink { min-height: 38px; padding: .52rem .7rem; font-size: .88rem; white-space: nowrap; }
  .search-btn { width: 38px; height: 38px; }

  .mobile-menu-btn {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
  }
  .mobile-menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .dropdown .menu {
    position: fixed;
    top: 102px;
    left: 1rem;
    right: 1rem;
    width: auto;
    min-width: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .hdr-search { padding: .65rem 0; }
  .search { max-width: none; }
  .search button { padding: .62rem .8rem; }

  section.blk { padding-top: 1.75rem; }
  .sec-head { margin-bottom: .85rem; }
  .sec-head h2, section.blk > .container > h2 { font-size: 1.3rem; }

  .breadcrumb { font-size: .85rem; overflow-wrap: anywhere; }
  main.inner { padding-top: 1.1rem; }
  main.inner > h1 { font-size: 1.85rem; line-height: 1.22; }

  .f-contact a, .f-contact span { overflow-wrap: anywhere; }
  .f-bottom { flex-direction: column; }
}
