/* ============================================
   Indian Bank HR Connect Login - HRMS Portals
   Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --primary-dark: #0f2440;
  --accent: #e53e3e;
  --accent-light: #fc8181;
  --gold: #d69e2e;
  --gold-light: #f6e05e;
  --bg: #f7fafc;
  --bg-warm: #fffbf0;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green: #059669;
  --green-light: #d1fae5;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --red: #dc2626;
  --red-light: #fee2e2;
  --orange: #ea580c;
  --orange-light: #ffedd5;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo:hover {
  color: var(--gold-light);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  list-style: none;
  font-size: 0.8125rem;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 8px;
  color: var(--gray-400);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb li:last-child {
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-600);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.category-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.meta-date {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

.meta-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(5,150,105,0.2);
  color: #6ee7b7;
  border: 1px solid rgba(5,150,105,0.3);
}

.badge-blue {
  background: rgba(37,99,235,0.2);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.3);
}

/* ============================================
   Main Content Grid
   ============================================ */
.main-content {
  padding: 40px 0 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ============================================
   Article Body
   ============================================ */
.article-body {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  line-height: 1.35;
}

.article-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-body h3 {
  font-size: 1.125rem;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.article-body p strong {
  color: var(--gray-900);
}

.lead-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

/* ============================================
   Verification & Disclaimer Boxes
   ============================================ */
.verification-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--gray-700);
}

.verification-box a {
  color: var(--green);
  font-weight: 500;
}

.disclaimer-box {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 14px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8125rem;
  margin-bottom: 28px;
  color: var(--gray-600);
}

/* ============================================
   Quick Reference Box
   ============================================ */
.quick-ref-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
}

.quick-ref-title {
  font-family: var(--font-sans) !important;
  font-size: 1.25rem !important;
  color: var(--primary-dark) !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.quick-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ref-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ref-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}

.ref-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-900);
}

.ref-value.link {
  color: var(--blue);
  font-weight: 600;
  word-break: break-all;
}

/* ============================================
   Steps Box
   ============================================ */
.steps-box {
  margin: 24px 0;
}

.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content h3 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ============================================
   Callout Box
   ============================================ */
.callout-box {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.callout-warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: var(--gray-800);
}

.callout-warning strong {
  color: #92400e;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.feature-card h3 {
  margin-top: 0 !important;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8125rem;
  margin-bottom: 0;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ============================================
   Table
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background: var(--primary-dark);
  color: var(--white);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.check-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

.check-no {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   Numbered List
   ============================================ */
.numbered-list {
  margin: 16px 0;
  padding-left: 20px;
}

.numbered-list li {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
}

.numbered-list li strong {
  color: var(--gray-900);
}

/* ============================================
   Troubleshooting Items
   ============================================ */
.trouble-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.trouble-item h3 {
  margin-top: 0 !important;
  color: var(--accent) !important;
  font-size: 1rem;
}

.trouble-item p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ============================================
   Contact Box
   ============================================ */
.contact-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.contact-box h2 {
  color: var(--white) !important;
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  font-size: 1.25rem !important;
  margin-bottom: 20px !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
}

.contact-value a {
  color: var(--gold-light);
}

.contact-value a:hover {
  color: var(--white);
}

.contact-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ============================================
   Sources Box
   ============================================ */
.sources-box {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--gray-200);
}

.sources-box h2 {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  font-size: 1.25rem !important;
}

.source-list {
  padding-left: 20px;
}

.source-list li {
  font-size: 0.8125rem;
  margin-bottom: 8px;
  line-height: 1.55;
  color: var(--gray-600);
}

.source-list a {
  color: var(--blue);
  word-break: break-all;
}

/* ============================================
   Editor Notes (Visual distinction)
   ============================================ */
.editor-notes {
  margin-top: 40px;
  padding: 24px;
  background: repeating-linear-gradient(
    -45deg,
    #fef3c7,
    #fef3c7 10px,
    #fef9e7 10px,
    #fef9e7 20px
  );
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
}

.editor-notes h2 {
  color: var(--orange) !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.editor-notes h3 {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.editor-notes ol, .editor-notes ul {
  padding-left: 20px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.editor-notes li {
  margin-bottom: 6px;
}

.editor-notes p {
  font-size: 0.8125rem;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 0.9375rem;
  color: var(--gray-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}

/* TOC */
.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 2px;
}

.toc-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
}

.toc-list a:hover {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

/* CTA Widget */
.cta-widget p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.cta-button {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
  margin-bottom: 8px;
}

.cta-button:first-of-type {
  background: var(--primary);
  color: var(--white);
}

.cta-button:first-of-type:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.cta-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.cta-secondary:hover {
  background: var(--gray-200);
  color: var(--gray-900);
  text-decoration: none;
}

/* Info Widget */
.info-list {
  list-style: none;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list strong {
  color: var(--gray-800);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

/* Related Widget */
.related-list {
  list-style: none;
}

.related-list li {
  margin-bottom: 4px;
}

.related-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}

.related-list a:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--primary);
  text-decoration: none;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.8125rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .quick-ref-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 1.625rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-body {
    padding: 24px 20px;
    border-radius: var(--radius);
  }

  .quick-ref-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .step {
    gap: 14px;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero-section {
    padding: 32px 0 40px;
  }

  .hero-content h1 {
    font-size: 1.375rem;
  }

  .article-body {
    padding: 20px 16px;
  }

  .article-body h2 {
    font-size: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th, .data-table td {
    padding: 8px 10px;
  }
}

/* ============================================
   Smooth scroll offset for sticky header
   ============================================ */
[id] {
  scroll-margin-top: 80px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  .site-header, .sidebar, .site-footer, .breadcrumb-bar, .editor-notes, .mobile-toggle {
    display: none !important;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .hero-section {
    background: none;
    color: var(--gray-900);
    padding: 20px 0;
  }

  body {
    font-size: 12pt;
  }
}
