/* â”€â”€ RESET â”€â”€ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* â”€â”€ CSS VARIABLES â”€â”€ */
:root {
  --brand-blue: #1a5fd4;
  --nav-text:   #3a3a3a;
  --nav-hover:  #1a5fd4;
  --bg:         #ffffff;
  --shadow:     0 1px 6px rgba(0, 0, 0, 0.08);
  --header-h:   68px;
}

/* â”€â”€ BASE â”€â”€ */
body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4fb;
}

/* â”€â”€ HEADER â”€â”€ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: var(--shadow);
  height: var(--header-h);
}

/* â”€â”€ NAV INNER â”€â”€ */
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* â”€â”€ LOGO â”€â”€ */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: -0.3px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

/* â”€â”€ DESKTOP NAV LINKS â”€â”€ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--nav-hover);
  background: rgba(26, 95, 212, 0.06);
}

/* â”€â”€ LOGIN BUTTON â”€â”€ */
.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 10px 26px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-blue);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(26, 95, 212, 0.35);
  flex-shrink: 0;
}

.btn-login:hover {
  background: #1450b8;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(26, 95, 212, 0.45);
}

.btn-login:active {
  transform: translateY(0);
}

/* â”€â”€ HAMBURGER â”€â”€ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(26, 95, 212, 0.07);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Hamburger â†’ X animation */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* â”€â”€ MOBILE DRAWER â”€â”€ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 16px 24px 24px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.mobile-menu ul a {
  display: block;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu ul a:hover {
  background: rgba(26, 95, 212, 0.06);
  color: var(--brand-blue);
}

.mobile-menu .btn-login {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.95rem;
}

/* â”€â”€ DEMO PAGE CONTENT â”€â”€ */
.demo-body {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
  color: #555;
  font-family: 'Poppins', sans-serif;
}

.demo-body h1 {
  font-size: 1.6rem;
  color: #222;
  font-weight: 600;
  margin-bottom: 10px;
}

.demo-body p {
  font-size: 0.95rem;
  line-height: 1.7;
}



/* ==========================
   Menu
========================== */

.menu-item-has-children{
    position: relative;
}

.menu-item-has-children > a{
    display: inline-flex;
    align-items: center;
}

/* Arrow */

.menu-arrow{
    display: none;
    cursor: pointer;
    user-select: none;
}

.current_page_item{
	    background: #1a5fd4;
    border-radius: 50px;
}

.current_page_item a{
	color:#fff !important;
}

.current_page_item .sub-menu a{
	color: var(--nav-text) !important;
}

/* ==========================
   Desktop
========================== */

@media (min-width:769px){

    .menu-item-has-children > .sub-menu{
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        list-style: none;
        padding: 10px 0;
        margin: 0;

        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);

        transition: all .3s ease;

        z-index: 999;
        box-shadow: 0 10px 25px rgba(0,0,0,.1);
    }

    .menu-item-has-children:hover > .sub-menu{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}

/* â”€â”€ RESPONSIVE BREAKPOINTS â”€â”€ */
@media (max-width: 768px) {
  .nav-links,
  header .btn-login {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
	
	.menu-item-has-children:hover > .sub-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.menu-arrow{
    display:none;
}
.menu-item-has-children{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .menu-item-has-children > a{
        width: calc(100% - 45px);
    }

    .menu-arrow{
        display: flex;
        align-items: center;
        justify-content: center;

        width: 45px;
        height: 45px;

        cursor: pointer;

        transition: .3s;
    }

    .menu-arrow::before{
        content: "";
        width: 8px;
        height: 8px;

        border-right: 2px solid #000;
        border-bottom: 2px solid #000;

        transform: rotate(45deg);

        transition: .3s;
    }

    .menu-item-has-children.active > .menu-arrow::before{
        transform: rotate(225deg);
    }

    .menu-item-has-children > .sub-menu{

        display: block;

        width: 100%;
        position: static;

        list-style: none;

        padding-left: 15px;
        margin: 0;

        max-height: 0;
        overflow: hidden;

        transition: max-height .35s ease;

    }

    .menu-item-has-children.active > .sub-menu{
        max-height: 1000px;
    }
	
	.main-menu li{
		width:100%;
		border-bottom: 1px solid #e5e5e5;
	}
}

@media (max-width: 400px) {
  .nav-inner {
    padding: 0 18px;
  }

  .logo {
    font-size: 1.1rem;
  }
}

