.custom-sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f7f5f3;
  z-index: 2;
  /* border-bottom: 1px solid #ddd; */
  padding: 0px 0;
  
}

.custom-sticky-header .main-menu {
  background: #f7f5f3;
  border: none;
}

.custom-sticky-header .main-menu__inner {
  justify-content: flex-start;
  gap: 1.25rem;
  box-shadow: none;
  position: sticky !important;
  background: #f7f5f3;
}

.sticky-title {
  font-size: 1.375rem;
  line-height: 1.35;
}

.custom-sticky-header .dropdown.mega {
  position: relative !important;
}

.year-container {
  position: sticky;
  top: calc(75px); /* height of the header */
  /* z-index: 998; */
  z-index: 1;
  /* background: #f7f5f3; */
  /* border-bottom: 1px solid #eee; */
  padding: 6px 0;
  
}

.year-container .year-nav {
  /* background-color: #FFFFFF; */
  background: #f7f5f3;

}

* {
  box-sizing: border-box;
}

.ir-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-family: "Gilroy", "sans-serif";
  letter-spacing: 0.2px;
}

.ir-nav__container {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  width: 100%;
  flex-wrap: wrap;
   /* padding: 0 4px; */
}

.ir-nav__container-header {
  display: flex;
  align-items: center;
  width: 90;
  justify-content: space-between;
  position: relative;
}

.ir-nav__logo {
  font-size: 1.375rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  margin-right: 32px;
  letter-spacing: 0.2px;
}

/* .ir-nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
} */
 .ir-nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #002855;
  display: none;
  padding: 8px;
}

.ir-nav__toggle svg {
  width: 26px;
  height: 26px;
  stroke: #002855;
  display: block;
}

/* .ir-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

 */

.ir-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.ir-nav__menu li {
  position: relative;
}
/* .ir-nav__menu li{
  padding: 16px 15px;
} */

.ir-nav__menu > li > a {
  display: flex;
  align-items: center;
  color: #002855;
  font-size: 15px;
  font-weight: 700  !important;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.ir-nav__menu > li > a::before {
  display: none !important;
}

.ir-nav__menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0%;
  height: 3px;
  background-color: #0061a6;
  transition: opacity 0.15s ease-in;
}

.ir-nav__menu > li > a:hover,
.ir-nav__menu > li.active > a {
  color: #0061a6;
  background-color: transparent;
}


.ir-nav__menu > li > a:hover::after,
.ir-nav__menu > li.active > a::after {
  opacity: 1;
}

.ir-nav__menu li ul li{
  padding: 0px 0px;
}
.ir-nav__menu li ul li a{
border-bottom: none !important;
}

/* .ir-nav__menu li a {
  display: block;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease, color 0.3s ease;
  border-bottom: 3px solid transparent;

} */

/* .ir-nav__menu li a:hover {
  background: #f5f5f5;
  color: #02355a !important;
  border-bottom: 3px solid #02355a;
  
} */
.ir-nav__menu li{
  padding: 15px 12px;

}
.ir-nav__menu li a {
  display: block;
  text-decoration: none;
  font-family:"Gilroy", "sans-serif";

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #6f6f6f; /* PepsiCo blue */
  border-bottom: 4px solid transparent;
  transition: all 0.25s ease-in-out;
}

.ir-nav__menu li a:hover,
.ir-nav__menu li a.active,
.ir-nav__menu li a:focus {
  color: #02355a; /* lighter blue on hover */
  border-bottom: 4px solid #155798;
 
}

.ir-nav__has-submenu>a::after {
  content: "▾";
  margin-left: 4px;
  font-size: 0.7rem;
}

/* .ir-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


.ir-nav__submenu li a {
  padding: 12px;
}

.ir-nav__menu li:hover>.ir-nav__submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
} */

.ir-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  list-style: none;
  padding: 6px 0;
  z-index: 100;
}

.ir-nav__has-submenu:hover > .ir-nav__submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Back button hidden on desktop
.ir-nav__submenu-back {
  display: none;
} */

.ir-nav__submenu li a {
  display: block;
  padding: 10px 18px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid #f3f3f3;
}

.ir-nav__submenu li a:hover {
  background-color: #f7f5f3;
  color: #0061a6;
}

.ir-nav__has-submenu > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.7rem;
  color: #002855;
  transition: transform 0.3s ease;
  display: inline-block;
}

.ir-nav__has-submenu:hover > a::after {
  transform: rotate(180deg);
}


.ir-nav__has-submenu:hover .ir-nav__submenu {
  /* opacity: 1;
  transform: translateY(0);
  pointer-events: auto; */
  display: block;
}


/* ✅ Active menu item label (for mobile) */
.ir-nav__active-label {
  display: none;
  font-size: 18px;
  color: #02355a;
  margin-top: -8px;
  font-weight: 600;
}

.ir-nav__submenu-back {
  display: none;
}

