/* DBIM Homepage Template 1 theme: white header and menu, teal footer and social band.
   Loaded after style.css, css2/style.css and dbim-typography.css. */
:root {
  --dbim-teal: #14594f;
  --dbim-teal-dark: #0e4139;
  --dbim-teal-soft: #e6f2ef;
  --dbim-ink: #1d2b28;
  --dbim-grey: #f1f3f2;
  --dbim-line: #cfd8d5;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: var(--dbim-teal); padding: 8px 14px; border: 2px solid var(--dbim-teal); }
.skip-link:focus { left: 8px; top: 8px; }

/* Utility strip: GoI link, text size, contrast, language */
.dbim-utility { background: var(--dbim-grey); border-bottom: 1px solid var(--dbim-line); }
.dbim-utility .dbim-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; padding: 4px 16px; }
.dbim-utility a, .dbim-utility button { color: var(--dbim-ink); font-size: 12px; }
.dbim-utility ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 0; }
.dbim-utility button.tool { background: #fff; border: 1px solid var(--dbim-line); border-radius: 3px; min-width: 30px; height: 26px; padding: 0 6px; cursor: pointer; font-weight: 600; }
.dbim-utility button.tool:hover, .dbim-utility button.tool[aria-pressed="true"] { background: var(--dbim-teal); color: #fff; border-color: var(--dbim-teal); }
#google_translate_element { display: inline-block; min-height: 26px; }

/* Brand row */
.dbim-brand { background: #fff; }
.dbim-brand .dbim-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px 16px; }
.dbim-brand .id { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--dbim-ink); }
.dbim-brand .id img { height: 64px; width: auto; }
.dbim-brand .id small { display: block; font-size: 12px; color: #4a5a56; }
.dbim-brand .id strong { display: block; font-size: 16px; line-height: 1.25; }
.dbim-brand .id .portal { font-size: 14px; color: var(--dbim-teal); font-weight: 600; }
.dbim-brand .right { display: flex; align-items: center; gap: 20px; }
.dbim-brand .right img { height: 56px; width: auto; }
.dbim-search { display: flex; border: 1px solid var(--dbim-teal); border-radius: 4px; overflow: hidden; background: #fff; }
.dbim-search input { border: 0; padding: 6px 10px; width: 220px; max-width: 46vw; font-size: 14px; outline-offset: -2px; }
.dbim-search button { border: 0; background: var(--dbim-teal); color: #fff; padding: 0 12px; cursor: pointer; }
.dbim-search button:hover { background: var(--dbim-teal-dark); }

/* Menu bar */
.dbim-menu { background: #fff; border-top: 1px solid var(--dbim-line); border-bottom: 3px solid var(--dbim-teal); }
.dbim-menu .navbar { padding: 0 16px; }
.dbim-menu .nav-link { color: var(--dbim-ink) !important; font-weight: 600; padding: 12px 14px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.dbim-menu .nav-link:hover, .dbim-menu .nav-link:focus, .dbim-menu .nav-link.active { color: var(--dbim-teal) !important; border-bottom-color: var(--dbim-teal); }
.dbim-menu .dropdown-menu { background: #fff; border: 1px solid var(--dbim-line); border-top: 3px solid var(--dbim-teal); border-radius: 0; }
.dbim-menu .dropdown-item { color: var(--dbim-ink); }
.dbim-menu .dropdown-item:hover, .dbim-menu .dropdown-item:focus { background: var(--dbim-teal-soft); color: var(--dbim-teal); }

/* Partner logos */
.dbim-partners { background: #fff; border-top: 1px solid var(--dbim-line); margin-top: 40px; }
.dbim-partners ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin: 0; padding: 14px 16px; }
.dbim-partners img { height: 42px; width: auto; }

/* Footer */
.dbim-footer { background: var(--dbim-teal); color: #fff; }
.dbim-footer a { color: #fff; }
.dbim-footer a:hover, .dbim-footer a:focus { text-decoration: underline; }
.dbim-footer .cols { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; padding: 22px 16px 14px; }
.dbim-footer h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: #cfe7e1; font-weight: 700; }
.dbim-footer .useful { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 40px; }
.dbim-footer .useful li { font-size: 14px; margin-bottom: 6px; break-inside: avoid; }
.dbim-footer .social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.dbim-footer .social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%; font-weight: 700; font-size: 14px; text-decoration: none; }
.dbim-footer .social a:hover, .dbim-footer .social a:focus { background: #fff; color: var(--dbim-teal); text-decoration: none; }
.dbim-footer .base { border-top: 1px solid rgba(255,255,255,.25); background: var(--dbim-teal-dark); }
.dbim-footer .base .dbim-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 10px 16px; font-size: 13px; }
.dbim-footer .base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; padding: 0; }
.dbim-footer .base li { font-size: 13px; }

/* Accessibility modes */
body.hc { background: #000 !important; color: #ff0 !important; }
body.hc .dbim-brand, body.hc .dbim-menu, body.hc .dbim-partners, body.hc .container-fluid { background: #000 !important; color: #ff0 !important; }
body.hc a, body.hc .dbim-menu .nav-link, body.hc .dbim-brand .id { color: #ff0 !important; }
body.hc .dbim-footer, body.hc .dbim-footer .base { background: #000 !important; border-top: 1px solid #ff0; }

:focus-visible { outline: 3px solid #f5a300; outline-offset: 2px; }

@media (max-width: 767px) {
  .dbim-brand .id img { height: 48px; }
  .dbim-brand .right img { display: none; }
  .dbim-search { width: 100%; }
  .dbim-search input { width: 100%; max-width: none; flex: 1; }
  .dbim-brand .right { width: 100%; }
  .dbim-footer .useful { columns: 2; }
}

/* Announcements strip (replaces <marquee>); scrolls slowly, stops on hover, focus, pause button or reduced motion. */
.dbim-announce { display: flex; align-items: center; gap: 12px; background: var(--dbim-teal-soft); border-top: 1px solid var(--dbim-line); border-bottom: 1px solid var(--dbim-line); padding: 6px 16px; }
.dbim-announce .label { flex: none; background: var(--dbim-teal); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 2px; }
.dbim-announce .track { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.dbim-announce .track p { display: inline-block; margin: 0; padding-left: 100%; font-size: 14px; font-weight: 600; color: var(--dbim-ink); animation: dbim-scroll 70s linear infinite; }
.dbim-announce .track:hover p, .dbim-announce .track.paused p { animation-play-state: paused; }
.dbim-announce button { flex: none; width: 30px; height: 28px; border: 1px solid var(--dbim-teal); background: #fff; color: var(--dbim-teal); border-radius: 3px; cursor: pointer; font-size: 11px; }
@keyframes dbim-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .dbim-announce .track { white-space: normal; }
  .dbim-announce .track p { animation: none; padding-left: 0; }
}

/* Home page sections from DBIM Homepage Template 1 */
.dbim-block { padding: 28px 0; background: #fff; }
.dbim-block.grey { background: var(--dbim-grey); }
.dbim-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.dbim-block h2, .dbim-social h2 { font-size: 24px; font-weight: 700; margin: 0 0 16px; color: var(--dbim-teal); }
.dbim-split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.dbim-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dbim-tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 108px; padding: 12px; background: #fff; border: 1px solid var(--dbim-line); border-radius: 4px; color: var(--dbim-ink); text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; }
.dbim-tiles a:hover, .dbim-tiles a:focus { border-color: var(--dbim-teal); box-shadow: 0 0 0 2px var(--dbim-teal-soft); }
.dbim-tiles i { font-size: 28px; color: var(--dbim-teal); }
.dbim-new { background: var(--dbim-teal); color: #fff; border-radius: 4px; padding: 16px 20px; }
.dbim-new h2 { color: #fff; }
.dbim-new ul { list-style: none; margin: 0; padding: 0; }
.dbim-new li { border-top: 1px solid rgba(255,255,255,.25); padding: 10px 0; font-size: 14px; }
.dbim-new a { color: #fff; }
.dbim-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.dbim-links li { border-bottom: 1px solid var(--dbim-line); }
.dbim-links a { display: block; padding: 10px 0; color: var(--dbim-ink); font-size: 14px; }
.dbim-links a:hover, .dbim-links a:focus { color: var(--dbim-teal); }
.dbim-social { background: var(--dbim-teal); color: #fff; padding: 24px 0; }
.dbim-social h2 { color: #fff; }
.dbim-social ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dbim-social a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); border-radius: 4px; color: #fff; text-decoration: none; font-size: 14px; }
.dbim-social a:hover, .dbim-social a:focus { background: #fff; color: var(--dbim-teal); }
.dbim-social a i, .dbim-social a strong { font-size: 22px; width: 28px; text-align: center; }
@media (max-width: 767px) { .dbim-split { grid-template-columns: 1fr; } }

/* Template 1 lockup: logo, then small "Government of India" over the bold ministry name */
.dbim-brand .id img { height: 60px; padding-right: 14px; border-right: 1px solid var(--dbim-line); }
.dbim-brand .id strong { font-size: 18px; font-weight: 700; }
.dbim-brand .id small { font-size: 13px; }

/* Accessibility and language tools sit beside the search box (Template 1) */
.dbim-utility { display: none; }
.dbim-tools { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.dbim-tools button { width: 34px; height: 34px; border: 1px solid var(--dbim-line); border-radius: 50%; background: #fff; color: var(--dbim-teal); cursor: pointer; font-size: 15px; }
.dbim-tools button:hover, .dbim-tools button[aria-pressed="true"] { background: var(--dbim-teal); color: #fff; border-color: var(--dbim-teal); }
.dbim-tools .lang { display: flex; align-items: center; gap: 4px; color: var(--dbim-teal); font-size: 18px; }
.dbim-tools .lang #google_translate_element { min-height: 0; }
.dbim-tools .goog-te-gadget { font-size: 0; }
.dbim-tools .goog-te-gadget .goog-te-combo { font-size: 13px; padding: 4px; max-width: 130px; }
.dbim-tools .goog-te-gadget span { display: none; }
@media (max-width: 767px) { .dbim-brand .right { flex-wrap: wrap; } }

/* Brand row after the MSDE layout: emblem and name, search, partner logo, icon links with dividers */
.dbim-brand .dbim-inner { flex-wrap: nowrap; gap: 20px; }
.dbim-brand .id { flex: 0 1 auto; }
.dbim-brand .id img.emblem { height: 68px; padding-right: 0; border-right: 0; }
.dbim-brand .id strong { font-size: 18px; }
.dbim-brand .right { flex: 1 1 auto; justify-content: flex-end; gap: 28px; min-width: 0; }
.dbim-brand .right img.partner { height: 60px; width: auto; }
.dbim-search { border: 0; border-bottom: 2px solid var(--dbim-teal); border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px var(--dbim-line); background: #fff; }
.dbim-search input { width: 240px; }
.dbim-search button { background: #fff; color: var(--dbim-teal); border-left: 1px solid var(--dbim-line); padding: 0 14px; }
.dbim-search button:hover { background: var(--dbim-teal-soft); }
.dbim-tools { gap: 0; }
.dbim-tools > li { position: relative; padding: 0 14px; border-left: 1px solid var(--dbim-line); }
.dbim-tools > li:first-child { border-left: 0; }
.dbim-tools .tool { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; background: none; color: var(--dbim-teal); font-size: 26px; cursor: pointer; border-radius: 4px; text-decoration: none; }
.dbim-tools .tool:hover, .dbim-tools .tool[aria-expanded="true"] { background: var(--dbim-teal-soft); }
.dbim-tools .pop { position: absolute; right: 0; top: 100%; z-index: 1500; min-width: 210px; padding: 12px 14px; background: #fff; border: 1px solid var(--dbim-line); border-top: 3px solid var(--dbim-teal); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.dbim-tools .pop[hidden] { display: none; }
.dbim-tools .pop p { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--dbim-teal); text-transform: uppercase; letter-spacing: .05em; }
.dbim-tools .row-btns { display: flex; gap: 6px; margin-bottom: 10px; }
.dbim-tools .row-btns button { flex: 1; width: auto; height: 32px; border: 1px solid var(--dbim-line); border-radius: 3px; background: #fff; color: var(--dbim-ink); font-size: 14px; cursor: pointer; }
.dbim-tools .row-btns button:hover, .dbim-tools .row-btns button[aria-pressed="true"] { background: var(--dbim-teal); color: #fff; border-color: var(--dbim-teal); }
@media (max-width: 991px) {
  .dbim-brand .dbim-inner { flex-wrap: wrap; }
  .dbim-brand .right { flex-basis: 100%; justify-content: space-between; gap: 12px; }
  .dbim-brand .right img.partner { display: none; }
  .dbim-search { flex: 1; }
  .dbim-search input { width: 100%; max-width: none; }
  .dbim-tools > li { padding: 0 6px; }
}

/* Language list (replaces the visible Google Translate dropdown) */
.dbim-tools .pop-lang { min-width: 230px; padding: 4px 0; }
.dbim-tools .lang-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.dbim-tools .lang-list button { display: block; width: 100%; height: auto; border: 0; border-radius: 0; background: none; text-align: left; padding: 10px 16px; font-size: 14px; color: var(--dbim-ink); cursor: pointer; }
.dbim-tools .lang-list button:hover, .dbim-tools .lang-list button:focus { background: var(--dbim-teal-soft); color: var(--dbim-teal); }
.dbim-tools .gt-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Guard the language list against site-wide ul/li and button rules */
.dbim-tools .pop-lang { width: 240px; }
.dbim-tools .pop-lang .lang-list { display: block; width: 100%; height: auto; max-height: 260px; overflow-y: auto; overflow-x: hidden; }
.dbim-tools .pop-lang .lang-list li { display: block; float: none; width: 100%; height: auto; padding: 0; margin: 0; border: 0; }
.dbim-tools .pop-lang .lang-list button { display: block; width: 100%; min-height: 40px; height: auto; margin: 0; white-space: normal; line-height: 1.3; border: 0; border-radius: 0; box-shadow: none; }

/* Language icon: Devanagari "अ" over Latin "A", as on msde.gov.in */
.dbim-tools .lang-glyph { position: relative; display: inline-block; width: 26px; height: 28px; line-height: 1; color: var(--dbim-teal); }
.dbim-tools .lang-glyph .hi { position: absolute; left: 1px; top: 0; font-size: 17px; font-weight: 400; }
.dbim-tools .lang-glyph .en { position: absolute; right: 1px; bottom: 0; font-size: 17px; font-weight: 400; }

/* All three tool icons share one size and line weight, as on msde.gov.in */
.dbim-tools .tool { width: 44px; height: 44px; }
.dbim-tools .tool svg { width: 28px; height: 28px; }
.dbim-tools .lang-glyph { width: 28px; height: 28px; }
.dbim-tools .lang-glyph .hi { font-size: 19px; }
.dbim-tools .lang-glyph .en { font-size: 19px; }

/* ---- Inner pages: DBIM "Content Based" template (banner, section tabs, content panel) ---- */
.dbim-banner { background: linear-gradient(120deg, #0f5d58 0%, #14796f 55%, #1d8f86 100%); color: #fff; }
.dbim-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.dbim-banner .crumbs { padding-top: 28px; font-size: 13px; color: #d4ece8; }
.dbim-banner .crumbs a { color: #fff; text-decoration: underline; }
.dbim-banner h1 { color: #fff; font-size: 36px; font-weight: 700; margin: 8px 0 22px; line-height: 1.2; overflow-wrap: anywhere; }
.dbim-tabs { background: #0e3f3b; border-radius: 6px 6px 0 0; margin-bottom: 0; }
.dbim-tabs ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0 8px; }
.dbim-tabs a { display: block; padding: 14px 18px; color: #d4ece8; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.dbim-tabs a:hover, .dbim-tabs a:focus { color: #fff; }
.dbim-tabs a.active { color: #fff; border-bottom-color: #fff; }
.dbim-banner:not(:has(.dbim-tabs)) .dbim-banner-inner:last-child { padding-bottom: 4px; }

main#maincontent { padding-top: 24px; padding-bottom: 24px; max-width: 1400px; margin-left: auto; margin-right: auto; }
main#maincontent .row[data-title-row] { display: none; }
main#maincontent .backlogin1 { background: #fff; border: 1px solid var(--dbim-line); border-top: 4px solid var(--dbim-teal); box-shadow: none; border-radius: 4px; }
main#maincontent h2, main#maincontent h3, main#maincontent h4 { color: var(--dbim-teal); }
main#maincontent a { color: #0b6a60; }
main#maincontent .btn2, main#maincontent .btn-primary { background: var(--dbim-teal); border-color: var(--dbim-teal); color: #fff; border-radius: 4px; }
main#maincontent .btn2:hover, main#maincontent .btn-primary:hover { background: var(--dbim-teal-dark); border-color: var(--dbim-teal-dark); color: #fff; }
@media (max-width: 767px) { .dbim-banner h1 { font-size: 24px; } .dbim-tabs a { padding: 10px 12px; } }

/* ---- Accessibility Controls panel (msde.gov.in style) ---- */
.a11y-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw; z-index: 3000; background: #fff; color: #1d2b28; box-shadow: -6px 0 24px rgba(0,0,0,.25); padding: 20px; overflow-y: auto; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.a11y-head h2 { margin: 0; font-size: 20px; color: #14594f; font-weight: 600; }
.a11y-head button { border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: #1d2b28; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 10px; background: #fff; border: 1px solid #14594f; border-radius: 4px; color: #14594f; cursor: pointer; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600; text-align: center; }
.a11y-grid button svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-grid button:hover, .a11y-grid button[aria-pressed="true"] { background: #14594f; color: #fff; }
.a11y-reset { margin-top: 16px; width: 100%; padding: 10px; border: 1px solid #14594f; background: #e6f2ef; color: #14594f; font-weight: 600; border-radius: 4px; cursor: pointer; }
.a11y-reset:hover { background: #14594f; color: #fff; }

/* Effects (classes are set on <html> by js1/dbim-template1.js) */
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert img, html.a11y-invert video { filter: invert(1) hue-rotate(180deg); }
html.a11y-sat { filter: saturate(.2); }
html.a11y-invert.a11y-sat { filter: invert(1) hue-rotate(180deg) saturate(.2); }
html.a11y-cursor, html.a11y-cursor * { cursor: default !important; }
html.a11y-noimg img, html.a11y-noimg video { visibility: hidden !important; }
html.a11y-noimg *:not(.a11y-panel):not(.a11y-panel *) { background-image: none !important; }
html.a11y-links a:not(.a11y-panel a) { background: #ffeb3b !important; color: #000 !important; text-decoration: underline !important; }
html.a11y-dark body { background: #000 !important; color: #ff0 !important; }
html.a11y-dark :is(main, section, div, p, li, ul, td, th, tr, table, span, h1, h2, h3, h4, h5, h6, label, small, strong, nav, header, footer, form, input, select, textarea, a):not(.a11y-panel):not(.a11y-panel *) { background-color: #000 !important; background-image: none !important; color: #ff0 !important; border-color: #ff0 !important; }
html.a11y-dark img { filter: grayscale(1) contrast(1.2); }

/* ---- Single footer after the MSDE layout ---- */
.dbim-foot { background: #0f5a57; color: #fff; margin-top: 40px; position: relative; }
.dbim-foot a { color: #fff; }
.dbim-foot a:hover, .dbim-foot a:focus { text-decoration: underline; }
.dbim-foot .foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 36px 16px 28px; }
.dbim-foot h2 { margin: 0 0 18px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.dbim-foot .foot-left { flex: 1 1 560px; min-width: 0; }
.dbim-foot .foot-right { flex: 0 1 340px; text-align: center; }
.dbim-foot .foot-links { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(120px, auto)); gap: 18px 28px; }
.dbim-foot .foot-links li { font-size: 16px; }
.dbim-foot .foot-links li::before { content: "\203A"; margin-right: 8px; }
.dbim-foot .foot-own { margin: 0 0 8px; font-size: 16px; }
.dbim-foot .foot-small { margin: 0; font-size: 13px; color: #d4ece8; }
.dbim-foot .foot-small a { text-decoration: underline; }
.dbim-foot .foot-social { list-style: none; display: flex; justify-content: center; gap: 26px; margin: 0 0 22px; padding: 0; }
.dbim-foot .foot-social a { display: inline-flex; font-size: 22px; line-height: 1; text-decoration: none; }
.dbim-foot .foot-logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; }
.dbim-foot .foot-logos a { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; padding: 4px 8px; height: 46px; }
.dbim-foot .foot-logos img { height: 100%; width: auto; max-width: 110px; object-fit: contain; }
.dbim-foot .foot-updated { margin: 0; font-size: 14px; }
.dbim-foot .to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #0b3f3d; color: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); z-index: 1000; }
.dbim-foot .to-top[hidden] { display: none; }
@media (max-width: 767px) {
  .dbim-foot .foot-links { grid-template-columns: repeat(2, 1fr); }
  .dbim-foot .foot-right { flex-basis: 100%; }
}

/* ---- Proportions after msde.gov.in: taller menu, shorter hero, slimmer announcements strip ---- */
.dbim-menu .nav-link { font-size: 16px; padding: 16px 20px; }
.dbim-menu .navbar { min-height: 56px; }
.hero-area .single-welcome-slides { height: clamp(260px, 33vw, 520px); }
.hero-area .single-welcome-slides .container.h-100 { height: 100%; }
.hero-area .single-welcome-slides .welcome-content h2 { font-size: clamp(22px, 3vw, 40px) !important; }
.hero-area .single-welcome-slides .welcome-content .btn { margin-top: 12px !important; }
.dbim-announce { min-height: 48px; background: #e4e8e6; border: 0; padding: 8px 32px; gap: 16px; }
.dbim-announce .label { background: none; color: var(--dbim-teal); font-size: 16px; padding: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dbim-announce .track p { font-size: 15px; }
.dbim-announce button { border: 0; background: none; font-size: 14px; width: 28px; }
@media (max-width: 767px) { .dbim-menu .nav-link { padding: 12px 16px; } .dbim-announce { padding: 8px 16px; } }

/* ---- Footer polish: readable text, one scroll-to-top button, even logo tiles ---- */
.dbim-foot, .dbim-foot p, .dbim-foot li, .dbim-foot span { color: #fff !important; font-weight: 400; }
.dbim-foot .foot-small, .dbim-foot .foot-small a { color: #d4ece8 !important; }
.dbim-foot a { color: #fff !important; font-weight: 400; }
.dbim-foot h2 { font-weight: 700; color: #fff !important; }
.dbim-foot .foot-links { gap: 14px 40px; margin-bottom: 26px; }
.dbim-foot .foot-links a { font-size: 16px; }
.dbim-foot .foot-own { font-size: 15px; margin-bottom: 10px; }
.dbim-foot .foot-logos { display: grid; grid-template-columns: repeat(2, 140px); justify-content: center; gap: 10px; }
.dbim-foot .foot-logos li { list-style: none; }
.dbim-foot .foot-logos a { width: 140px; height: 48px; padding: 5px 8px; }
.dbim-foot .foot-logos li.plain a { background: none; border: 1px solid rgba(255,255,255,.55); }
.dbim-foot .foot-logos img { max-width: 100%; max-height: 100%; }
#scrollUp { display: none !important; }

/* ---- Six menus as on msde.gov.in: Home, Ministry, Offerings, Documents, Media, Connect ---- */
.dbim-menu .navbar-nav { gap: 28px; }
.dbim-menu .nav-link { font-size: 16px; font-weight: 600; padding: 16px 12px; }
.dbim-menu .dropdown-toggle::after { content: ""; border: solid currentColor; border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg) translateY(-3px); margin-left: 10px; vertical-align: middle; }
.dbim-menu .nav-item.dropdown:hover > .nav-link, .dbim-menu .nav-item.show > .nav-link { background: var(--dbim-teal-soft); }
.dbim-menu .dropdown-menu { margin-top: 0; min-width: 240px; padding: 6px 0; }
.dbim-menu .dropdown-item { padding: 10px 20px; font-size: 15px; }
@media (min-width: 768px) { .dbim-menu .nav-item.dropdown:hover > .dropdown-menu { display: block; } }
@media (max-width: 767px) { .dbim-menu .navbar-nav { gap: 0; } }

.dbim-brand .id .portal { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--dbim-teal); }

/* ---- Footer spacing: even columns, breathing room, clear separation between blocks ---- */
.dbim-foot .foot-grid { max-width: 1320px; margin: 0 auto; padding: 48px 32px 40px; gap: 32px 64px; align-items: flex-start; }
.dbim-foot h2 { margin-bottom: 24px; letter-spacing: .04em; }
.dbim-foot .foot-links { grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 20px 40px; margin-bottom: 32px; }
.dbim-foot .foot-links li { line-height: 1.4; }
.dbim-foot .foot-own { padding-top: 24px; margin-bottom: 14px; border-top: 1px solid rgba(255,255,255,.25); line-height: 1.5; }
.dbim-foot .foot-small { line-height: 1.7; }
.dbim-foot .foot-social { margin-bottom: 30px; }
.dbim-foot .foot-logos { gap: 14px; margin-bottom: 28px; }
.dbim-foot .foot-updated { line-height: 1.5; }
@media (max-width: 767px) { .dbim-foot .foot-grid { padding: 32px 16px 28px; } .dbim-foot .foot-links { gap: 16px 24px; } }

/* ---- Footer redesign: three columns + bottom bar ---- */
.dbim-foot { border-top: 4px solid #f4b400; margin-top: 48px; }
.dbim-foot .foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px 56px; max-width: 1320px; margin: 0 auto; padding: 48px 32px 36px; }
.dbim-foot .foot-col { min-width: 0; text-align: left; }
.dbim-foot .foot-col h2 { position: relative; padding-bottom: 12px; margin-bottom: 22px; }
.dbim-foot .foot-col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: #f4b400; }
.dbim-foot .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 0; }
.dbim-foot .foot-help .foot-small { font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.dbim-foot .foot-help .fa { margin-right: 6px; }
.dbim-foot .foot-social { justify-content: flex-start; margin-bottom: 24px; }
.dbim-foot .foot-logos { justify-content: start; margin-bottom: 0; }
.dbim-foot .foot-bar { background: #0b4a47; border-top: 1px solid rgba(255,255,255,.18); }
.dbim-foot .foot-bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; max-width: 1320px; margin: 0 auto; padding: 16px 32px; }
.dbim-foot .foot-bar .foot-own { border: 0; padding: 0; margin: 0; font-size: 14px; }
.dbim-foot .foot-bar .foot-updated { margin: 0; font-size: 14px; }
@media (max-width: 991px) { .dbim-foot .foot-cols { grid-template-columns: 1fr 1fr; } .dbim-foot .foot-left { grid-column: 1 / -1; } }
@media (max-width: 575px) { .dbim-foot .foot-cols { grid-template-columns: 1fr; padding: 32px 16px 24px; } .dbim-foot .foot-bar-in { padding: 14px 16px; } }
