/* ================= TOP BAR ================= */
.gp-topbar {
  background: #e5e5e5;
  color: #555;
  padding: 6px 0;
  font-size: 13px;
}

/* ================= NAVBAR ================= */
.gp-navbar {
  /* background: linear-gradient(#fff7da, #fffde7); */
      background-color: #e6d8b6;   /* jo exact navbar ka color hai wo yaha daalo */

  border-bottom: 1px solid #e6d9b8;
  
  overflow: visible;
}

/* .navbar-logo {
    height: 70px;      
    width: auto;
} */

.navbar-logo {    height: 70px;      /* height same */
    width: auto;       
    transform: scaleX(1.2);   /* width 15% badhegi */
    transform-origin: left center;
}



@media (max-width: 767px) {
  .navbar-logo {
      height: 50px;
  }
}
.gp-navbar .navbar-brand {
    background: inherit;   /* navbar ka exact same bg */
    padding: 0 15px;       /* thoda spacing */
}


/* 
.navbar-logo {
  height: 62px;          
  width: auto;
  object-fit: contain;
    background-color: #e6d8b6;
    padding: 5px;

 
   transform: scale(1.45);
  transform-origin: left center;

  position: relative;
  z-index: 10;
}
@media (min-width: 992px) {
  .navbar-logo {
    transform: scale(1.2);
  }
}

   @media (max-width: 576px) {
  .navbar-logo {
    height: 45px;
    transform: scale(1.1);
  }
} */

.gp-navbar .navbar-brand {
  background-color: #fffae1;  /* same as navbar */
  
  display: flex;
  align-items: center;
   position: relative;
  padding: 0 12px;
}





 /* .gp-navbar .navbar-brand {
  position: relative;
  padding: 0 12px;
} */


/* ================= MENU LINKS ================= */
.gp-navbar .nav-link {
  color: #7a4a00;
  padding: 7px 16px;
  margin: 3px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.gp-navbar .nav-link:hover,
.gp-navbar .nav-link.active {
  background: #f7944d;
  color: #fff;
}

/* ================= DROPDOWN ================= */
.gp-navbar .dropdown {
  position: relative;
}

.gp-navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 260px;
  margin-top: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.gp-navbar .dropdown-item {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #7a4a00;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.gp-navbar .dropdown-item:hover {
  background: #fff3e0;
  color: #f57c00;
  padding-left: 22px;
}

.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
}


/* ================= DESKTOP CLICK STABLE DROPDOWN ================= */
@media (min-width: 992px) {

  .gp-navbar .dropdown-menu {
    display: none;
  }

  /* bootstrap adds .show on click */
  .gp-navbar .dropdown.show > .dropdown-menu {
    display: block;
    animation: dropdownFade 0.25s ease;
  }

  /* keyboard + focus support */
  .gp-navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SUB-DROPDOWN (Awas Yojana) ================= */
.dropdown-submenu {
  position: relative;
}

/* Hide the sub-arrow added by Bootstrap toggle */
.dropdown-submenu > a.dropdown-toggle::after {
  display: inline-block;
  border-top: none;
  border-right: none;
  width: 0;
  height: 0;
  vertical-align: middle;
  content: "\f285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  font-size: 11px;
  margin-left: auto;
  padding-left: 6px;
  color: #f57c00;
}

.dropdown-submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 270px;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18) !important;
  display: none;
  animation: dropdownFade 0.2s ease;
  border: none !important;
}

/* Desktop: show sub-menu on hover */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-submenu-menu {
    display: block !important;
  }
}

/* Mobile: show sub-menu inline (static) */
@media (max-width: 991px) {
  .dropdown-submenu-menu {
    position: static !important;
    left: 0;
    width: 100%;
    box-shadow: none !important;
    border-radius: 6px !important;
    background: #fff9f0 !important;
    padding-left: 12px;
    display: none;
  }
  .dropdown-submenu.open > .dropdown-submenu-menu {
    display: block !important;
  }
}

/* ================= RIGHT ACTIONS ================= */
.gp-nav-actions {
  white-space: nowrap;
}

.language-switch {
  font-size: 13px;
  font-weight: 600;
  color: #7a4a00;
}

.language-switch a {
  color: #7a4a00;
  text-decoration: none;
  padding: 2px 6px;
}

.language-switch a:hover {
  background: #f7944d;
  color: #fff;
  border-radius: 4px;
}

/* ================= TOGGLER ================= */
.gp-navbar .navbar-toggler {
  border-color: #7a4a00;
}

.gp-navbar .navbar-toggler-icon {
  filter: invert(0.4);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 991px) {

  /* reset desktop margin */
  .gp-navbar .navbar-nav {
    margin-left: 0;
    padding: 10px 0;
  }

  /* center menu */
  .gp-navbar .nav-link {
    text-align: center;
    width: 100%;
    margin: 4px 0;
  }

  /* mobile dropdown full width */
  .gp-navbar .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 8px;
    margin: 6px 0;
    padding: 4px 0;
  }

  .gp-navbar .dropdown-item {
    justify-content: center;
    padding: 12px;
  }

  /* disable hover effect on mobile */
  /* .gp-navbar .dropdown:hover > .dropdown-menu {
    display: none;
  } */

  /* right actions center */
  .gp-nav-actions {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }
}
/* ===== 100% WORKING FIXED HEADER ===== */
.fixed-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;  /* Bootstrap standard z-index */
}