/* ==============================
   MOBILE MENU STYLES (≤768px)
============================== */
@media (max-width: 1200px) {

  /* --- Main menu container --- */
  .ir-nav__menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 0;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .ir-nav__menu.active {
    max-height: 600px;
  }

  /* --- Main menu items --- */
  .ir-nav__menu li {
    width: 100%;
  }

  .ir-nav__menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 700; /* bold like PepsiCo */
    /* color: #002855; */
    background: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
  }

  .ir-nav__menu > li > a i {
    font-size: 14px;
    color: #0061a6;
    transition: transform 0.3s ease;
  }

  .ir-nav__has-submenu.open > a i {
    transform: rotate(90deg);
  }

  /* --- Submenu container --- */
  .ir-nav__submenu {
    position: static;
    background: #f8f8f8;
    border: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .ir-nav__submenu.open {
    max-height: 500px;
  }

  /* --- Submenu items --- */
  .ir-nav__submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600; /* semi-bold */
    color: #002855;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
  }

  .ir-nav__submenu li a:hover {
    background: #e8f1fa;
    color: #0056a3;
  }

  /* --- Back button (mobile only) --- */
  .ir-nav__submenu-back {
    display: block;
    padding: 14px 20px;
    font-weight: 700;
    color: #002855;
    background: #fff;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
  }

  /* --- Toggle button visible only on mobile --- */
  .ir-nav__toggle {
    display: block;
  }
}

.year-header {
  position: sticky;
  top: 110px; /* Adjust based on the height of your sticky header */
  background: #fff;
  z-index: 50;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.year-header .year-btn {
  background: none;
  border: none;
  color: #002855;
  font-weight: 700;
  margin: 0 8px;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.year-header .year-btn.active {
  color: #0061a6;
  border-bottom: 3px solid #0061a6;
}

/* ==============================
   DESKTOP MENU STYLES (≥769px)
============================== */
@media (min-width: 1200px) {
  .ir-nav__submenu-back {
    display: none !important;
  }

  .ir-nav__menu {
    display: flex;
    align-items: center;
    background: transparent;
    max-height: none;
  }

  .ir-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #f7f5f3;
    /* border: 1px solid #e6e6e6; */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    list-style: none;
    padding: 6px 0;
    z-index: 9999;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .ir-nav__has-submenu:hover > .ir-nav__submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .ir-nav__submenu li a {
    font-weight: 600;
    font-size: 1rem;
    color: #6f6f6f;
    
  }
  .ir-nav__submenu li a:hover { text-decoration: underline;
    color: #02355a;

  }
}

@media (max-width: 1200px) {
  /* Investor Relations main toggle */
  .mobile-ir-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-weight: 700;
    color: #002855;
    background: #fff;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
  }

  .mobile-ir-toggle i {
    transition: transform 0.3s ease;
  }

  .mobile-ir-toggle.open i {
    transform: rotate(180deg);
  }

  /* Expandable content for mobile */
  .mobile-ir-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f8f8;
  }

  .mobile-ir-content.open {
    max-height: 800px;
  }

  /* Financial submenu styling inside mobile accordion */
  .mobile-ir-content .year-header {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
  }

  .mobile-ir-content .year-btn {
    font-weight: 700;
    font-size: 15px;
  }

  /* Make year header stick inside the accordion */
  .mobile-ir-content .year-header {
    position: sticky;
    top: 140px; /* Adjust for mobile header */
    z-index: 40;
  }

  /* Hide the desktop "active label" in mobile */
  .ir-nav__active-label {
    display: none !important;
  }
}

/* ==============================
   DESKTOP OVERRIDES
============================== */
@media (min-width: 1200px) {
  .mobile-ir-toggle,
  .mobile-ir-content {
    display: none !important;
  }

  .year-header {
    top: 95px; /* Slightly lower than main sticky header */
  }
}

/* Make the year header sticky */
@media (max-width: 1200px) {
   /* Adjust as per your mobile breakpoint */

   .ir-fin-menu {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10000;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .ir-fin-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem;
  }
  .year-container {
    position: sticky;
    top: calc(125px);
     /* stick to the top of the viewport */
    /* background-color: #fff; add background to cover content behind */
    /* z-index: 9999;  */
    /* make sure it is on top */
    padding: 0.3rem 0;
  }

  .year-nav {
    display: flex;
    overflow-x: auto; /* allows horizontal scroll if buttons overflow */
    white-space: nowrap;
  }
.year-btn:hover {
    background-color: unset;
}
  .year-nav a {
    flex: 0 0 auto; /* prevent shrinking */
    padding: 0.2rem 1rem;
    margin-right: 0.5rem;
    text-decoration: none;
    color: #02355a;
  }

  .year-nav a.active {
   font-weight: bold;
        background-color: #02355a;
        /* border-bottom: 2px solid #155798; */
        color: #fff;
  }
  .ir-fin-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    cursor: pointer;
  }

  .ir-fin-toggle:hover {
    background-color: #eee;
  }

  /* ===== Financials Submenu ===== */
  .financials-submenu {
    display: none; /* initially hidden */
    flex-direction: column;
    padding: 0.5rem 1rem;
    background-color: #fff;
  }

  .financials-submenu.active {
    display: flex;
  }

  .financials-submenu a {
    padding: 0.5rem 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }

  /* ===== Back Button in Financials Submenu ===== */
  .back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    text-align: left;
    padding: 0.5rem 0;
    color: #155798;
    font-weight: 500;
    cursor: pointer;
  }
}

