﻿/* ==========================================================================
   s3waas-gigw.css  -  GST Karnataka (CTD) site theme
   GIGW 3.0 / DBIM v3 / S3WaaS-style.  Used by MasterPage.master + every content page.
   Sections: 1 tokens/base  2 top bar  3 header  4 menu  5 breadcrumb/main  6 page hero + cards
             7 footer  8 dialogs  9 accessibility panel  10 accessibility modes  11 responsive
   ========================================================================== */

/* ---------- 1. tokens / base ---------- */
:root {
  --navy: #0d2b6b; --navy-d: #071f4e; --blue: #14408b; --orange: #f08a1c; --gold: #FFC107;
  --bg: #f1f4fa; --surface: #fff; --text: #1b1f27; --muted: #4a5568; --line: #d5dbe6;
  --link: #0b4fb3; --focus: #ff9f1c; --topbar: #e8edf6; --chip: #e6ecf8;
  --radius: 10px; --shadow: 0 2px 10px rgba(15, 37, 73, .12);
}

:root[data-theme="contrast"], :root.hc {
  --navy: #000a24; --navy-d: #000; --blue: #ffe27a; --orange: #ffd43b; --gold: #ffd43b;
  --bg: #00122e; --surface: #001a43; --text: #fff; --muted: #e6edff; --line: #6f8fd8;
  --link: #ffe27a; --topbar: #001a43; --chip: #0b2a66;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 1rem;
  font-family: "Noto Sans", "Noto Sans Kannada", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
a { color: var(--link); }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0 0 .75rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.d-none { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.s3-container { width: min(100% - 3rem, 1240px); margin-inline: auto; }

/* ---------- 2. tricolour strip + top bar ---------- */
.tricolor { height: 4px; background: linear-gradient(90deg, #ff9933 0 33.34%, #fff 33.34% 66.67%, #138808 66.67% 100%); }
.s3-topbar { background: var(--topbar); border-bottom: 1px solid var(--line); font-size: .875rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .55rem; }
.topbar-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.topbar-links a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar-tools { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; }
.lang-ico { font-size: .8rem; color: var(--muted); }
.lang-btn {
  padding: .35rem .8rem; font-size: .875rem; font-weight: 700; line-height: 1.2; cursor: pointer;
  color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 6px;
}
:root[data-theme="contrast"] .lang-btn, :root.hc .lang-btn { color: #000; background: var(--gold); border-color: var(--gold); }
.lang-btn:hover { filter: brightness(1.2); }

.a11y-hdr-btn, .a11y-launch {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
  font-size: .875rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 6px;
}
.a11y-hdr-btn:hover, .a11y-launch:hover, .a11y-hdr-btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
.a11y-hdr-btn svg, .a11y-launch svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- 3. header ---------- */
.s3-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; min-width: 0; }
.brand a { display: inline-flex; }
.logo-emblem img, .logo-dept img { height: 5.25rem; width: auto; }
.brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-end { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.logo-end img { height: 4.5rem; width: auto; }

.hdr-search {
  display: flex; align-items: stretch; width: 100%; max-width: 20rem; overflow: hidden;
  background: #fff; border: 2px solid var(--navy); border-radius: 6px;
}
.hdr-search input[type=search] {
  flex: 1 1 auto; min-width: 0; padding: .5rem .75rem; font: inherit; font-size: .95rem;
  color: #1b1f27; background: transparent; border: 0; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.hdr-search input[type=search]:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.hdr-search button {
  display: inline-flex; align-items: center; gap: .4rem; flex: none; padding: .5rem .9rem;
  font-size: .9rem; font-weight: 600; color: #fff; background: var(--navy); border: 0; border-radius: 0; cursor: pointer;
}
.hdr-search button:hover { filter: brightness(1.25); }
.hdr-search button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.hdr-search button svg { width: 1.1rem; height: 1.1rem; flex: none; }
:root[data-theme="contrast"] .hdr-search button, :root.hc .hdr-search button { color: #000; background: var(--gold); }

/* ---------- 4. main menu ---------- */
.s3-nav {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--orange) !important;
  width: 100% !important;
}

/* Force hiding of the mobile menu toggle button completely */
.s3-nav .nav-toggle,
.nav-toggle,
button.nav-toggle {
  display: none !important;
}

.s3-nav .s3-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nav-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  font-size: 0.92rem !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-list li {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-list a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem;
  padding: .75rem .75rem !important;
  white-space: nowrap;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

.nav-list a:hover { background: rgba(255, 255, 255, .14) !important; }
.nav-list a[aria-current="page"] { background: rgba(255, 255, 255, .16) !important; border-bottom-color: var(--orange) !important; }

/* Home Icon alignment */
.s3-nav a.nav-home,
.nav-home {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .6rem .85rem !important;
  min-width: 44px !important;
  height: 100% !important;
}

.s3-nav .home-icon-img,
.s3-nav .nav-home img,
.nav-home img {
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  vertical-align: middle !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ---------- 5. breadcrumb + main ---------- */
.s3-breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .9rem; }
.s3-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding-block: .6rem; }
.s3-breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.s3-main { padding-block: 1.75rem 3rem; min-height: 40vh; }
.s3-main:focus { outline: none; }

/* ---------- 6. page hero + law cards (Gst_laws.aspx etc.) ---------- */


/* ---------- 6. page hero + law cards ---------- */

/* Force container to 100% full width and center its text content */
.page-hero {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Centers block elements horizontally */
  justify-content: center !important;
  text-align: center !important;
}

:root[data-theme="contrast"] .page-hero, 
:root.hc .page-hero { 
  border: none !important; 
  background: transparent !important; 
}

/* Center-aligned title box for both English & Kannada */
.page-hero__title {
  position: relative !important;
  display: block !important; /* Standard block display ensures full width calculation */
  width: 100% !important;
  text-align: center !important;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem) !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  line-height: 1.4 !important;
  margin: 0 auto !important;
  padding-bottom: 0.6rem !important;
}

/* Force label child (if present inside ASP.NET Label) to center align */
.page-hero__title span,
.page-hero__title label {
  display: inline-block !important;
  text-align: center !important;
}

/* Orange underline bar locked to exact center of the page title */
.page-hero__title::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: 4.5rem !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: var(--orange) !important;
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; align-items: start; }
.law-card {
  --c: #3a2db4; min-width: 0; overflow: hidden;
  background: var(--surface); border-top: 5px solid var(--c); border-radius: 6px 6px 10px 10px; box-shadow: var(--shadow);
}
.law-card--1 { --c: #3a2db4; }
.law-card--2 { --c: #5a7d12; }
.law-card--3 { --c: #b8421a; }
.law-card__head { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.law-card__icon {
  display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; overflow: hidden;
  background: var(--c); border-radius: 50%; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px var(--line);
}
.law-card__icon img { width: 68%; height: 68%; object-fit: contain; }
.law-card__title { font-size: 1.3rem; font-weight: 700; color: var(--text); }

/* Accordion Badges Removal - completely hides count pills (5, 18, 2, etc.) */
.acc { border-top: 1px solid var(--line); }
.acc__h { margin: 0; }
.acc__btn {
  --fit: 1; display: flex; align-items: center; gap: .6rem; width: 100%; padding: .85rem 1.25rem; cursor: pointer; text-align: left;
  font-size: calc(.95rem * var(--fit)); font-weight: 700; color: var(--text); background: var(--surface); border: 0;
}
.acc__btn > :first-child { flex: 1 1 auto; min-width: 0; }
.acc__btn:hover { background: var(--chip); }
.acc__btn::after {
  content: ""; flex: none; width: .6rem; height: .6rem; margin: 0 .25rem .2rem .1rem;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.acc__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.acc__btn:focus-visible { outline-offset: -3px; }

.acc__count,
span.acc__count {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.js-acc .acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.js-acc .acc__panel.is-open { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; }
.js-acc .acc__panel:not(.is-open) .acc__inner { visibility: hidden; transition: visibility 0s .25s; }

.link-list li { position: relative; padding: .7rem 1.25rem .7rem 2.3rem; border-top: 1px solid var(--line); line-height: 1.45; }
.link-list li::before {
  content: ""; position: absolute; left: 1.2rem; top: 1.12rem;
  border-left: .45rem solid var(--c, var(--blue)); border-top: .3rem solid transparent; border-bottom: .3rem solid transparent;
}
.link-list a { color: var(--link); text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list--flat { border-top: 1px solid var(--line); }
.link-list--flat li:first-child { border-top: 0; }

.acc-row { padding: .85rem 1.25rem; border-top: 1px solid var(--line); font-weight: 700; }
.acc-row a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--text); text-decoration: none; }
.acc-row a:hover { color: var(--link); text-decoration: underline; }

.file-badge {
  display: inline-block; margin-left: .5rem; padding: 0 .4rem; font-size: .68rem; font-weight: 700; line-height: 1.6; letter-spacing: .03em;
  color: var(--navy); background: var(--chip); border: 1px solid var(--line); border-radius: 4px; vertical-align: .08em;
}
.ext-icon { display: inline-block; margin-left: .3rem; font-size: .8em; color: var(--muted); }

/* ---------- 7. footer ---------- */
.s3-footer { color: #fff; background: var(--navy-d); font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 1.75rem; }
.f-col { min-width: 0; }
.f-h { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 700; color: #fff; }
.f-owner { margin: 0 0 1rem; line-height: 1.55; color: #fff; }
.s3-footer ul { list-style: none; margin: 0; padding: 0; }
.s3-footer li { margin: 0 0 .5rem; }
.s3-footer a, .s3-footer .link-btn { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.s3-footer .link-btn { padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.s3-footer a:hover, .s3-footer .link-btn:hover { color: var(--gold); text-decoration: none; }
.f-social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.s3-footer .f-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; text-decoration: none;
}
.s3-footer .f-social a:hover { background: #fff; color: var(--navy-d); border-color: #fff; }
.f-social svg { width: 1.25rem; height: 1.25rem; flex: none; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .25); }
.f-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; }
.f-bottom p { margin: 0; color: #fff; }
.f-top { white-space: nowrap; }

/* ---------- 8. dialogs (policy / developer / help) ---------- */
.s3-dialog {
  width: min(48rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: hidden;
  color: var(--text); background: var(--surface); border: 0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.s3-dialog[open] { display: flex; flex-direction: column; }
.s3-dialog::backdrop { background: rgba(7, 31, 78, .6); }
.dialog-head { flex: none; padding: .9rem 1.25rem; color: #fff; background: var(--navy); }
.dialog-title { font-size: 1.15rem; color: #fff; }
.dialog-body { flex: 1 1 auto; padding: 1.1rem 1.25rem; overflow: auto; }
.dialog-foot { flex: none; padding: .75rem 1.25rem; text-align: right; border-top: 1px solid var(--line); }
.policy-h { margin: 1rem 0 .4rem; font-size: 1.02rem; color: var(--blue); }
.policy-h:first-child { margin-top: 0; }
.tool-btn { padding: .45rem 1.1rem; font-weight: 600; cursor: pointer; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 6px; }
.tool-btn:hover { filter: brightness(1.25); }
.dev-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .75rem; }
.dev-card img { width: 5rem; height: auto; }
.dev-card address { font-style: normal; line-height: 1.5; }
.sr-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .93rem; }
.sr-table th, .sr-table td { padding: .45rem .6rem; text-align: left; border: 1px solid var(--line); }
.sr-table th { background: var(--chip); }

/* ---------- 9. accessibility panel ---------- */
.a11y-panel {
  z-index: 1000; width: min(26rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); overflow: auto;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  position: fixed; top: .75rem; right: .75rem;
}
.a11y-launch { position: fixed; z-index: 999; right: 1rem; bottom: 1rem; }
.a11y-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; color: #fff; background: var(--navy); border-radius: 11px 11px 0 0; }
.a11y-head h2 { flex: 1 1 auto; font-size: 1.05rem; color: #fff; }
.a11y-head-ico svg { width: 1.4rem; height: 1.4rem; }
.a11y-close { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; cursor: pointer; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; }
.a11y-close:hover { background: rgba(255, 255, 255, .2); }
.a11y-close svg { width: 1.1rem; height: 1.1rem; }
.a11y-body { padding: .9rem; }
.a11y-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.a11y-tool {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .35rem; min-height: 5.2rem; padding: .6rem .35rem;
  font-size: .76rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.a11y-tool:hover { border-color: var(--blue); }
.a11y-tool[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.a11y-ico svg { width: 1.5rem; height: 1.5rem; }
.a11y-status { min-height: 1.3em; margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.a11y-foot { padding: .6rem .9rem .9rem; text-align: right; }
.a11y-reset { padding: .45rem 1rem; font-weight: 600; cursor: pointer; color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 6px; }
.a11y-reset:hover { background: var(--navy); color: #fff; }

/* ---------- 10. accessibility modes ---------- */
html.a11y-contrast { filter: contrast(1.45); }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray { filter: grayscale(1); }
html.a11y-links a { color: #000 !important; background: #ffeb3b !important; text-decoration: underline !important; outline: 1px solid #000; }
html.a11y-hideimg img { visibility: hidden !important; }

/* ---------- 11. responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid, .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .logo-emblem img, .logo-dept img { height: 3.75rem; }
  .logo-end img { height: 3.5rem; }
  .hdr-search { max-width: none; }
  .a11y-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { padding: 1.25rem; }
}
@media print {
  .s3-topbar, .s3-nav, .a11y-panel, .a11y-launch, .hdr-search { display: none !important; }
}

/* ==========================================================================
   Heading alignment - centre (Kannada and English)
   Append at the END of s3waas-gigw.css so it wins over earlier rules.
   ========================================================================== */

/* Page title (H1) and its underline bar */
html[lang="kn"] .page-hero,
html[lang="kn"] .page-hero__title,
html[lang="kn"] .page-hero__title span {
  text-align: center !important;
}
.page-hero__title {
  text-indent: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-wrap: balance;
}

/* Card headings (Quick Links / Notifications / Circulars): icon + title centred as one group */
.law-card__head {
  justify-content: center;
  text-align: center;
}
.law-card__title {
  flex: 0 1 auto;
  text-align: center;
}


/* ==========================================================================
   Main menu - centred and always inside the screen (Kannada labels are wide)
   Works together with js/nav-fit.js, which shrinks the text only as much as needed.
   ========================================================================== */
.s3-nav .s3-container {
  width: min(100% - 1rem, 1500px) !important;
}
.nav-list {
  justify-content: center !important;
  justify-content: safe center !important;   /* never cuts off the first item */
}
.nav-list a {
  padding: .75rem var(--nav-pad, .75rem) !important;
}
/* ==========================================================================
   PROFESSION TAX HERO & HORIZONTAL TAB NAV
   ========================================================================== */

/* 1. Hero Container */
.pt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0 2rem 0;
  margin-bottom: 1.5rem;
  background: transparent;
}

/* 2. Avatar Row */
.pt-hero__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

.pt-hero__avatars img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.pt-hero__avatars img:hover {
  transform: translateY(-3px);
}

/* 3. Hero Heading & Subtitle */
.pt-hero__title {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem);
  font-weight: 800;
  color: #000;
  line-height: 1.2;
  margin: 0 0 0.6rem 0;
  text-align: center;
}

.pt-hero__title a {
  color: #000;
  text-decoration: none;
}

.pt-hero__title a:hover {
  color: var(--navy);
}

.pt-hero__sub {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1b1f27;
  margin: 0;
  text-align: center;
}

/* 4. Horizontal Links Grid */
.pt-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: flex-end;
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}

/* 5. Tab Link Cards */
.pt-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  min-height: 95px;
  position: relative;
}

.pt-link-card__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1b1f27;
  margin-bottom: 0.3rem;
}

.pt-link-card__main,
.pt-link-card__sub {
  color: #1b1f27;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  display: inline-block;
  transition: color 0.2s ease;
}

.pt-link-card__main {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.pt-link-card__main--single {
  margin-bottom: 1.2rem;
}

.pt-link-card__sub {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.pt-link-card a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.pt-arrow {
  display: inline-block;
  margin-right: 0.25rem;
  font-weight: 700;
}

/* 6. Colored Accent Bars at Bottom */
.pt-link-card__bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  margin-top: auto;
}

.pt-link-card--blue .pt-link-card__bar {
  background-color: #3b30d8;
}

.pt-link-card--green .pt-link-card__bar {
  background-color: #a3d132;
}

.pt-link-card--red .pt-link-card__bar {
  background-color: #f25430;
}

/* 7. Responsive Adjustments */
@media (max-width: 1024px) {
  .pt-hero__avatars {
    gap: 1.5rem;
  }
  .pt-hero__avatars img {
    width: 56px;
    height: 56px;
  }
  .pt-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
  }
}

@media (max-width: 640px) {
  .pt-hero__avatars {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .pt-hero__avatars img {
    width: 44px;
    height: 44px;
  }
  .pt-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   DBIM footer on every page (icon quick links + website information),
   cookie consent bar, flat key-colour footer
   ========================================================================== */
.s3-footer { background: #162F6A; }
:root[data-theme="contrast"] .s3-footer, :root.hc .s3-footer { background: #000a24; }
.s3-footer .footer-main--dbim { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 1.75rem; }
.s3-footer .footer-main--dbim .f-id { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .25); }
.s3-footer .footer-main--links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 0 1.75rem; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 1.75rem; }
.s3-footer .f-sub { margin: 1.1rem 0 .4rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.s3-footer .f-owner a { color: #fff; }

.s3-footer .f-qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.5rem; }
.s3-footer .f-qgrid li { margin: 0; }
.s3-footer .f-qgrid a, .s3-footer .f-qgrid .link-btn {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.75rem; padding: .35rem .25rem;
  color: #fff; text-decoration: none; border-radius: 6px;
}
.s3-footer .f-qgrid a:hover, .s3-footer .f-qgrid .link-btn:hover { color: #fff; text-decoration: underline; background: rgba(255, 255, 255, .1); }
.s3-footer .f-qgrid .ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .s3-footer .footer-main--dbim { grid-template-columns: 1fr; }
  .s3-footer .footer-main--dbim .f-id { padding-left: 0; border-left: 0; }
  .s3-footer .footer-main--links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .s3-footer .f-qgrid { grid-template-columns: 1fr; } }

/* cookie consent bar */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .75rem 1.25rem; background: var(--surface); color: var(--text); border-top: 4px solid #162F6A; box-shadow: 0 -4px 16px rgba(0, 0, 0, .25);
  padding: .9rem max(1rem, env(safe-area-inset-right)) calc(.9rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar p { flex: 1 1 26rem; max-width: 62rem; margin: 0; font-size: .95rem; line-height: 1.5; }
.cookie-bar .link-btn { padding: 0; font: inherit; color: var(--link); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 0 auto; }
.cookie-btn { min-height: 44px; padding: .5rem 1rem; font: inherit; font-weight: 600; color: #fff; border: 2px solid transparent; border-radius: 6px; cursor: pointer; }
.cookie-btn--grey { background: #5b6470; border-color: #5b6470; }
.cookie-btn--blue { background: #162F6A; border-color: #162F6A; }
.cookie-btn:hover { filter: brightness(1.2); }
:root[data-theme="contrast"] .cookie-btn, :root.hc .cookie-btn { background: var(--gold); border-color: var(--gold); color: #000; }
body.has-cookie-bar { padding-bottom: var(--cookie-h, 6rem); }
@media (max-width: 600px) { .cookie-actions { flex-direction: column; width: 100%; } .cookie-btn { width: 100%; } }
@media print { .cookie-bar { display: none !important; } }

.ck-choices { margin-top: 1rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.ck-row { display: flex; gap: .65rem; align-items: flex-start; margin: .6rem 0; cursor: pointer; }
.ck-row input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .3rem; }
.s3-dialog .ck-save { min-height: 44px; margin-top: .5rem; padding: .5rem 1.2rem; font-weight: 600; color: #fff; background: #162F6A; border: 2px solid #162F6A; border-radius: 6px; cursor: pointer; }
.s3-dialog .sr-table { display: block; overflow-x: auto; }
.s3-dialog table.sr-table { border-collapse: collapse; }
.s3-dialog .sr-table th, .s3-dialog .sr-table td { padding: .4rem .6rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
/* ==========================================================================
   Kannada menu / header alignment fix  (appended at the very end)
   Why: .nav-list is nowrap + !important and its comment relies on js/nav-fit.js,
   which MasterPage.master never loads - so the long Kannada labels overflow and the
   last item (ಸಂಪರ್ಕಿಸಿ) is cut off. line-height:1.2 !important also clips Kannada
   vowel signs / subscripts.  These rules use higher specificity + !important.
   ========================================================================== */

/* let the menu wrap to a second centred row instead of overflowing (all languages) */
.s3-nav .nav-list {
  flex-wrap: wrap !important;
  justify-content: center !important;
  row-gap: 0 !important;
}
.s3-nav .nav-list li { height: auto !important; }

/* Kannada: taller line box, slightly tighter padding / size so it normally fits on one row */
html[lang="kn"] .s3-nav .nav-list {
 font-size: var(--nav-fs, .88rem) !important;
  min-height: 54px !important;
}
html[lang="kn"] .s3-nav .nav-list a {
  line-height: 1.55 !important;
  padding: .8rem .6rem !important;
  min-height: 54px;
}
html[lang="kn"] .s3-nav a.nav-home { padding: .6rem .7rem !important; min-height: 54px; }

/* Kannada: top bar, breadcrumb and header search need the same extra line height */
html[lang="kn"] .topbar-links a,
html[lang="kn"] .a11y-hdr-btn,
html[lang="kn"] .lang-btn,
html[lang="kn"] .hdr-search input[type=search],
html[lang="kn"] .hdr-search button { line-height: 1.5; }
html[lang="kn"] .topbar-inner { align-items: center; }
html[lang="kn"] .s3-breadcrumb ol { align-items: center; line-height: 1.7; }

/* ==========================================================================
   GIGW 3.0 / DBIM v3 audit fixes (appended)
   ========================================================================== */

/* DBIM 4.3 type scale: desktop H1 36 / H2 24 / H3 20 / P 16, mobile 24 / 20 / 16 / 14 */
h1 { font-size: 2.25rem !important; line-height: 1.25; }
h2 { font-size: 1.5rem !important;  line-height: 1.3; }
h3 { font-size: 1.25rem !important; line-height: 1.35; }
p, li { font-size: 1rem; }
body { line-height: 1.5; }                    /* DBIM 4.5: 1.2 to 1.5 x font size */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1rem !important; }
  p, li { font-size: .875rem; }
}

/* DBIM 4.5: distinct hover / focus / disabled states for links and buttons */
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ff9f1c; outline-offset: 2px;
}
button:not(:disabled):hover, .pr-btn:hover, .cookie-btn:hover { filter: brightness(1.12); }
button:disabled, button[aria-disabled="true"], .pr-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ownership / lineage statement (footer, every page) */
.f-lineage, .lineage { margin: 0; padding: .6rem 0; font-weight: 600; color: #fff; }
.policy-page { max-width: 62rem; margin: 0 auto 2rem; }
.policy-toc ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0 0 1.25rem; list-style: none; }
.policy-h { margin-top: 1.5rem; }

/* Kannada main menu: one row, no JS needed */
@media (min-width: 992px) {
  html[lang="kn"] .s3-nav .nav-list,
  html[lang="kn"] .s3-nav .nav-list.nav-wrap {
    flex-wrap: nowrap !important;
    font-size: .76rem !important;
  }
  html[lang="kn"] .s3-nav .nav-list a {
    padding: .8rem .35rem !important;
    white-space: nowrap !important;
  }
}
.f-utility ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: .75rem 0;
}
.f-utility a,
.f-utility .link-btn {
    color: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
/* ==========================================================================
   Footer Related Links: Inline Label & Arrow (Tight Gap Fix)
   ========================================================================== */
.footer-main--links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
}

.footer-main--links .f-dropdown-group {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-main--links .f-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Align arrow right next to text */
    gap: 0.5rem !important;                  /* Tight gap between text and arrow */
    width: auto !important;
    cursor: pointer !important;
    list-style: none !important;
}

.footer-main--links .f-dropdown-toggle::-webkit-details-marker {
    display: none !important;
}

.footer-main--links .dropdown-ico {
    width: 16px !important;
    height: 16px !important;
    flex: none !important;
    margin: 0 !important;
    transition: transform 0.2s ease;
}

.footer-main--links details[open] .dropdown-ico {
    transform: rotate(180deg) !important;
}

.footer-main--links .f-dropdown-content {
    margin-top: 8px !important;
    padding-left: 0 !important;
    list-style: none !important;
}

@media (max-width: 768px) {
    .footer-main--links {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}
/* ==========================================================================
   Kannada Main Navigation Item Spacing Fix
   ========================================================================== */
html[lang="kn"] .s3-nav .nav-list {
    column-gap: 0.75rem !important; /* Adds breathing space between menu items */
}

html[lang="kn"] .s3-nav .nav-list a {
    padding-left: 0.85rem !important;  /* Increases inner left/right spacing */
    padding-right: 0.85rem !important;
    letter-spacing: 0.02em !important; /* Slightly loosens Kannada character density */
}

/* ==========================================================================
   Tricolour removed + DBIM audit quick fixes (appended at the very end)
   ========================================================================== */

/* Remove the orange / white / green strip at the top of every page */
.tricolor { display: none !important; }

/* DBIM 3.7: icon sizes limited to 24 / 32 / 48 / 64 px */
.s3-nav .home-icon-img,
.s3-nav .nav-home img,
.nav-home img {
  width: 24px !important; height: 24px !important;
  min-width: 24px !important; min-height: 24px !important;
}
.top-bar-icon-btn svg,
.a11y-hdr-btn svg,
.s3-footer .f-qgrid .ico,
.s3-footer .f-social svg {
  width: 24px !important; height: 24px !important;
}

/* DBIM 4.5: one consistent button size and padding */
.cookie-btn, .tool-btn, .lang-btn, .a11y-reset, .hdr-search button, .s3-dialog .ck-save {
  box-sizing: border-box;
  min-height: 40px !important; height: 40px !important;
  padding: 8px 16px !important;
  display: inline-flex; align-items: center; justify-content: center;
}

/* DBIM 4.5 iii: line height between 1.2 and 1.5 for body text */
p, li, td, th, .f-owner, .cookie-bar p { line-height: 1.5 !important; }