/* Office portal ("Choose Your Office"). Builds on ui.css (same tokens as the office apps).
   Layout follows the old page: header, slider, NBR at a Glance, three office drop-downs, NBR building. */

.portal { background: hsl(var(--muted) / .45) !important; }
.portal-wrap { max-width: 1160px; margin: 0 auto; padding: 22px 24px 8px; }

/* Government bar */
.gov-bar { background: hsl(var(--brand-navy)); color: hsl(0 0% 100% / .82); font-size: 12.5px; }
.gov-inner { max-width: 1160px; margin: 0 auto; padding: 7px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gov-bar .sep { opacity: .5; padding: 0 4px; }
.gov-date { opacity: .75; }

/* Header: Customs logo left, NBR mark right */
.portal-header { background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); }
.portal-header-inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.portal-logo { display: block; min-width: 0; }
.portal-logo img { display: block; height: 66px; width: auto; max-width: 100%; }
.nbr-mark { display: flex; align-items: center; gap: 12px; flex: none; }
.nbr-mark img { width: 64px; height: 64px; object-fit: contain; }
.nbr-mark b { display: block; font-size: 17px; font-weight: 700; color: hsl(152 60% 24%); letter-spacing: -0.01em; }
.nbr-mark span { display: block; font-size: 15px; color: hsl(var(--brand-red)); font-family: "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", "Vrinda", var(--font-sans); }

/* Slider */
.portal-slider { position: relative; overflow: hidden; border-radius: 16px; background: hsl(var(--brand-navy)); aspect-ratio: 1240 / 360; box-shadow: 0 22px 46px -28px hsl(var(--brand-navy) / .6), var(--shadow-sm); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: hsl(var(--foreground)); background: hsl(0 0% 100% / .82); box-shadow: var(--shadow); opacity: 0; transition: opacity .2s, background .2s; }
.portal-slider:hover .slide-nav, .slide-nav:focus-visible { opacity: 1; }
.slide-nav:hover { background: #fff; }
.slide-nav .ui-icon { width: 20px; height: 20px; }
.slide-nav.prev { left: 12px; } .slide-nav.next { right: 12px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.slide-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: hsl(0 0% 100% / .55); box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: width .25s, background .25s; }
.slide-dots button.is-active { width: 26px; background: #fff; }

/* NBR at a Glance */
.glance-row { display: flex; justify-content: center; margin: 22px 0 4px; }
.btn-glance { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff !important; text-decoration: none !important; background: linear-gradient(180deg, hsl(1 80% 50%), hsl(var(--brand-red))); box-shadow: 0 10px 24px -12px hsl(var(--brand-red) / .8), inset 0 1px 0 hsl(0 0% 100% / .2); transition: transform .15s, box-shadow .15s; }
.btn-glance:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px hsl(var(--brand-red) / .9); }
.btn-glance .ui-icon { width: 18px; height: 18px; }

/* Choose Your Office: three drop-downs (VAT Office, Custom House, Others Office) */
.office-dds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.office-dd { position: relative; }
.office-dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; user-select: none; }
.office-dd summary::-webkit-details-marker { display: none; }
.office-dd summary:hover { transform: translateY(-1px); border-color: hsl(var(--tone) / .45); box-shadow: 0 14px 30px -20px hsl(var(--tone) / .7); }
.office-dd summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.office-dd[open] summary { border-color: hsl(var(--tone) / .6); box-shadow: 0 14px 30px -20px hsl(var(--tone) / .7); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.office-dd.tone-blue { --tone: var(--brand-blue); }
.office-dd.tone-gold { --tone: 28 85% 44%; }
.office-dd.tone-red  { --tone: var(--brand-red); }
.dd-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(160deg, hsl(var(--tone) / .85), hsl(var(--tone))); box-shadow: 0 8px 18px -10px hsl(var(--tone)); }
.dd-icon .ui-icon { width: 23px; height: 23px; }
.dd-text { flex: 1; min-width: 0; }
.dd-text b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: hsl(var(--foreground)); }
.dd-text small { display: block; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.dd-caret { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: hsl(var(--tone)); background: hsl(var(--tone) / .1); transition: transform .2s; }
.dd-caret .ui-icon { width: 18px; height: 18px; }
.office-dd[open] .dd-caret { transform: rotate(180deg); }
.dd-menu { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 360px; overflow: auto; padding: 6px; background: hsl(var(--card)); border: 1px solid hsl(var(--tone) / .6); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .35); animation: dd-in .14s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; text-decoration: none !important; }
.dd-item.is-live { color: hsl(var(--foreground)) !important; font-weight: 600; }
.dd-item.is-live:hover { background: hsl(var(--tone) / .08); }
.dd-item.is-soon { color: hsl(var(--muted-foreground)); }
.dd-name { flex: 1; min-width: 0; }
.dd-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: hsl(var(--tone)); }
.dd-go .ui-icon { width: 14px; height: 14px; }
.dd-soon { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: hsl(var(--muted)); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: hsl(var(--success)); box-shadow: 0 0 0 3px hsl(var(--success) / .18); }
.dot.off { background: hsl(var(--muted-foreground)); box-shadow: 0 0 0 3px hsl(var(--muted-foreground) / .15); }
.dot.none { background: hsl(var(--border)); box-shadow: none; }

