/* ====== FOOTER ====== */
footer {
  background: #041424;
  color: #fff;
  padding: 60px 0 30px;
  /* font-family: 'Instrument Sans', sans-serif; */
  font-family: 'Lato', sans-serif;
  animation: fadeInUp 1s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col img {
  margin-bottom: 20px;
  max-width: 160px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #eaeaea;
  margin-bottom: 15px;
}

.footer-col h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  text-decoration: underline;
  color: #dce5a5;
  transform: translateX(4px);
}

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #dce5a5;
  transform: translateY(-3px);
}

footer hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #ddd;
}

/* ====== ANIMATION ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE FIXES ====== */
@media (max-width: 992px) {
  footer {
    padding: 50px 20px;
  }
  .footer-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-col img {
    max-width: 140px;
  }
  .footer-col h6 {
    font-size: 0.95rem;
  }
  .footer-col p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .social-icons a {
    margin: 0 8px;
  }
}




/* ====== NAVBAR STYLE ====== */
.navbar-custom {
  background: transparent;
  transition: all 0.4s ease;
  /* font-family: 'Instrument Sans', sans-serif; */
  font-family: 'Lato', sans-serif;
  position: fixed; /* ✅ add this */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}


.navbar-custom .nav-link {
  color: #041424;
  transition: color 0.3s ease;
  font-weight: 600;
  margin-left: 15px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #4a5022;
}

.navbar-custom .navbar-brand img {
  height: 60px;
  transition: all 0.3s ease;
  width: auto;
  object-fit: contain;
  /* transform: translateY(-4px); */
  transform: scale(1.15) translateY(-4px);
  transform-origin: left center; /* Scale naturally dikhega */
}

@media (max-width: 992px) {
  .navbar-custom .navbar-brand img {
    height: 48px;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 576px) {
  .navbar-custom .navbar-brand img {
    height: 40px;
    transform: scale(1);
  }
}
@media (max-width: 576px) {
  .navbar-custom.scrolled .navbar-brand img {
    height: 36px;
  }
}


/* On Scroll Effect */
.navbar-custom.scrolled {
  background: #041424;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-custom.scrolled .nav-link {
  color: #fff !important;
}

.navbar-custom.scrolled .nav-link:hover {
  color: #dce5a5 !important;
}

.navbar-custom.scrolled .navbar-brand img {
  transform: scale(1.10);
}

/* Responsive Fixes */
@media (max-width: 992px) {
  .navbar-custom {
    background: #1261A0;
  }
  .navbar-custom .nav-link {
    color: #fff;
  }
  .navbar-custom .navbar-toggler {
    border: none;
    filter: invert(1);
  }
}


/* ====== NAVBAR DROPDOWN ====== */
.navbar-custom .dropdown-menu {
  background-color: #041424;
  border-radius: 0;
  border: 1px solid rgba(99, 107, 47, 0.2);
  min-width: 220px;
  padding: 0.5rem 0;
  animation: fadeIn 0.25s ease-in-out;
}

.navbar-custom .dropdown-item {
  color: #c8a85b;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.navbar-custom .dropdown-item:hover {
  background-color: #fff;
  color: #fff;
}

/* On scroll (when navbar turns green) */
.navbar-custom.scrolled .dropdown-menu {
  background-color: #041424;
}

/* .navbar-custom.scrolled .dropdown-item {
  color: #1261A0;
} */

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== COMMON NAVBAR STYLES ===== */
.navbar-custom {
  transition: all 0.4s ease;
  z-index: 999;
}

/* ===== INDEX PAGE NAVBAR ===== */
.navbar-custom.navbar-index {
  background: transparent !important;
}

.navbar-custom.navbar-index .nav-link {
  color: #fff !important;
  transition: color 0.3s ease;
}

.navbar-custom.navbar-index.scrolled {
  /* background: #1261A0 !important; */
  background: #041424 !important;
  box-shadow: 0 2px 8px #041424;
}

.navbar-custom.navbar-index.scrolled .nav-link {
  color: #fff !important;
}

/* ===== DEFAULT NAVBAR (ALL OTHER PAGES) ===== */
.navbar-custom.navbar-default {
  background: transparent !important;
}

.navbar-custom.navbar-default .nav-link {
  color: #fff !important;
  transition: color 0.3s ease;
}

.navbar-custom.navbar-default.scrolled {
  /* background: #1261A0 !important; */
  background: #041424 !important;
  box-shadow: 0 2px 8px #041424;
}

.navbar-custom.navbar-default.scrolled .nav-link {
  color: #fff !important;
}



/* ===== FORCE SOLID NAVBAR ON TABLET & MOBILE ===== */
@media (max-width: 992px) {

  /* Index page */
  .navbar-custom.navbar-index {
    background: #041424 !important;
    box-shadow: 0 2px 8px #041424;
  }

  /* Default pages */
  .navbar-custom.navbar-default {
    background: #041424 !important;
    box-shadow: 0 2px 8px #041424;
  }

}
@media (max-width: 992px) {
  .navbar-custom.scrolled {
    background: #041424 !important;
  }
}




/* Mega menu base */
.mega-menu {
  left: 0 !important;
  right: 0 !important;
  padding: 0;
}

/* Stop column text bleeding */
.mega-menu .row {
  display: flex;
  flex-wrap: nowrap; /* 👈 MOST IMPORTANT */
}

/* Each column fixed */
.mega-menu .col-lg-2 {
  flex: 0 0 16.66%;
  max-width: 16.66%;
}

/* Dropdown items fix */
.mega-menu .dropdown-item {
  white-space: normal;       /* allow wrap */
  word-break: break-word;    /* long text wrap */
  padding: 4px 0;
  font-size: 16px;
}

/* Remove bootstrap hover background */
.mega-menu .dropdown-item:hover {
  background: transparent;
  text-decoration: underline;
}

/* Headings */
.mega-menu h6 {
  font-size: 14px;
  margin-bottom: 10px;
}
@media (max-width: 992px) {
  .mega-menu .row {
    flex-wrap: wrap;
  }

  .mega-menu .col-lg-2 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .mega-menu .col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Mobile mega menu scroll fix */
@media (max-width: 991px) {
  .mega-menu {
    max-height: 80vh;          /* 👈 screen ke andar */
    overflow-y: auto;          /* 👈 dropdown ke andar scroll */
    -webkit-overflow-scrolling: touch;
  }

  /* Stop background page scroll feeling */
  body.dropdown-open {
    overflow: hidden;
  }
}


@media (max-width: 991px) {
  .mega-menu h6 {
    position: sticky;
    top: 0;
    background: #fff;
    color: #041424  !important;
    padding-top: 10px;
    z-index: 5;
  }
}

/* Mega menu hover fix */
.mega-menu .dropdown-item {
  background-color: transparent;
  transition: all 0.2s ease;
}

.mega-menu .dropdown-item:hover,
.mega-menu .dropdown-item:focus {
  background-color: #fff !important;  /* 👈 light grey visible */
  color: #000;
  padding-left: 6px;           /* 👈 subtle slide */
}