/* - Global Header Layout - */
.acedstudy-header {
  width: 100%; 
  background: #fff;   
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
  overflow: visible; 
}

.acedstudy-header .container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

/* --- Top Bar --- */
.acedstudy-topbar {
  background: #babbd3;
  font-size: 14px;
  padding: 8px 0;
}

.acedstudy-topbar .right { 
  display: flex; 
  gap: 12px; 
  justify-content: flex-end; 
  align-items: center; 
}

.acedstudy-topbar .auth-links a {
  color: rgba(0, 0, 87, 0.85);
}

.acedstudy-topbar .auth-links a:hover {
  color: #2596be;
}

.acedstudy-topbar .cta-btn {
  background: #2596be;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 10px;
  font-weight: 600;
  transition: 
    background 0.25s ease, 
    box-shadow 0.25s ease;
}

.acedstudy-topbar .cta-btn:hover {
  background: #1db7e8;
  box-shadow:
    0 3px 8px rgba(34, 34, 118, 0.2),  
    0 0 10px rgba(12, 205, 255, 0.25); 
}

/* --- Main Header --- */
.acedstudy-main-header { 
  display: flex; 
  align-items: flex-end;
  gap: 20px; 
  padding: 12px 0; 
  position: relative; 
  z-index: 50; 
}

.acedstudy-main-header .logo {
  position: relative;
  display: inline-block;     
  flex: 0 0 auto;           
  width: max-content;        
  padding-bottom: 18px;      
}

.acedstudy-main-header .logo .brand{
  display: block;
  line-height: 0;
}

.acedstudy-main-header .logo img{
  display: block;
  height: 44px;
  width: auto;
}

.acedstudy-main-header .logo .tagline{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #555;
  text-align: center;
  max-width: 100%;           
  padding: 2px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;     
  z-index: 1;
}

:root{
  --toggle-w: 26px;  
  --toggle-h: 5px;  
  --toggle-gap: 8.5px; 
}

.acedstudy-toggle { 
  display: inline-flex; 
  position: relative; 
  width: 38px; !important;
  height: 34px; 
  border-radius: 10px;
  align-items: center; 
  justify-content: center;
  transition: background .18s ease;
  border: 0; 
  background: inherit; 
  cursor: pointer; 
  padding: 10px;
}

.acedstudy-toggle[aria-expanded="false"] { 
  background: inherit; 
}

.acedstudy-toggle:hover { 
  background: #0ccdff; 
}

.acedstudy-toggle[aria-expanded="true"], .acedstudy-toggle[aria-expanded="true"]:hover { 
  background: inherit; 
}

.acedstudy-toggle[aria-expanded="false"]:hover { 
  background: #0ccdff; 
}

.acedstudy-toggle span { 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  width: var(--toggle-w); 
  height: var(--toggle-h);
  background: #000057; 
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: 
    transform .18s ease, 
    opacity .18s ease, 
    background .18s ease;
}

.acedstudy-toggle span:nth-child(1) { 
  transform: translate(-50%, calc(-50% - var(--toggle-gap))); 
} 

.acedstudy-toggle span:nth-child(2) { 
  transform: translate(-50%, -50%); 
} 

.acedstudy-toggle span:nth-child(3) { 
  transform: translate(-50%, calc(-50% + var(--toggle-gap))); 
}

.acedstudy-toggle[aria-expanded="true"] span:nth-child(1) { 
  transform: translate(-50%, -50%) rotate(45deg); 
  background: red; 
}

.acedstudy-toggle[aria-expanded="true"] span:nth-child(2) { 
  opacity: 0; 
}

.acedstudy-toggle[aria-expanded="true"] span:nth-child(3) { 
  transform: translate(-50%, -50%) rotate(-45deg); 
  background: red; 
}

.acedstudy-nav, .acedstudy-nav ul { 
  margin: 0; 
  padding: 0; 
}

.acedstudy-main-header nav ul { 
  display: flex; 
  gap: 24px; 
  list-style: none; 
  align-items: center;
}

.acedstudy-nav > li { 
  position: relative; 
  white-space: nowrap;
}

.acedstudy-main-header nav a { 
  text-decoration: none;  
  color: #000057; 
  font-weight: 600; 
  display: block; 
  padding: 10px 0; 
}