/* Ready to use */
.ready { margin-top: 30px; }
.ready h2 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .05em; }
.ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.ready-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; text-decoration: none !important; color: inherit !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ready-card:hover { transform: translateY(-1px); border-color: hsl(var(--brand-blue) / .35); box-shadow: 0 14px 30px -20px hsl(var(--brand-blue) / .6); }
.ready-logo { flex: none; width: 150px; height: 44px; display: flex; align-items: center; }
.ready-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ready-text { flex: 1; min-width: 0; }
.ready-text b { display: block; font-size: 15px; font-weight: 700; }
.ready-text small { display: block; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ready-status { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: hsl(var(--success)); }
.is-offline .ready-status { color: hsl(var(--muted-foreground)); }
.ready-go { flex: none; color: hsl(var(--brand-blue)); }
.ready-go .ui-icon { width: 18px; height: 18px; transition: transform .15s; }
.ready-card:hover .ready-go .ui-icon { transform: translateX(3px); }
.ready-hint { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12.5px; color: hsl(28 80% 30%); }
.ready-hint .ui-icon { width: 15px; height: 15px; }

/* NBR building */
.nbr-building { position: relative; margin: 34px 0 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.nbr-building img { display: block; width: 100%; aspect-ratio: 1240 / 380; object-fit: cover; object-position: center 40%; }
.nbr-building figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; color: #fff; background: linear-gradient(transparent, hsl(var(--brand-navy) / .85)); }
.nbr-building b { display: block; font-size: 20px; font-weight: 700; }
.nbr-building figcaption span { display: block; font-size: 15px; opacity: .85; font-family: "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", "Vrinda", var(--font-sans); }

.portal .site-foot { margin-top: 36px; }

@media (max-width: 900px) {
  .office-dds { grid-template-columns: 1fr; }
  .dd-menu { position: static; }
}
@media (max-width: 640px) {
  .portal-wrap { padding: 14px 16px 4px; }
  .gov-inner { padding: 6px 16px; font-size: 11.5px; }
  .gov-date { display: none; }
  .portal-header-inner { padding: 10px 16px; gap: 10px; }
  .portal-logo img { height: 44px; }
  .nbr-mark img { width: 44px; height: 44px; }
  .nbr-mark div { display: none; }
  .portal-slider { border-radius: 12px; aspect-ratio: auto; height: 150px; }
  .slide-nav { display: none; }
  .ready-logo { display: none; }
  .ready-card { padding: 14px 16px; }
  .nbr-building img { aspect-ratio: 16 / 9; }
}

/* Slide captions (photos of NBR headquarters) */
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, hsl(var(--brand-navy) / .82) 0%, hsl(var(--brand-navy) / .55) 34%, transparent 64%); }
.slide-cap { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: min(560px, 62%); padding: 26px 34px; display: flex; flex-direction: column; justify-content: center; gap: 8px; color: #fff; }
.slide-cap strong { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgb(0 0 0 / .35); }
.slide-text { font-size: 15px; opacity: .88; }
.slide-kicker { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: hsl(var(--brand-red)); box-shadow: 0 6px 16px -8px hsl(var(--brand-red)); }
.slide-mark { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; color: hsl(152 60% 24%); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .6); margin-bottom: 4px; }
.slide-mark img { width: 40px; height: 40px; }
.slide-mark b { display: block; font-size: 14px; line-height: 1.2; }
.slide-mark span span { display: block; font-size: 13px; color: hsl(var(--brand-red)); font-family: "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", "Vrinda", var(--font-sans); }
.slide-dots { z-index: 2; } .slide-nav { z-index: 2; }
.site-foot-credit { max-width: 1160px; margin: 0 auto; padding: 0 24px 16px; font-size: 11.5px; color: hsl(0 0% 100% / .55); }
.site-foot-credit a { color: hsl(0 0% 100% / .75) !important; }
@media (max-width: 640px) {
  .slide-cap { width: 100%; padding: 14px 16px; gap: 5px; }
  .slide-cap strong { font-size: 17px; }
  .slide-text { display: none; }
  .slide-mark { padding: 4px 10px 4px 4px; } .slide-mark img { width: 28px; height: 28px; }
  .slide-mark b { font-size: 11px; } .slide-mark span span { font-size: 10.5px; }
  .slide::after { background: linear-gradient(90deg, hsl(var(--brand-navy) / .85), hsl(var(--brand-navy) / .45)); }
  .site-foot-credit { padding: 0 16px 14px; text-align: center; }
}
