/* Header Styles */
.custom-site-header {
    background-color: #014421;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.site-logo a {
    display: block;
    line-height: 0;
}

.desktop-logo {
    height: 50px;
    width: auto;
    display: block;
}

.mobile-logo {
    height: 40px;
    width: auto;
    display: none;
}

/* Desktop Navigation */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
    display: block;
    transition: opacity 0.3s ease;
}

.desktop-nav ul li a:hover {
    opacity: 0.8;
}

/* Dropdown Menu */
.desktop-nav ul li.menu-item-has-children > a::after {
    content: " ▾";
    margin-left: 5px;
}

.desktop-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #014421;
    min-width: 220px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.desktop-nav ul li:hover > ul {
    display: flex;
}

.desktop-nav ul ul li {
    width: 100%;
}

.desktop-nav ul ul li a {
    padding: 12px 20px;
    font-size: 13px;
}

.desktop-nav ul ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Icon */
.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #C9A66B;
    background-color: transparent;
    padding: 8px;
    transition: all 0.3s ease;
}

.user-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1); /* White color */
}

.user-icon:hover {
    background-color: rgba(201, 166, 107, 0.2);
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* White color */
}

.mobile-menu-toggle .close-icon {
    display: none;
    font-size: 35px;
    color: #ffffff;
    line-height: 1;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    background-color: #014421;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-navigation.active {
    display: block;
    max-height: 500px;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px 10px;
    display: block;
    transition: background-color 0.3s ease;
}

.mobile-navigation ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sub-menu in mobile */
.mobile-navigation ul ul {
    padding-left: 20px;
}

.mobile-navigation ul ul li a {
    font-size: 13px;
    text-transform: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .desktop-logo {
        display: none;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .user-icon {
        width: 40px;
        height: 40px;
    }
}

/* Fix: remove any accidental white bar in header */
.custom-site-header,
.custom-site-header * {
  box-sizing: border-box;
}

.custom-site-header input,
.custom-site-header select,
.custom-site-header textarea {
  background: transparent !important;
  color: #fff !important;
}

/* If some theme element is injecting a search box / form area in header */
.custom-site-header .search-form,
.custom-site-header .search-field,
.custom-site-header form[role="search"] {
  display: none !important;
}

/* Also prevent any white background from nav containers */
.custom-site-header .header-container,
.custom-site-header nav,
.custom-site-header .desktop-nav,
.custom-site-header .mobile-navigation {
  background: transparent !important;
}

/* Sometimes GeneratePress adds inside-header/container backgrounds */
.inside-header,
.inside-header.grid-container {
  background: transparent !important;
}

/* ===== Header spacing & alignment fix ===== */
.header-container{
  gap: 30px;                 /* logo aur menu ke darmiyan gap */
}

.site-logo{
  margin-right: 10px;
}

.desktop-nav{
  padding-left: 15px;        /* extra breathing space */
}

/* Menu items ke darmiyan spacing thori behtar */
.desktop-nav ul{
  gap: 22px;                 /* pehle 30 tha; aap adjust kar sakte */
}

/* Agar logo aur menu bilkul chipak rahe hon to yeh bhi help karega */
.desktop-nav ul li a{
  padding: 10px 6px;         /* thora horizontal padding */
}

/* ===== Dropdown/Sub-menu styling fix (override GP) ===== */
.desktop-nav ul ul.sub-menu{
  background-color: #014421 !important;
  border: 1px solid rgba(201, 166, 107, 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* Sub-menu links default */
.desktop-nav ul ul.sub-menu li a{
  color: #ffffff !important;
  font-weight: 600;
  text-transform: none;          /* dropdown items ko normal rehne dein */
}

/* Hover pe golden */
.desktop-nav ul ul.sub-menu li a:hover,
.desktop-nav ul ul.sub-menu li a:focus{
  color: #C9A66B !important;
  background-color: rgba(255,255,255,0.06) !important; /* subtle hover bg */
}

.desktop-nav > ul > li > a:hover,
.desktop-nav > ul > li > a:focus{
  color:#C9A66B !important;
}

/* ========== MOBILE/TABLET MENU: full height + scroll ========== */
.mobile-navigation{
  display: none;
  background-color: #014421;
  padding: 18px 18px 28px;
  
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;                 /* header height ke hisaab se adjust (60-90) */
  bottom: 0;

  overflow-y: auto;          /* scroll enabled */
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  max-height: none !important;   /* IMPORTANT: remove cropping */
}

.mobile-navigation.active{
  display: block;
}

body.mobile-nav-open{
  overflow: hidden;
}

/* ========== TABLET: show ONLY hamburger, hide desktop menu ========== */
@media (max-width: 1024px){
  .desktop-nav{ 
    display: none !important; 
  }
  .mobile-menu-toggle{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}


/* ===== Fix: Mobile menu background transparent issue ===== */

/* overlay itself */
.mobile-navigation{
  background-color: #014421 !important;
  opacity: 1 !important;
}

/* sometimes ul/menu gets transparent bg from theme */
.mobile-navigation ul,
.mobile-navigation ul.menu,
.mobile-navigation .menu,
.mobile-navigation .sub-menu{
  background-color: #014421 !important;
}

/* menu items readable */
.mobile-navigation a{
  color: #fff !important;
}

/* hover/active golden */
.mobile-navigation a:hover,
.mobile-navigation a:focus{
  color: #C9A66B !important;
}