.acedstudy-main-header nav a:hover { 
  color: #0ccdff; 
}

.acedstudy-nav .sub-menu {
  position: absolute;
  top: 100%; 
  left: 0;
  z-index: 9999;
  min-width: 150px;
  display: block;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  visibility: hidden; 
  opacity: 0; 
  transform: translateY(6px);
  transition: 
    opacity .18s ease, 
    transform .18s ease, 
    visibility 0s linear .18s;
  white-space: nowrap;
}

.acedstudy-nav > li:hover > .sub-menu,
.acedstudy-nav > li:focus-within > .sub-menu {
  visibility: visible; 
  opacity: 1; 
  transform: translateY(0); 
  transition-delay: 0s;
}

.acedstudy-nav .sub-menu li a { 
  display:block;
  padding: 10px 18px; 
  font-size: 15px; 
  line-height: 2; 
  color: #000057; 
}

.acedstudy-nav .sub-menu li a:hover { 
  background: #F3F4F6; 
  color: #0ccdff; 
}

.acedstudy-nav .sub-menu .sub-menu { 
  top: 0; 
  left: 100%; 
  margin-left: 6px; 
}

.acedstudy-search-band { 
  padding: 10px 0 14px; 
  background: #fff; 
  border-bottom: 2px solid #F1F5F9; 
}

.acedstudy-search-band .container { 
  display: flex; 
  justify-content: center; 
}

/* --- Search --- */
.acedstudy-searchform { 
  position: relative; 
  width: 100%; 
  max-width: 760px; 
}

.acedstudy-search-input {
  width: 100%; 
  padding: 12px 34px 12px 16px !important;
  border: 1px solid #E5E7EB; 
  border-radius: 28px; 
  background: #fff; 
  font-size: 16px;
}

.acedstudy-search-input:focus { 
  outline: none; 
  border-color: #0ccdff !important;
  box-shadow: 0 0 3px rgba(0, 200, 255, 0.5); 
}

.acedstudy-search-btn {
  position: absolute;
  right: 1px;
  top: 49.5%;
  transform: translateY(-50%);
  height: 39px;
  width: 44px;
  border: 0;
  color: #0ccdff;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 5px 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 0;
}

.acedstudy-search-btn:hover { 
  background: inherit;
  color: #000057; 
}

.acedstudy-search-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  stroke: none;
}

.acedstudy-search-btn svg:hover {
  width: 25px;
  height: 25px;
}

/* Mobile drawer */
.acedstudy-overlay {
  position: fixed; 
  inset: var(--aced-header-top, 97px) 0 0 0;
  background: rgba(15, 23, 42, 0.45); 
  z-index: 9997;
  opacity: 0; 
  pointer-events: none;
  transition: opacity .22s ease;
}

.drawer-open .acedstudy-overlay { 
  opacity: 1; 
  pointer-events: auto; 
}

.acedstudy-mobile-drawer { 
  position: fixed; 
  inset: var(--aced-header-top, 97px) 0 0 auto; 
  width: 86%; 
  max-width: 380px; 
  height: calc(100vh - var(--aced-header-top, 97px));
  background: #fff; 
  box-shadow: -16px 0 32px rgba(0,0,0,.22); 
  padding: 18px; 
  overflow-y: auto; 
  transform: translateX(100%); 
  transition: transform .22s ease; 
  z-index: 9998; 
  display: flex; 
  flex-direction: column;
}

.drawer-open .acedstudy-mobile-drawer { 
  transform: translateX(0); 
}

.acedstudy-topbar,
.acedstudy-main-header { 
  z-index: 1000; 
}

.acedstudy-mobile-drawer .drawer-head {
  display: none; 
  align-items: center; 
  justify-content: space-between;
  padding: 14px 16px; 
  border-bottom: 1px solid #EEF2F7;
}

.acedstudy-mobile-drawer .drawer-logo img { 
  height: 32px; 
  width: auto; 
}

