/*
Theme Name: DICPDK Theme
Theme URI: https://dicpdk.in
Author: LightShield SIEM
Author URI: https://lightshieldsiem.in
Description: Official WordPress theme for District Industries Centre, Pudukkottai — Government of Tamil Nadu. GIGW 3.0 compliant, bilingual (English + Tamil), fully accessible.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dicpdk
Tags: government, bilingual, accessible, gigw, tamil-nadu
*/

/* ========================================
   1. CSS VARIABLES & RESET
   ======================================== */
:root {
  --navy: #0C2340;
  --navy-light: #1B3A5C;
  --gold: #C5960C;
  --gold-light: #E8B810;
  --saffron: #FF9933;
  --white: #FFFFFF;
  --green: #138808;
  --bg-light: #F5F6FA;
  --bg-header: #E8EEF4;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #D0D0D0;
  --red: #DC2626;
  --success: #16A34A;
  --font-size-base: 16px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Tamil text global enhancement */
[class*="-ta"],
[class*="_ta"],
.hero-tamil,
.heading-ta,
.link-ta {
  font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ========================================
   2. LAYOUT
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--light {
  background: var(--bg-light);
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p {
  margin-bottom: 16px;
}

.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: 13px;
}

.text-center {
  text-align: center;
}

/* ========================================
   4. TRICOLOR BANDS
   ======================================== */
.tricolor-top,
.tricolor-bottom {
  display: flex;
  height: 3px;
}

.tricolor-top .saffron,
.tricolor-bottom .saffron {
  flex: 1;
  background: var(--saffron);
}

.tricolor-top .white,
.tricolor-bottom .white {
  flex: 1;
  background: var(--white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.tricolor-top .green,
.tricolor-bottom .green {
  flex: 1;
  background: var(--green);
}

/* ========================================
   5. SKIP TO CONTENT
   ======================================== */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  color: var(--white);
}

/* ========================================
   6. ACCESSIBILITY TOOLBAR
   ======================================== */
.accessibility-bar {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 13px;
}

.accessibility-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.font-controls {
  display: flex;
  gap: 4px;
}

.font-controls button,
.accessibility-bar button {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 3px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.font-controls button:hover,
.accessibility-bar button:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.font-controls button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.lang-label {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 500;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  background: var(--white);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.lang-switch a:hover {
  background: var(--navy);
  color: var(--white);
}

.lang-switch .current-lang {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========================================
   7. GOVERNMENT IDENTITY BAR
   ======================================== */
.govt-bar {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 2px solid var(--gold);
}

.govt-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.govt-emblem {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.govt-text,
.govt-text-ta {
  display: flex;
  flex-direction: column;
}

.govt-text .dept-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.govt-text .dept-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.govt-text .office-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.govt-text-ta {
  margin-left: auto;
  text-align: right;
}

.govt-text-ta .dept-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.govt-text-ta .dept-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.govt-text-ta .office-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ========================================
   8. NAVIGATION
   ======================================== */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  background: var(--navy-light);
  color: var(--gold-light);
}

.nav-search-btn {
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  background: none;
  border: none;
}

.nav-search-btn:hover {
  background: var(--navy-light);
  color: var(--gold-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  padding: 14px 16px;
  color: var(--white);
  font-size: 20px;
  background: none;
  border: none;
}

/* Search Overlay */
.nav-search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-light);
  padding: 16px;
  z-index: 999;
}

.nav-search-overlay.active {
  display: block;
}

.nav-search-overlay form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.nav-search-overlay input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-family: inherit;
}

.nav-search-overlay button[type="submit"] {
  padding: 10px 20px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  font-weight: 600;
}

/* ========================================
   9. BREADCRUMBS
   ======================================== */
.breadcrumbs {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
  color: var(--navy);
}

.breadcrumbs a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--text-muted);
}

/* ========================================
   10. HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none" width="60" height="60"/><path d="M0 30h60M30 0v60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 8px;
}

.hero .hero-subtitle {
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 400;
}

.hero .hero-tamil {
  margin-top: 16px;
}

.hero .hero-tamil h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero .hero-tamil p {
  color: var(--gold-light);
  font-size: 18px;
}

.hero .btn-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.hero .btn-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* ========================================
   11. STATS STRIP
   ======================================== */
.stats-strip {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.stat-card .stat-label-ta {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

/* ========================================
   12. NEWS TICKER
   ======================================== */
.news-ticker {
  background: var(--navy);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--gold);
  color: var(--white);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  z-index: 2;
  white-space: nowrap;
}

.ticker-wrap {
  margin-left: 120px;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  color: var(--white);
  font-size: 14px;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-content .ticker-item {
  display: inline;
  padding: 0 48px 0 0;
}

.ticker-content .ticker-separator {
  color: var(--gold);
  margin: 0 16px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========================================
   13. CARDS
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy);
}

.card .card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.card .card-title-ta {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

.card .card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card .card-desc-ta {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

/* Scheme Cards */
.scheme-card {
  text-align: left;
  position: relative;
}

.scheme-card .scheme-subsidy {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--success);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* Quick Service Cards */
.quick-service-card {
  border-top: 3px solid var(--gold);
}

/* ========================================
   14. BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn i {
  margin-right: 6px;
}

/* ========================================
   15. TABLES
   ======================================== */
.data-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.data-table thead {
  background: var(--navy);
  color: var(--white);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.data-table tbody tr:hover {
  background: #e8eef4;
}

.badge-coming-soon {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

/* ========================================
   16. FORMS
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Contact Form 7 overrides */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.wpcf7 input[type="submit"] {
  background: var(--navy);
  color: var(--white);
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--gold);
}

/* ========================================
   17. PAGE HEADER
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 4px;
}

.page-header .page-header-ta {
  font-size: 22px;
  color: var(--gold-light);
  font-weight: 600;
}

.page-header .page-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

/* ========================================
   18. TWO-COLUMN LAYOUT
   ======================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.two-col--wide-left {
  grid-template-columns: 2fr 1fr;
}

.two-col--wide-right {
  grid-template-columns: 1fr 2fr;
}

/* ========================================
   19. FOOTER
   ======================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: var(--gold-light);
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-col ul li a i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.footer-col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col .contact-item i {
  color: var(--gold);
  margin-top: 4px;
  width: 16px;
  text-align: center;
}

/* Policy Links */
.footer-policies {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
  text-align: center;
}

.footer-policies a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin: 0 12px;
  transition: color 0.2s ease;
}

.footer-policies a:hover {
  color: var(--gold-light);
}

.footer-policies .sep {
  color: rgba(255,255,255,0.3);
}

/* Copyright Bar */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 14px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: var(--gold-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom .sep {
  color: rgba(255,255,255,0.3);
  margin: 0 4px;
}

/* ========================================
   20. GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  font-size: 14px;
  padding: 24px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gallery-placeholder i {
  font-size: 32px;
  color: rgba(255,255,255,0.4);
}

.gallery-placeholder .en {
  font-size: 14px;
}

.gallery-placeholder .ta {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ========================================
   21. MAPS
   ======================================== */
.map-container {
  margin-bottom: 32px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.district-map-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.district-map-wrap img {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ========================================
   22. LINKS PAGE
   ======================================== */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
}

.link-card .link-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

.link-card .link-info {
  flex: 1;
}

.link-card .link-info h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.link-card .link-info .link-ta {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 4px;
}

.link-card .link-info p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========================================
   23. CONTACT PAGE
   ======================================== */
.contact-details {
  background: var(--bg-light);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-details h3 {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.contact-detail-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.contact-detail-item i {
  color: var(--navy);
  width: 20px;
  text-align: center;
  margin-top: 3px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ========================================
   24. DOWNLOADS PAGE
   ======================================== */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: var(--gold);
  color: var(--white);
}

.download-btn.disabled {
  background: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================
   25. SCHEMES PAGE
   ======================================== */
.schemes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scheme-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scheme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.scheme-card .scheme-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.scheme-card .scheme-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.scheme-card .scheme-name-ta {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.scheme-card .scheme-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.scheme-card .scheme-desc-ta {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ========================================
   26. SITEMAP PAGE
   ======================================== */
.sitemap-list {
  columns: 2;
  column-gap: 48px;
}

.sitemap-list li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.sitemap-list li a {
  font-size: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-list li a:hover {
  color: var(--gold);
}

.sitemap-list li a i {
  font-size: 12px;
  color: var(--gold);
}

/* ========================================
   27. 404 PAGE
   ======================================== */
.page-404 {
  text-align: center;
  padding: 80px 0;
}

.page-404 .error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h1 {
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ========================================
   28. SEARCH RESULTS
   ======================================== */
.search-results-header {
  margin-bottom: 32px;
}

.search-result-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.search-result-item h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.search-result-item h2 a {
  color: var(--navy);
}

.search-result-item h2 a:hover {
  color: var(--gold);
}

.search-result-item .excerpt {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   29. LAST UPDATED
   ======================================== */
.last-updated {
  text-align: right;
  font-size: 12px;
  color: var(--text-light);
  padding: 8px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

/* ========================================
   30. SECTION HEADINGS
   ======================================== */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-heading .heading-ta {
  font-size: 19px;
  color: var(--text-dark);
  font-weight: 500;
  margin-top: 4px;
}

/* ========================================
   31. INDUSTRY CARDS
   ======================================== */
.industry-category {
  margin-bottom: 48px;
}

.industry-category h3 {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ========================================
   32. HIGH CONTRAST MODE
   ======================================== */
/* --- HIGH CONTRAST MODE (GIGW / WCAG AAA) --- */
body.high-contrast {
  background: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast * {
  border-color: #666 !important;
}

body.high-contrast a {
  color: #FFD700 !important;
  text-decoration: underline !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast p,
body.high-contrast li,
body.high-contrast span,
body.high-contrast td,
body.high-contrast th,
body.high-contrast label,
body.high-contrast .text-muted,
body.high-contrast .text-light {
  color: #FFFFFF !important;
}

/* Tricolor band — keep visible */
body.high-contrast .tricolor-top,
body.high-contrast .tricolor-bottom {
  opacity: 1 !important;
}

/* Accessibility toolbar */
body.high-contrast .accessibility-bar {
  background: #1a1a1a !important;
}

body.high-contrast .font-controls button,
body.high-contrast .accessibility-bar button {
  background: #333 !important;
  border: 2px solid #FFD700 !important;
  color: #FFFFFF !important;
}

body.high-contrast .font-controls button.active {
  background: #FFD700 !important;
  color: #000000 !important;
}

/* Government bar */
body.high-contrast .govt-bar {
  background: #000000 !important;
}

body.high-contrast .govt-bar .govt-text .dept-name,
body.high-contrast .govt-bar .govt-text .dept-sub,
body.high-contrast .govt-bar .govt-text .office-name,
body.high-contrast .govt-bar .govt-text-ta .dept-name,
body.high-contrast .govt-bar .govt-text-ta .dept-sub,
body.high-contrast .govt-bar .govt-text-ta .office-name {
  color: #FFFFFF !important;
}

/* Navigation */
body.high-contrast .site-nav {
  background: #1a1a1a !important;
}

body.high-contrast .site-nav .nav-menu li a {
  color: #FFD700 !important;
}

body.high-contrast .site-nav .nav-menu li.current-menu-item a,
body.high-contrast .site-nav .nav-menu li a:hover {
  background: #FFD700 !important;
  color: #000000 !important;
}

/* Hero section */
body.high-contrast .hero {
  background: #000000 !important;
}

body.high-contrast .hero h1,
body.high-contrast .hero h2 {
  color: #FFFFFF !important;
}

body.high-contrast .hero .hero-subtitle,
body.high-contrast .hero .hero-tamil p {
  color: #ccc !important;
}

body.high-contrast .hero .btn-cta {
  background: #FFD700 !important;
  color: #000000 !important;
  text-decoration: none !important;
}

/* Stats strip */
body.high-contrast .stats-strip {
  background: #1a1a1a !important;
}

body.high-contrast .stat-card {
  background: #1a1a1a !important;
  border: 2px solid #555 !important;
}

body.high-contrast .stat-card .stat-number {
  color: #FFD700 !important;
}

body.high-contrast .stat-card .stat-label,
body.high-contrast .stat-card .stat-label-ta {
  color: #FFFFFF !important;
}

/* News ticker */
body.high-contrast .news-ticker {
  background: #1a1a1a !important;
}

body.high-contrast .ticker-label {
  background: #FFD700 !important;
  color: #000000 !important;
}

body.high-contrast .ticker-content {
  color: #FFFFFF !important;
}

/* Breadcrumbs */
body.high-contrast .breadcrumbs {
  background: #1a1a1a !important;
}

body.high-contrast .breadcrumbs a {
  color: #FFD700 !important;
}

body.high-contrast .breadcrumbs .current {
  color: #FFFFFF !important;
}

/* Page header */
body.high-contrast .page-header {
  background: #000000 !important;
}

body.high-contrast .page-header .page-header-ta {
  color: #ccc !important;
}

/* Sections */
body.high-contrast .section,
body.high-contrast .section--light {
  background: #000000 !important;
}

body.high-contrast .bg-light,
body.high-contrast .bg-header {
  background: #111 !important;
}

/* Cards */
body.high-contrast .card,
body.high-contrast .contact-details,
body.high-contrast .contact-form-wrap,
body.high-contrast .scheme-card {
  background: #1a1a1a !important;
  border: 2px solid #555 !important;
  color: #FFFFFF !important;
}

body.high-contrast .card .card-title,
body.high-contrast .card .card-title-ta,
body.high-contrast .scheme-card .scheme-name,
body.high-contrast .scheme-card .scheme-name-ta {
  color: #FFFFFF !important;
}

body.high-contrast .card .card-desc,
body.high-contrast .card .card-desc-ta,
body.high-contrast .scheme-card .scheme-desc,
body.high-contrast .scheme-card .scheme-desc-ta {
  color: #ccc !important;
}

body.high-contrast .scheme-subsidy {
  background: #FFD700 !important;
  color: #000000 !important;
}

body.high-contrast .btn,
body.high-contrast .btn-outline,
body.high-contrast .btn-sm {
  background: #FFD700 !important;
  color: #000000 !important;
  border-color: #FFD700 !important;
  text-decoration: none !important;
}

/* Data tables */
body.high-contrast .data-table {
  border-color: #555 !important;
}

body.high-contrast .data-table thead {
  background: #1a1a1a !important;
}

body.high-contrast .data-table th {
  color: #FFD700 !important;
  border-color: #555 !important;
}

body.high-contrast .data-table td {
  color: #FFFFFF !important;
  border-color: #555 !important;
}

body.high-contrast .data-table tbody tr:nth-child(even) {
  background: #111 !important;
}

body.high-contrast .data-table tbody tr:hover {
  background: #222 !important;
}

/* Forms */
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background: #1a1a1a !important;
  color: #FFFFFF !important;
  border: 2px solid #666 !important;
}

body.high-contrast input:focus,
body.high-contrast select:focus,
body.high-contrast textarea:focus {
  border-color: #FFD700 !important;
  outline: 2px solid #FFD700 !important;
}

/* Footer */
body.high-contrast .site-footer {
  background: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast .footer-grid h3 {
  color: #FFD700 !important;
}

body.high-contrast .footer-col p,
body.high-contrast .footer-col span,
body.high-contrast .contact-item span {
  color: #FFFFFF !important;
}

body.high-contrast .footer-col ul li a {
  color: #FFD700 !important;
}

body.high-contrast .footer-policies {
  background: #111 !important;
}

body.high-contrast .footer-policies a {
  color: #FFD700 !important;
}

body.high-contrast .footer-bottom {
  background: #000000 !important;
  color: #ccc !important;
}

body.high-contrast .footer-bottom span {
  color: #ccc !important;
}

/* Quick service cards */
body.high-contrast .quick-service-card {
  background: #1a1a1a !important;
  border: 2px solid #555 !important;
  text-decoration: none !important;
}

body.high-contrast .quick-service-card:hover {
  border-color: #FFD700 !important;
}

body.high-contrast .quick-service-card .card-icon {
  color: #FFD700 !important;
}

body.high-contrast .quick-service-card .card-icon i {
  color: #FFD700 !important;
}

/* Icons in high contrast */
body.high-contrast .fas,
body.high-contrast .fa,
body.high-contrast .far,
body.high-contrast .fab {
  color: #FFD700 !important;
}

/* Language switcher */
body.high-contrast .lang-switch a,
body.high-contrast .lang-switch .current-lang {
  color: #FFFFFF !important;
}

/* Search overlay */
body.high-contrast .nav-search-overlay {
  background: #1a1a1a !important;
}

/* Skip to content */
body.high-contrast .skip-to-content:focus {
  background: #FFD700 !important;
  color: #000000 !important;
}

/* ========================================
   33. RESPONSIVE — TABLET (1024px)
   ======================================== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .schemes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col,
  .two-col--wide-left,
  .two-col--wide-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sitemap-list {
    columns: 1;
  }
}

/* ========================================
   34. RESPONSIVE — MOBILE (768px)
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  .section {
    padding: 40px 0;
  }

  /* Accessibility bar */
  .accessibility-bar .container {
    justify-content: center;
    gap: 8px;
  }

  /* Govt bar */
  .govt-bar .container {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .govt-text-ta {
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .govt-text {
    text-align: center;
  }

  .govt-text .office-name,
  .govt-text-ta .office-name {
    font-size: 16px;
  }

  /* Navigation */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    z-index: 999;
    border-top: 1px solid var(--navy-light);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li a {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .menu-toggle {
    display: block;
  }

  /* Hero */
  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .hero-subtitle {
    font-size: 16px;
  }

  .hero .hero-tamil h2 {
    font-size: 22px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-card .stat-number {
    font-size: 24px;
  }

  /* Cards */
  .card-grid,
  .card-grid--4,
  .card-grid--2,
  .schemes-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-policies a {
    display: inline-block;
    margin: 4px 8px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 4px;
  }

  /* Ticker */
  .ticker-label {
    position: relative;
    display: block;
    text-align: center;
  }

  .ticker-wrap {
    margin-left: 0;
  }

  /* Tables */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Contact */
  .contact-details,
  .contact-form-wrap {
    padding: 24px;
  }

  /* Maps */
  .map-container iframe {
    height: 280px;
  }

  /* Page header */
  .page-header {
    padding: 32px 0;
  }

  .page-header .page-header-ta {
    font-size: 18px;
  }

  /* 404 */
  .page-404 .error-code {
    font-size: 80px;
  }
}

/* ========================================
   35. RESPONSIVE — SMALL MOBILE (480px)
   ======================================== */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .font-controls {
    gap: 2px;
  }

  .font-controls button,
  .accessibility-bar button {
    padding: 3px 8px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero .btn-cta {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ========================================
   36. UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ========================================
   37. FONT SIZE SCALING (Accessibility)
   ======================================== */
body.font-scale-sm { font-size: 14px !important; }
body.font-scale-sm h1 { font-size: 28px !important; }
body.font-scale-sm h2 { font-size: 21px !important; }
body.font-scale-sm h3 { font-size: 17px !important; }
body.font-scale-sm h4 { font-size: 16px !important; }
body.font-scale-sm p,
body.font-scale-sm li,
body.font-scale-sm td,
body.font-scale-sm a,
body.font-scale-sm span:not(.fas):not(.fa):not(.fab):not(.far) { font-size: 14px !important; }

body.font-scale-lg { font-size: 18px !important; }
body.font-scale-lg h1 { font-size: 36px !important; }
body.font-scale-lg h2 { font-size: 27px !important; }
body.font-scale-lg h3 { font-size: 22px !important; }
body.font-scale-lg h4 { font-size: 20px !important; }
body.font-scale-lg p,
body.font-scale-lg li,
body.font-scale-lg td,
body.font-scale-lg a,
body.font-scale-lg span:not(.fas):not(.fa):not(.fab):not(.far) { font-size: 18px !important; }

body.font-scale-xl { font-size: 22px !important; }
body.font-scale-xl h1 { font-size: 44px !important; }
body.font-scale-xl h2 { font-size: 33px !important; }
body.font-scale-xl h3 { font-size: 28px !important; }
body.font-scale-xl h4 { font-size: 25px !important; }
body.font-scale-xl p,
body.font-scale-xl li,
body.font-scale-xl td,
body.font-scale-xl a,
body.font-scale-xl span:not(.fas):not(.fa):not(.fab):not(.far) { font-size: 22px !important; }
