/* =====================================================================
   GIGW / WCAG 1.4.3 contrast fixes – paste at the END of
   /frontend/assets/css/site-custom.css   (it loads last, so it wins)
   ===================================================================== */

/* ---------- LIGHT MODE (default) ---------- */

/* Top bar: Ministry link, Screen Reader Access, Skip link, Languages, Citizen
   was #76B0F9 (2.25:1) and #7C8082 (3.99:1)  ->  #0B4F9C (8.2:1)            */
.loginbar a,
.loginbar .language-toggle { color: #0B4F9C !important; }

/* Events / What's New: "Format: application/pdf | Size" + date
   was #999 on #F8F5EA (2.61:1)  ->  #555 (6.9:1)                            */
.overflow-h small { color: #555; }

/* "EVENTS" / "TENDERS" category tags  was 3.67:1  ->  7.3:1                 */
.overflow-h a.sectiontype { color: #0B5490; }

/* "View More" buttons  was #D6C06D (1.66:1)  ->  #5C4300 (8.6:1)            */
.service a.btn.btn-ongc { color: #5C4300 !important; border-color: #5C4300 !important; }
.service a.btn.btn-ongc:hover,
.service a.btn.btn-ongc:focus { color: #fff !important; background: #5C4300 !important; }

/* "View all posts on X →"  was #ED8134 (2.70:1)  ->  #A84A00 (5.6:1)        */
a.nise-x-follow { color: #A84A00; }

/* Footer headings (new h2.h3) – were rendering black on #131313 (1.13:1)   */
.copyright2 h2.h3 { color: #fff; font-size: 17px; font-weight: 400; line-height: 27px; margin: 5px 0 8px; display: inline-block;border-bottom: 2px solid #f6d03f; }
.copyright2 .footer-follow { font-size: 14px; color: #fff; margin: 10px 0 4px; }
.footer-socials .icon-x { vertical-align: -2px; }
button.mobilebtmNav { background: none; border: 0; padding: 0; color: inherit; }

/* Events / What's New boxes */
.overflow-h small         { color:#555; }
.overflow-h a.sectiontype { color:#0B5490; }
.service a.btn.btn-ongc   { color:#5C4300; border-color:#5C4300; }

/* X feed link */
a.nise-x-follow { color:#A84A00; }
.footer-socials .icon-x { vertical-align: -2px; }

/* Logo strip pause button */
.logo-slider { position: relative; }
.logo-track { margin: 0; padding: 0; }
.logo-pause { position: absolute; right: 0; top: 0; z-index: 2;
              background: #0B4F9C; color: #fff; border: 0; padding: 2px 10px; font-size: 12px; }
.logo-pause:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.logo-slider:hover .logo-track { animation-play-state: paused; }


/* ---------- DARK MODE (body.dark-mode) ---------- */

/* top bar on dark background */
body.dark-mode .loginbar a,
body.dark-mode .loginbar .language-toggle { color: #9CCBFF !important; }

/* meta text: #999 on #3B3B3B (3.93:1)  ->  #D0D0D0 (8.9:1) */
body.dark-mode .overflow-h small { color: #D0D0D0; }
body.dark-mode .overflow-h a.sectiontype { color: #9CCBFF; }
body.dark-mode .service a.btn.btn-ongc { color: #F2D98A !important; border-color: #F2D98A !important; }
body.dark-mode a.nise-x-follow { color: #FFB27A; }

/* Corporate film box: white text on light #E3F1FC (1.15:1) -> dark box */
body.dark-mode .service3 { background: #1E2A36 !important; }
body.dark-mode .service3,
body.dark-mode .service3 h2,
body.dark-mode .service3 p { color: #fff; }

/* Copyright bar: white text on #EEE (1.16:1) -> dark bar */
body.dark-mode .copyright { background: #1A1A1A !important; }
body.dark-mode .copyright p,
body.dark-mode .last-updated { color: #E0E0E0 !important; }

/* Logo strip background + pause button */
body.dark-mode .logo-pause { background: #9CCBFF; color: #000; }


/* =====================================================================
   Round 3 – slider controls, search, sitemap
   ===================================================================== */

/* Slider buttons (points 10, 16) */
.tp-banner-container { position: relative; }
.slider-controls { position: absolute; right: 12px; bottom: 12px; z-index: 30; display: flex; gap: 6px; }
.sl-btn { background: rgba(0,0,0,.75); color: #fff; border: 2px solid #fff; width: 38px; height: 38px;
          font-size: 18px; line-height: 1; border-radius: 4px; cursor: pointer; }
.sl-btn:hover { background: #0B4F9C; }
.sl-btn:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.tp-caption { text-shadow: 0 1px 4px rgba(0,0,0,.95); }

/* Scrollable Events / What's New boxes are now focusable – show it */
.service [role="region"]:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 2px; }

/* Search results */
.ui-autocomplete .search-tag { color: #555; font-size: 12px; }
.ui-autocomplete .ui-state-disabled { opacity: 1; color: #333; }
.ui-menu-item .ui-state-active { color: #000 !important; }   /* was white on #CCD8E2 (1.5:1) */

/* Sitemap page */
.sitemap .sitemap-tree { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.sitemap .sitemap-tree ul { list-style: circle; padding-left: 20px; }
.sitemap .sitemap-group { font-weight: 600; }
body.dark-mode .sitemap a { color: #9CCBFF; }
