/* ===================================================
   GahoiVaishya.com - Modern Royal Navy & Ice Blue Design System
   =================================================== */

:root {
  --primary-navy: #0f2b48;
  --primary-dark: #071728;
  --accent-blue: #0284c7;
  --accent-light-blue: #38bdf8;
  --sky-glow: #e0f2fe;
  --solar-gold: #d97706;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --border-accent: #bae6fd;
  --shadow-sm: 0 2px 8px rgba(15, 43, 72, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 43, 72, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 43, 72, 0.12);
  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fail-Safe Dual Language Toggle */
html[lang="hi"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-hi {
  display: none !important;
}

html:not([lang="en"]) .lang-en {
  display: none !important;
}

/* Header & Nav */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--accent-blue);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
}

.brand svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.4));
  transition: transform 0.3s ease;
}

.brand:hover svg {
  transform: rotate(15deg) scale(1.05);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--accent-light-blue);
  letter-spacing: 0.3px;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.8rem;
  align-items: center;
}

nav ul li a {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  display: inline-block;
}

nav ul li a:hover, nav ul li a.active {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--accent-light-blue);
  border-bottom: 2px solid var(--accent-light-blue);
}

/* Language Switcher Pill */
.lang-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 30px;
  padding: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.lang-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 5px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn.active-lang {
  background: linear-gradient(135deg, var(--accent-blue), #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
}

.lang-btn:hover:not(.active-lang) {
  color: #ffffff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #071728 0%, #0f2b48 60%, #1e3a5f 100%);
  color: white;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-accent);
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  max-width: 860px;
  margin: 0 auto 2rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

.btn-solar {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.45);
}

.btn-outline {
  border: 2px solid #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.btn-outline:hover {
  background: #38bdf8;
  color: #071728;
  transform: translateY(-2px);
}

/* Main Layout */
main {
  flex: 1;
  max-width: 1240px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-light-blue));
  border-radius: 4px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.6rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.card-img-header {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 1.8rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.badge-solar {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

/* Statistics */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent-blue);
  transition: transform 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
  display: block;
}

.stat-card .label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
}

/* 28 Banias Grid */
.athaisi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}

.athaisi-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #334155;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.athaisi-pill:hover {
  background: #e0f2fe;
  border-color: var(--accent-blue);
  color: #0369a1;
  transform: translateY(-2px);
}

.athaisi-pill.highlight {
  background: linear-gradient(135deg, var(--primary-navy), #1e3a5f);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(15, 43, 72, 0.25);
}

.athaisi-pill.highlight small {
  color: #38bdf8;
  font-size: 0.78rem;
  display: block;
}

/* Tables & Search */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

th {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
  color: #ffffff;
  font-weight: 700;
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

tr:hover {
  background-color: #f0f9ff;
}

.highlight-row {
  background-color: #f0fdf4 !important;
  border-left: 4px solid #16a34a;
}

.search-box-card {
  background: #ffffff;
  border: 1.5px solid var(--border-accent);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.search-bar input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 3rem auto;
  border-left: 3px solid var(--accent-blue);
  padding-left: 2rem;
}

.timeline-item {
  margin-bottom: 2.8rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.65rem;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--primary-navy);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-blue);
}

.timeline-date {
  font-weight: 800;
  color: var(--accent-blue);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

/* Forms */
.form-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 2.8rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #1e293b;
  font-size: 0.95rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
  outline: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0c1e33 100%);
  color: #f1f5f9;
  padding: 3.5rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--accent-blue);
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2.5rem;
}

.footer-col h4 {
  color: #38bdf8;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-col p, .footer-col ul li {
  font-size: 0.93rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
}

@media (max-width: 868px) {
  .nav-container {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}