/*
Theme Name: Jano Seba Kendra (JSK) Theme
Theme URI: https://janoseba.org
Author: Senior WordPress Architect
Author URI: https://janoseba.org
Description: Custom, high-performance, secure WordPress theme for Jano Seba Kendra (JSK) NGO Healthcare & Community Welfare. Fully integrated with Revolution Slider, Wamy Team Manager, Interactive Bangladesh 64 Districts Map, Multilingual (EN/BN), Yoast SEO Premium, and Elementor.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jsk-theme
Tags: ngo, healthcare, relief, custom-logo, custom-menu, featured-images, translation-ready, elementor, responsive-layout

--------------------------------------------------------------
TABLE OF CONTENTS:
1. CSS Variables & Theme Tokens
2. Base Reset & Typography
3. Header & Top Title Bar
4. Navigation & Dropdowns
5. Hero Section & Revolution Slider
6. Interactive Bangladesh Map (64 Districts)
7. Team Grid (Wamy Team Manager Custom Layout)
8. Programs & Causes Grid
9. Calculator & Interactive Modules
10. Gallery & Lightbox Styles
11. Footer & Bottom Bar
12. Forms & Buttons
13. Security & Accessibility Focus States
14. Responsive Media Queries
-------------------------------------------------------------- */

:root {
  --brand-cyan: #00a3e8;
  --brand-sky: #29b6f6;
  --brand-deep-blue: #005f9e;
  --brand-dark-blue: #003a66;
  --brand-light-blue: #e1f5fe;
  --brand-charcoal: #4a4a4a;
  --brand-heading: #2c3e50;
  --brand-muted: #7f8c8d;
  --brand-gold: #c59b27;
  --brand-gold-light: #f4e8c1;
  --brand-green: #00875a;
  --brand-red: #e74c3c;
  --font-sans: 'Plus Jakarta Sans', 'Inter', 'Hind Siliguri', sans-serif;
  --font-bengali: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Georgia', serif;
  --container-max: 1440px;
}

/* Global Reset & Base Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #475569;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hind Siliguri Bengali Font Typography */
:lang(bn),
[lang="bn"],
[lang="bn-BD"],
html[lang*="bn"] body,
body.bn-lang,
.font-bengali,
.bengali-text,
.bn-text {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif !important;
}

/* Amiri Quranic Arabic Typography */
:lang(ar),
[lang="ar"],
.font-arabic,
.arabic-text {
  font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif !important;
}

a {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--brand-deep-blue);
}

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

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--brand-dark-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 99999;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}


/* Helper Utilities & Full Width Layout */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

#primary-content, header, footer, main {
  width: 100% !important;
  max-width: 100% !important;
}

.container,
.max-w-\[1440px\] {
  max-width: 96% !important;
  width: 96% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

@media (min-width: 768px) {
  .container,
  .max-w-\[1440px\] {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* WordPress Dynamic Navigation & Hover Sub-Menu Dropdowns */
.menu-primary-navigation-container > ul,
ul.menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

li.menu-item {
  position: relative;
}

li.menu-item > a {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.15s ease;
  text-decoration: none;
}

li.menu-item > a:hover {
  color: var(--brand-cyan);
}

li.menu-item-has-children:hover > .sub-menu,
li.menu-item-has-children:hover > ul.sub-menu,
li.group:hover > .sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

ul.sub-menu,
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: #ffffff !important;
  color: #1e293b !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.25), 0 10px 15px -5px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0.5rem 0 !important;
  margin: 0;
  list-style: none;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

ul.sub-menu li,
.sub-menu li {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #f1f5f9;
}

ul.sub-menu li:last-child,
.sub-menu li:last-child {
  border-bottom: none;
}

ul.sub-menu li a,
.sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.875rem !important;
  padding: 0.75rem 1.25rem !important;
  color: #334155 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
  background: transparent;
  text-decoration: none !important;
}

ul.sub-menu li a i,
.sub-menu li a i {
  margin-right: 0.75rem !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

ul.sub-menu li a:hover,
.sub-menu li a:hover {
  background-color: #f0f9ff !important;
  color: #005f9e !important;
  padding-left: 1.5rem !important;
}

/* ==============================================================
   14. MOBILE-FIRST FOUNDATIONS & TOUCH ERGONOMICS (HIGH PRIORITY)
   ============================================================== */

/* Zero horizontal spillover guard across all mobile viewports */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Hero Slider Mobile Fluid Typography */
@media (max-width: 640px) {
  .slide-layer {
    max-width: 100% !important;
    word-break: break-word !important;
  }
  
  /* Auto-scale hero main titles on small phone screens (360px - 414px) */
  .slide-layer[style*="font-size: 36px"],
  .slide-layer[style*="font-size:36px"],
  .slide-layer[style*="font-size: 38px"],
  .slide-layer[style*="font-size: 40px"] {
    font-size: clamp(20px, 5.8vw, 26px) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
  }

  /* Subtitles scaled down smoothly so image remains visible */
  .slide-layer[style*="font-size: 14px"],
  .slide-layer[style*="font-size:14px"],
  .slide-layer[style*="font-size: 15px"] {
    font-size: 12px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    opacity: 0.95 !important;
  }

  /* Compact button styling on mobile */
  .slide-layer .rev-btn,
  .slide-layer button,
  .slide-layer a.inline-flex {
    font-size: 12px !important;
    padding: 0.6rem 1.25rem !important;
  }
}

/* Mobile Drawer Touch Targets (Min 44px Accessible Hitbox) */
@media (max-width: 1023px) {
  #mobile-menu-drawer a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    transition: background 0.15s ease;
  }
  
  #mobile-menu-drawer a:active,
  #mobile-menu-drawer a:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  /* Mobile buttons & tap feedback */
  button, a.button {
    touch-action: manipulation;
  }
}

/* ==============================================================
   15. UNIVERSAL BILINGUAL (EN-BN) SWITCHER & TRANSLATE SUPPRESSION
   ============================================================== */

/* Language Switcher Pill */
.theme-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  line-height: 1.2;
  text-decoration: none;
  user-select: none;
}

.theme-lang-switcher:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #00a3e8;
  color: #00a3e8;
  transform: translateY(-1px);
}

.theme-lang-switcher svg,
.theme-lang-switcher .theme-lang-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Suppress Google Translate Tooltips, Banners and Header Overlays */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.skiptranslate {
  display: none !important;
}


