/* Homepage banner carousel (admin-managed). Hidden until JS finds banners. v20261010a */
.banner-carousel[hidden] { display: none !important; }
.banner-carousel { padding: 1rem 0 0; }
.bc-frame { position: relative; border-radius: 18px; overflow: hidden; background: #0b2a4a; box-shadow: var(--shadow-lg, 0 12px 30px rgba(15,23,42,.15)); aspect-ratio: 16 / 6; touch-action: pan-y; }
.bc-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.bc-slide { position: relative; flex: 0 0 100%; height: 100%; }
.bc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-slide.has-text::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,74,.85) 0%, rgba(11,42,74,.55) 45%, rgba(11,42,74,0) 80%); }
.bc-text { position: absolute; z-index: 1; left: 84px; top: 50%; transform: translateY(-50%); max-width: min(560px, 70%); color: #fff; }
.bc-text h2 { margin: 0 0 .3rem; font-size: clamp(1.25rem, 3vw, 2.1rem); line-height: 1.2; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.bc-text .bc-ta { margin: 0 0 .5rem; color: #99f6e4; font-family: var(--font-ta); font-weight: 600; font-size: clamp(.95rem, 2vw, 1.2rem); }
.bc-text p { margin: 0 0 .25rem; color: rgba(255,255,255,.9); font-size: clamp(.85rem, 1.6vw, 1.05rem); }
.bc-text .btn { margin-top: .7rem; }
.bc-slide > a.bc-link { position: absolute; inset: 0; z-index: 1; }
.bc-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; padding: 0;
  border: 2px solid #fff; background: var(--accent, #0d9488); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11,42,74,.35); transition: background-color .2s ease, opacity .2s ease; }
.bc-arrow svg { width: 22px; height: 22px; }
.bc-arrow:hover { background: var(--primary, #0b2a4a); }
.bc-arrow:focus-visible, .bc-dot:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.bc-prev { left: 14px; } .bc-next { right: 14px; }
.bc-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.bc-dot { width: 11px; height: 11px; border-radius: 999px; border: 2px solid #fff; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; transition: width .25s ease, background-color .25s ease; box-shadow: 0 0 0 1.5px rgba(11,42,74,.55), 0 1px 4px rgba(0,0,0,.25); }
.bc-dot[aria-current="true"] { width: 28px; background: var(--accent, #0d9488); }
@media (max-width: 720px) {
  .banner-carousel { padding-top: .75rem; }
  .bc-frame { aspect-ratio: 4 / 3; border-radius: 14px; }
  .bc-slide.has-text::after { background: linear-gradient(180deg, rgba(11,42,74,0) 25%, rgba(11,42,74,.88) 100%); }
  .bc-text { left: 1.1rem; top: auto; bottom: 3.6rem; transform: none; max-width: calc(100% - 2.2rem); }
  .bc-text h2 { font-size: 1.15rem; }
  .bc-text .bc-ta { font-size: .92rem; margin-bottom: .2rem; }
  .bc-text p:not(.bc-ta) { display: none; }
  .bc-text .btn { margin-top: .45rem; padding: .5rem .9rem; font-size: .9rem; }
  .bc-arrow { width: 36px; height: 36px; top: auto; bottom: 8px; transform: none; border-width: 1.5px; } .bc-arrow svg { width: 17px; height: 17px; }
  .bc-prev { left: 10px; } .bc-next { right: 10px; }
  .bc-dots { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bc-track, .bc-dot { transition: none; } }
.bc-slide.btn-only .bc-text .btn { box-shadow: 0 8px 22px rgba(0,0,0,.35); border: 2px solid #fff; }
/* Live exchange-rate overlay (banners with show_rates) */
.bc-rates[hidden] { display: none !important; }
.bc-rates { position: absolute; z-index: 2; right: 84px; top: 50%; transform: translateY(-50%); width: min(430px, 44%);
  background: rgba(255,255,255,.94); color: #0f172a; border-radius: 16px; padding: .9rem 1rem .7rem; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.bc-rates-h { margin: 0 0 .5rem; font-weight: 800; color: var(--primary, #0b2a4a); font-size: 1rem; }
.bc-rates-h [lang="ta"] { color: var(--accent-dark, #0f766e); font-family: var(--font-ta); }
.bc-rates ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .6rem; }
.bc-rates li { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 8px; padding: .3rem .5rem; font-size: .88rem; white-space: nowrap; }
.bc-rates li b { color: var(--accent-dark, #0f766e); font-size: 1rem; }
.bc-rates-f { margin: .5rem 0 0; font-size: .7rem; color: #64748b; }
@media (max-width: 720px) {
  .bc-rates { left: 10px; right: 10px; top: 10px; transform: none; width: auto; padding: .45rem .55rem .4rem; border-radius: 12px; }
  .bc-rates-h { font-size: .78rem; margin-bottom: .3rem; }
  .bc-rates ul { gap: .25rem .35rem; }
  .bc-rates li { font-size: .72rem; padding: .18rem .35rem; }
  .bc-rates li b { font-size: .8rem; }
  .bc-rates li:nth-child(n+5) { display: none; }
  .bc-rates-f { font-size: .6rem; margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bc-rates-long { display: none; }
  .bc-slide.has-rates .bc-text { bottom: 3.3rem; }
  .bc-slide.has-rates .bc-text h2 { font-size: 1rem; }
  .bc-slide.has-rates .bc-text .bc-ta { display: none; }
}
.bc-metal { background: rgba(255,251,235,.96); }
.bc-metal .bc-rates-h { color: #78350f; }
.bc-metal li { background: #fff; border-color: #fde68a; }
.bc-metal li b { color: #92400e; }
.bc-arr { font-style: normal; font-size: .65em; margin-left: .25rem; vertical-align: middle; }
.bc-arr.up { color: #15803d; } .bc-arr.down { color: #b91c1c; }
.bc-metal li:nth-child(5) { grid-column: span 2; }
@media (max-width: 720px) { .bc-metal li:nth-child(5) { display: none; } }
.bc-rates [lang="ta"] { font-family: var(--font-ta, "Noto Sans Tamil"), "Noto Sans Tamil", sans-serif; }