/* Top bar bhi fixed rahe */
.gp-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;  /* Same as navbar */
  background: #e5e5e5;
  color: #555;
  padding: 6px 0;
  font-size: 13px;
}

/* Navbar topbar ke niche aaye */
.gp-navbar {
  position: fixed !important;
  top: 32px;               /* topbar ki height */
  width: 100%;
  z-index: 1029;            /* Slightly lower than topbar */
}

/* ===== IMPORTANT – CONTENT NICHE SHIFT ===== */
main {
  margin-top: 100px;       /* topbar + navbar total height - DESKTOP */
}

/* Mobile specific main margin */
@media (max-width: 767px) {
  main {
    margin-top: 83px !important;      /* 28px topbar + 55px navbar = 83px */
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* ===== PAGE SCROLL FIX ===== */
html, body {
  scroll-behavior: smooth;
  height: auto !important;
  min-height: 100% !important;
}

body {
  overflow-x: hidden;
  overflow-y: auto !important;
}

/* Ensure proper scrolling on all pages */
main {
  min-height: auto !important;
  position: relative;
}

/* ===== MOBILE SPECIFIC FIXES ===== */
@media (max-width: 767px) {
  
  /* Topbar mobile adjustments */
  .gp-topbar {
    padding: 6px 0 !important;
    font-size: 11px;
    text-align: center !important;
    line-height: 1.2 !important;
    height: 28px !important; /* Fixed height */
  }
  
  .gp-topbar small {
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Hide some content on very small screens */
  @media (max-width: 480px) {
    .gp-topbar small {
      font-size: 10px;
    }
  }
  
  @media (max-width: 400px) {
    .gp-topbar small {
      font-size: 9px;
    }
  }
  
  /* Navbar mobile adjustments */
  .gp-navbar {
    top: 28px !important;             /* Fixed to match topbar height exactly */
  }
  
  /* Hero and latest updates gap fix */
  .hero-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .latest-strip {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }
  
  /* Logo size fix */
  .navbar-logo {
    height: 40px !important;
    transform: scale(1.0) !important;
  }
  
  /* Navbar collapse fix */
  .gp-navbar .navbar-collapse {
    background: #fffde7;
    padding: 10px 0;
    border-top: 1px solid #e6d9b8;
    margin-top: 10px;
    max-height: calc(100vh - 120px) !important; /* Fixed height for scroll */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
  }
  
  /* Ensure all nav items are visible and scrollable */
  .gp-navbar .navbar-nav {
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Right actions fix */
  .gp-nav-actions {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 20px; /* Extra space at bottom */
  }
  
  /* Toggler fix */
  .gp-navbar .navbar-toggler {
    padding: 4px 8px;
    font-size: 14px;
  }
}

/* ===== HERO SECTION MOBILE FIX ===== */
@media (max-width: 767px) {
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
    top: auto !important;
  }
  
  .hero-slide {
    min-height: 280px !important; /* Further reduced height for mobile */
    margin-bottom: 0 !important;
  }
  
  .hero-content {
    padding-top: 15px !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
  }
}

/* ===== MODAL MOBILE FIXES ===== */
@media (max-width: 767px) {
  
  /* Modal overlay fixes */
  .modal-overlay {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .modal-overlay.active {
    display: flex !important;
    align-items: flex-start !important;
    padding: 20px 0;
  }
  
  .modal-content {
    width: 95% !important;
    max-width: none !important;
    margin: 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .modal-body {
    max-height: none !important;
    overflow-y: visible !important;
  }
  
  /* Body scroll fix when modal is open */
  body.modal-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  /* ===== WEATHER WIDGET FIX ===== */
.weather-fixed {
  position: fixed !important;
  bottom: 90px !important;
  left: 20px !important;
  z-index: 1000 !important; /* Below navbar but above content */
}

/* Mobile weather widget fix */
@media (max-width: 767px) {
  .weather-fixed {
    bottom: 70px !important;
    left: 14px !important;
    z-index: 1000 !important;
  }
  
  /* When navbar is open, move weather widget */
  .navbar-collapse.show ~ .weather-fixed,
  .gp-navbar .navbar-collapse.show + * .weather-fixed {
    bottom: 20px !important;
    left: 14px !important;
  }
}

/* Ensure modal is scrollable */
.modal-overlay.active .modal-content {
  transform: none !important;
  animation: none !important;
}

/* ===== FOOTER STYLING ===== */
.site-footer {
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%) !important;
  border-top: 3px solid #f7944d !important;
  padding: 0 !important;
}

.footer-links a {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f7944d !important;
}

.footer-contact li {
  color: rgba(255,255,255,0.8) !important;
  margin-bottom: 8px;
}

.footer-contact i {
  color: #f7944d !important;
}


