/*
Theme Name: W-B Bengal Portal
Theme URI: https://w-b.co.in
Author: W-B.co.in Development Team
Author URI: https://w-b.co.in/about
Description: Exact official theme for W-B.co.in — West Bengal News, Government Jobs, Education, Exams, and District Portal. Built with high-performance responsive CSS, pixel-perfect desktop and mobile phone layouts, accessible typography, and SEO-optimized markup.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wb-bengal-portal
Tags: news, blog, education, jobs, two-columns, custom-header, custom-menu, featured-images, responsive-layout, translation-ready, full-width-template
*/

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --wb-navy-dark: #0b2347;
  --wb-navy-primary: #0c3974;
  --wb-navy-light: #164e9e;
  --wb-red-accent: #dc2626;
  --wb-red-hover: #b91c1c;
  --wb-bg-light: #f8fafc;
  --wb-card-bg: #ffffff;
  --wb-text-main: #0f172a;
  --wb-text-muted: #64748b;
  --wb-border-color: #e2e8f0;
  --wb-blue-soft: #eff6ff;
  --wb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --wb-radius-sm: 6px;
  --wb-radius-md: 10px;
  --wb-radius-lg: 14px;
  --wb-shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.08), 0 1px 3px -1px rgba(15, 23, 42, 0.06);
  --wb-shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

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

body {
  font-family: var(--wb-font-sans);
  background-color: var(--wb-bg-light);
  color: var(--wb-text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.wb-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Top Utility Bar */
.wb-top-bar {
  background-color: var(--wb-navy-dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wb-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wb-top-bar-left, .wb-top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wb-top-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}
.wb-top-bar a:hover {
  color: #ffffff;
}

/* Site Header */
.wb-site-header {
  background-color: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--wb-border-color);
}
.wb-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.wb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wb-logo-icon {
  width: 36px;
  height: 48px;
  color: var(--wb-red-accent);
}
.wb-brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--wb-navy-dark);
  line-height: 1;
}
.wb-brand-title span {
  color: var(--wb-navy-dark);
}
.wb-brand-tagline {
  font-size: 12px;
  color: var(--wb-text-muted);
  font-weight: 500;
  margin-top: 4px;
}
.wb-brand-tagline .highlight {
  color: var(--wb-red-accent);
  font-weight: 700;
}

/* Search Bar */
.wb-header-search {
  flex: 1;
  max-width: 480px;
}
.wb-search-form {
  position: relative;
  display: flex;
}
.wb-search-input {
  width: 100%;
  padding: 10px 48px 10px 18px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}
.wb-search-input:focus {
  border-color: var(--wb-navy-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 57, 116, 0.12);
}
.wb-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 36px;
  border-radius: 50%;
  background-color: var(--wb-navy-primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.wb-search-btn:hover {
  background-color: var(--wb-navy-dark);
}

/* Header Badge */
.wb-header-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px dashed var(--wb-border-color);
}
.wb-pride-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--wb-navy-primary);
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}
.wb-bridge-art {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

/* Primary Navigation */
.wb-main-nav {
  background-color: var(--wb-navy-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.wb-nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
.wb-nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.15s ease;
}
.wb-nav-item a:hover,
.wb-nav-item.current-menu-item a {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Section Headers */
.wb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-top: 8px;
}
.wb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--wb-navy-dark);
  letter-spacing: -0.3px;
}
.wb-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--wb-red-accent);
  border-radius: 2px;
}
.wb-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--wb-navy-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.wb-view-all:hover {
  text-decoration: underline;
  color: var(--wb-red-accent);
}

/* Cards & Responsive Layout */
.wb-featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.wb-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.wb-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.wb-districts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Mobile Responsive Media Queries */
@media (max-width: 1024px) {
  .wb-featured-grid {
    grid-template-columns: 1fr;
  }
  .wb-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wb-header-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .wb-top-bar {
    display: none;
  }
  .wb-site-header {
    padding: 12px 0;
  }
  .wb-header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
  }
  .wb-header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .wb-main-nav {
    display: none; /* Controlled by mobile menu toggle */
  }
  .wb-latest-grid,
  .wb-categories-grid,
  .wb-districts-grid {
    grid-template-columns: 1fr;
  }
  .wb-mobile-nav-toggle {
    display: block !important;
  }
}
