/* main.css - Main stylesheet for GB Revenue Board */
:root {
  /* Official GB Colors */
  --gb-blue: #0066CC;
  --gb-green: #00A651;
  --gb-dark: #003366;
  --gb-light: #F0F8FF;
  --gb-gold: #FFD700;
  --gb-red: #CC3333;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #E9ECEF;
  --dark-gray: #495057;
  --black: #212529;
  
  /* Typography */
  --urdu-font: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --english-font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Borders */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--english-font);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--light-gray);
  direction: ltr;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--gb-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--gb-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gb-dark);
  text-decoration: underline;
}

/* Urdu Text */
.urdu-text {
  font-family: var(--urdu-font);
  direction: rtl;
  text-align: right;
  line-height: 2;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.bg-primary { background-color: var(--gb-blue) !important; }
.bg-secondary { background-color: var(--gb-green) !important; }
.bg-light { background-color: var(--light-gray) !important; }
.bg-dark { background-color: var(--gb-dark) !important; }

.text-primary { color: var(--gb-blue) !important; }
.text-secondary { color: var(--gb-green) !important; }
.text-white { color: var(--white) !important; }
.text-dark { color: var(--gb-dark) !important; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--gb-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gb-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--gb-green);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #008040;
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--gb-blue);
  color: var(--gb-blue);
}

.btn-outline:hover {
  background-color: var(--gb-blue);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Header Styles */
.gov-header {
  background-color: var(--white);
  border-bottom: 4px solid var(--gb-blue);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--gb-dark);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emergency-alert {
  background-color: var(--gb-red);
  color: var(--white);
  padding: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.main-header {
  padding: var(--spacing-sm) 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  height: 70px;
  width: auto;
}

.site-title h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--gb-dark);
}

.site-title p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* Navigation */
.main-nav {
  background-color: var(--gb-blue);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--medium-gray);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  color: var(--gb-blue);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

/* Search Box */
.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: 50px;
  font-size: 0.9rem;
}

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gb-blue);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--gb-blue) 0%, var(--gb-dark) 100%);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Service Cards */
.services-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gb-green);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--medium-gray);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gb-blue);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gb-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--gb-blue);
  font-size: 1.5rem;
}

.service-card h3 {
  color: var(--gb-dark);
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
}

/* Quick Links */
.quick-links {
  background-color: var(--gb-light);
  padding: var(--spacing-lg) 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.quick-link-item {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.quick-link-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quick-link-item i {
  font-size: 1.5rem;
  color: var(--gb-blue);
  margin-bottom: var(--spacing-sm);
}

/* Notifications */
.notifications-section {
  padding: var(--spacing-xl) 0;
}

.notification-card {
  background: var(--white);
  border-left: 4px solid var(--gb-green);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.notification-card.urgent {
  border-left-color: var(--gb-red);
}

.notification-date {
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

/* Forms */
.form-section {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-xl) auto;
  max-width: 800px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gb-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gb-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: var(--white);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
}

.data-table th {
  background-color: var(--gb-blue);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 500;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.data-table tr:hover {
  background-color: var(--gb-light);
}




.news-section {
    background: #f4f7fb;
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: gray;
}

.btn-outline {
    border: 1px solid #003366;
    color: #003366;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.btn-outline:hover {
    background: #003366;
    color: white;
}


/* Footer */
.main-footer {
  background-color: var(--gb-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-info i {
  margin-top: 0.25rem;
  color: var(--gb-green);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .search-box {
    width: 250px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--gb-dark);
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-md);
    transition: right 0.3s ease;
    z-index: 1001;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: var(--spacing-md);
  }
  
  .search-box {
    width: 100%;
    margin-top: var(--spacing-md);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    margin-bottom: var(--spacing-lg);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  .service-card,
  .notification-card {
    break-inside: avoid;
    border: 1px solid #000;
  }
}