/* ============================================================
   BHARTIYA HINDU PARISHAD — DESIGN SYSTEM v2.0
   Premium Institutional Website — MOBILE-FIRST
   Theme: Light | Colors: Saffron + Gold + White
   ============================================================ */

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800;900&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Primary Colors */
  --primary: #FF6B00;
  --primary-dark: #E85D00;
  --primary-darker: #CC5200;
  --primary-light: #FFF3E8;
  --primary-lighter: #FFF9F2;
  --primary-grad: linear-gradient(135deg, #FF6B00 0%, #FF8C38 50%, #FFa855 100%);
  --primary-grad-v: linear-gradient(180deg, #FF6B00 0%, #E85D00 100%);

  /* Secondary */
  --secondary: #8B1A1A;
  --secondary-light: #A62626;
  --gold: #D4A017;
  --gold-light: #F5DEB3;
  --gold-grad: linear-gradient(135deg, #D4A017 0%, #F5C518 100%);

  /* Neutrals */
  --text-dark: #1A1A1A;
  --text-body: #444444;
  --text-muted: #777777;
  --text-light: #AAAAAA;
  --white: #FFFFFF;

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-cream: #FDF8F3;
  --bg-light: #FFF8F0;
  --bg-grey: #F7F7F7;
  --bg-dark: #1A1A1A;
  --bg-footer: #111111;

  /* Effects */
  --border: #E8E0D8;
  --border-light: #F0EBE5;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.14);
  --shadow-glow: 0 4px 24px rgba(255,107,0,0.12);
  --shadow-glow-hover: 0 8px 36px rgba(255,107,0,0.22);

  /* Typography */
  --ff-hindi: 'Noto Sans Devanagari', sans-serif;
  --ff-heading: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif;
  --ff-en: 'Inter', sans-serif;

  /* Border Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 50%;
  --r-pill: 100px;

  /* Transitions */
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --gutter: 16px;
}

/* ── RESET — Mobile First ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ff-hindi);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  line-height: 1.3;
  color: var(--text-dark);
  font-weight: 700;
}

/* ── TYPOGRAPHY — Mobile base ── */
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 0.75rem; }

@media (min-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

@media (min-width: 1200px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.375rem; }
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 32px; }
}

/* ── SECTIONS ── */
.section {
  padding: 48px 0;
}

.section--cream { background: var(--bg-cream); }
.section--light { background: var(--bg-light); }
.section--grey { background: var(--bg-grey); }
.section--dark { background: var(--bg-dark); color: var(--white); }
.section--primary { background: var(--primary-grad); color: var(--white); }

@media (min-width: 768px) {
  .section { padding: 72px 0; }
}

@media (min-width: 1200px) {
  .section { padding: 96px 0; }
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header__english {
  font-family: var(--ff-en);
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-header__title {
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-header__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-grad);
  border-radius: 3px;
}

.section-header__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 48px; }
  .section-header__title { font-size: 2rem; }
  .section-header__subtitle { font-size: 1.05rem; }
  .section-header__english { font-size: 0.75rem; }
}

@media (min-width: 1200px) {
  .section-header__title { font-size: 2.25rem; }
}

/* ── GRID SYSTEM — Mobile First ── */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr; /* MOBILE: 1 column */
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 20px; }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 24px; }
}

@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 28px; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.font-en { font-family: var(--ff-en); }
.font-bold { font-weight: 700; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-scale.active { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ── SELECTION ── */
::selection { background: var(--primary); color: white; }

.footer__logo img {
  width: 120px;
 
  
}

.mainnnnn{
   color:pink; 
}

.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 12px;
}

.lang-switcher__btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-switcher__btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #d4af37;
}

.lang-switcher__dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    width: 160px;          /* FIX: fixed width, ab bada blank box nahi banega */
    max-height: 320px;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 9999;         /* FIX: header se upar rahega */
    border-top: 3px solid #d4af37;
}

.lang-switcher__dropdown.active {
    display: flex;         /* FIX: block ki jagah flex, taaki links properly stack ho */
}

.lang-switcher__dropdown a {
    display: block;
    padding: 9px 14px;
    color: #1a2b4c;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.4;      /* FIX: taaki text squeeze na ho */
    border-bottom: 1px solid #f0f0f0;
    background: #fff;      /* FIX: explicit white, taaki koi orange leak na ho */
}

.lang-switcher__dropdown a:last-child {
    border-bottom: none;
}

.lang-switcher__dropdown a:hover {
    background: #fff3e0;
    color: #ff6b00;
}
