/*
Theme Name: WB Helpline
Theme URI: https://wbhelpline.in
Author: Jayanta Jana
Author URI: https://wbhelpline.in
Description: Custom WordPress theme for WB Helpline, providing guides for West Bengal and Central Government Schemes.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wbhelpline
*/


/* 
 * GovAssist India - Premium Dashboard Style UI
 * Design System and Core Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #0F4C81;
  --primary-light: #2A6A9F;
  --primary-dark: #0A365C;
  --green: #0AA64F;
  --green-hover: #088C42;
  --orange: #FF9800;
  --gerua: #FF9933;
  --gerua-hover: #E68A2E;
  
  /* Backgrounds & Surfaces */
  --bg-color: #F5F7FA;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --border-color: #E2E8F0;
  
  /* Text Colors */
  --text-main: #1E293B;
  --text-muted: #64748B;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 15px rgba(15, 76, 129, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #2563EB;
  
  --bg-color: #0F172A;
  --surface: #1E293B;
  --surface-hover: #273549;
  --border-color: #334155;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Base Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-search {
  display: flex;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 5px 15px;
  align-items: center;
  width: 300px;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px;
  width: 100%;
  color: var(--text-main);
}

.header-search i {
  color: var(--text-muted);
}

.icon-btn {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--border-color);
}

.lang-switch select {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  font-family: var(--font-family);
  font-size: 0.875rem;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.main-nav::-webkit-scrollbar {
  display: none; /* Chrome */
}

.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--surface), var(--bg-color));
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-search {
  max-width: 650px;
  margin: 0 auto 40px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 18px 50px 18px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 1.1rem;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  outline: none;
}

.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-search i {
  position: absolute;
  right: 20px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-green {
  background-color: var(--green);
  color: white;
}
.btn-green:hover {
  background-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(10, 166, 79, 0.3);
}

/* Sections */
.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-link {
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 20px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Service Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-btn {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  margin-top: auto;
}

.card:hover .card-btn {
  color: var(--primary-light);
}
.card:hover .card-btn i {
  transform: translateX(3px);
}

/* Article Cards */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--border-color);
}

.article-content {
  padding: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.badge-central {
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
}

.badge-state {
  background: rgba(10, 166, 79, 0.1);
  color: var(--green);
}

.article-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Service Detail Page */
.service-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 60px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 40px;
}

.service-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
}

.service-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}

.service-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
}

.service-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.content-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-card h3 i {
  color: var(--primary);
}

.checklist {
  list-style: none;
}
.checklist li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checklist li i {
  color: var(--green);
  margin-top: 5px;
}

/* FAQ */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-q {
  padding: 15px 20px;
  background: var(--surface-hover);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--surface);
}

.faq-item.active .faq-a {
  padding: 15px 20px;
  max-height: 500px;
}
.faq-item.active .faq-q i {
  transform: rotate(180deg);
}

/* Sidebar Quick Actions */
.quick-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--surface-hover);
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}

.action-item:hover {
  background: var(--primary);
  color: white;
}

.cta-box {
  background: linear-gradient(135deg, var(--surface), var(--surface-hover));
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  margin-top: 30px;
}

/* Footer */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Sticky Bottom Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Reading Progress Bar */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1001;
  background: transparent;
}
#progress-bar {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.1s;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 80px; /* Adjusted for mobile nav */
  right: 20px;
  background: var(--primary);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 99;
  border: none;
  box-shadow: var(--shadow-md);
}
@media(min-width: 601px) {
  #back-to-top { bottom: 30px; right: 30px; }
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
  .service-content-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .hero-search { width: 90%; }
}

@media (max-width: 600px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  /* Show Mobile Nav */
  .mobile-nav { display: block; }
  body { padding-bottom: 65px; /* space for mobile nav */ }
  
  /* Hide main nav on mobile */
  .main-nav { display: none; }
  
  .hero h2 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
}

.main-nav ul { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.main-nav ul li a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; white-space: nowrap; padding-bottom: 5px; border-bottom: 2px solid transparent; text-decoration: none; }
.main-nav ul li a:hover, .main-nav ul li.current-menu-item > a { color: var(--primary); border-bottom-color: var(--primary); }

.main-content h1, .main-content h2, .main-content h3 { color: var(--text-main); margin-top: 1.5em; margin-bottom: 0.5em; }
.main-content p { margin-bottom: 1.2em; }
.main-content ul, .main-content ol { margin-bottom: 1.2em; padding-left: 20px; }
.main-content li { margin-bottom: 0.5em; }
.main-content a { color: var(--primary); text-decoration: underline; }

.logo-icon { width: 55px !important; height: 55px !important; }
.logo-text h1 { font-size: 1.5rem !important; }
.logo-text p { font-size: 0.85rem !important; }