body.drawer-open {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

.acedstudy-mobile-drawer :focus { 
  outline: none; 
}

.acedstudy-overlay[hidden] { 
  display: none !important; 
}

.acedstudy-mobile-drawer .drawer-close {
  border: 0; 
  background: inherit; 
  font-size: 22px; 
  line-height: 1;
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
  cursor: pointer; 
  color: #0A1F44;
  display: flex; 
  align-items: center; 
}

.acedstudy-mobile-drawer .drawer-close:hover { 
  background: #F3F4F6; 
}

.acedstudy-mobile-nav,
.acedstudy-mobile-nav ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.acedstudy-mobile-nav > li > a {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px; 
  border-bottom: 1px solid #EEF2F7; 
  color: #000057; 
  text-decoration: none; 
  font-weight: 600;
  border-bottom: 1px solid #F1F5F9;
}

.acedstudy-mobile-nav > li > a:hover { 
  background: #F8FAFC; 
  color: #18cfff; 
}

.acedstudy-mobile-nav li .sub-menu {
  max-height: 0; 
  overflow: hidden;
  transition: max-height .22s ease;
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
}

.acedstudy-mobile-nav li .sub-menu > li > a {
  display: block; 
  padding: 12px 16px 12px 28px;
  color: #000057; 
  text-decoration: none; 
  font-weight: 500;
  border-top: 1px dashed #EEF2F7;
}

.acedstudy-mobile-nav li .sub-menu > li > a:hover {
  background: #F8FAFC; 
  color: #18cfff;
}

.acedstudy-mobile-nav .submenu-toggle {
  position: relative;
  width: 36px; 
  height: 36px;
  border: 0; 
  background: inherit; 
  cursor: pointer;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
}

.submenu-toggle span {
  position: absolute;
  width: 10px; 
  height: 2px;
  background: #000057; 
  border-radius: 2px;
  transition: 
    transform .2s ease, 
    background-color .2s ease;
}

.submenu-toggle span:nth-child(1) { 
  transform: 
    rotate(45deg) translateY(2px) translateX(-3px); 
}

.submenu-toggle span:nth-child(2) { 
  transform: 
    rotate(-45deg) translateY(1px) translateX(2px); 
}

li.open > a .submenu-toggle span:nth-child(1) { 
  transform: 
    rotate(-45deg) translateY(-3.5px) translateX(-3px); 
}

li.open > a .submenu-toggle span:nth-child(2) { 
  transform: 
    rotate(45deg) translateY(-1.5px) translateX(0.7px); 
}

.submenu-toggle:hover span { 
  background: #0ccdff; 
}

.acedstudy-mobile-nav .submenu-toggle:hover { 
  background: inherit; 
}

.acedstudy-mobile-nav li.open > a .chev { 
  transform: rotate(93deg) translateY(8px); 
  color: #0084a7;
}

.chev { 
  display:inline-block; 
  transform: rotate(273deg) translateY(-8px);
  color: #18cfff;
  text-shadow: 0 0 1px rgba(0,0,0,0.2);
  transition: 
    transform .25s ease, 
    color 0.25s ease; 
}

.acedstudy-mobile-nav a:hover .chev {
  color: #0084a7;
}

.acedstudy-mobile-drawer .drawer-ctas {
  display: none; 
  margin-top: auto; 
  padding: 16px; 
  border-top: 1px solid #EEF2F7;
}

.acedstudy-mobile-drawer .drawer-ctas .cta-btn {
  display: block; 
  text-align: center; 
  padding: 10px 14px;
  background: #2ECC71; 
  color: #fff; 
  border-radius: 8px; 
  font-weight: 700;
}

.acedstudy-mobile-drawer .drawer-ctas .cta-btn:hover { 
  background: #27AE60; 
}

.acedstudy-mobile-drawer .drawer-ctas .auth-links {
  margin-top: 10px; 
  text-align: center; 
  color: #475569;
}
/* Responsive */
@media (max-width: 1024px) {
  .acedstudy-main-header { 
    align-items: center; 
  }
  
  .acedstudy-toggle { 
    display: inline-block; 
    margin-left: auto; 
  }
  
  .acedstudy-main-header .main-menu { 
    display: none; 
  }
}

@media (max-width: 768px) {
  .acedstudy-main-header .logo { 
    flex-basis: auto; 
  }
  
  .acedstudy-main-header .logo img { 
    height: 40px; 
  }
  
  .acedstudy-topbar .right { 
    gap: 10px; 
  }
}

@media (min-width: 1024.001px) {
  .acedstudy-overlay, .acedstudy-mobile-drawer, .acedstudy-toggle { 
    display: none !important; 
  }
}