/*--------------------------------------------------------------
 
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  font-display: swap;
  color: #272829;
}
a {
  color: #0073aa;
}
a:hover {
  color: #37b3ed;
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
}
/* --------------------------------custom code-----------*/
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  right: 15px;
  bottom: 15px;
  background: #0073aa;
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 999;
}
.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 7px;
  left: 8px;
}
.back-to-top:hover {
  color: #fff;
  background: #2eafec;
  transition: background 0.2s ease-in-out;
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #111b27;
  overflow-y: auto;
}
#header .profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid #2c2f3f;
}
#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Poppins", sans-serif;
}
#header .profile h1 a, #header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}
#header .profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #212431;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
#header .profile .social-links a:hover {
  background: #0073aa;
  color: #fff;
  text-decoration: none;
}

#main {
  margin-left: 300px;
}
@media (max-width: 1199px) {
  #header {
    left: -300px;
  }
  #main {
    margin-left: 0;
    padding-top: 60px;
  }

  /* ---- Mobile top bar ---- */
  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: linear-gradient(120deg, #0a1520 0%, #111b27 55%, #152233 100%);
    z-index: 9990;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    padding: 0 62px 0 14px;
    gap: 11px;
  }

  /* Thin blue accent line at the bottom of the bar */
  .mobile-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0073aa 0%, #37b3ed 55%, transparent 100%);
  }

  /* Gradient ring around avatar */
  .mobile-topbar-avatar-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa, #37b3ed);
    padding: 2.5px;
    flex-shrink: 0;
  }

  .mobile-topbar-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

  /* Name + role text block */
  .mobile-topbar-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }

  .mobile-topbar-name {
    font-family: "Poppins", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
  }

  .mobile-topbar-role {
    font-family: "Open Sans", sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    color: #37b3ed;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1px;
  }

  /* Hamburger sits vertically centred in the bar */
  .mobile-nav-toggle {
    top: 18px !important;
    right: 14px !important;
    background: transparent !important;
  }

  .mobile-nav-toggle i {
    color: #ffffff !important;
    font-size: 26px;
  }

  #main {
    padding-top: 64px;
  }
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding-top: 0px;
  padding-bottom:90px;
} 
.nav-menu * {
  margin: -5px 0 0 0;
  padding: 0;
  list-style: none;
} 
.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
} 
.nav-menu a {
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 15px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}
.nav-menu a i {
  font-size: 24px;
  padding-right: 8px;
  color: #ff0000;
}
.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  text-decoration: none;
  color: #fff;
}
.nav-menu a:hover i, .nav-menu .active > a i, .nav-menu li:hover > a i {
  color: #0073aa;
}
/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 99999 !important;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}
.mobile-nav-toggle i {
  color: #000000;
}
.mobile-nav-active {
  overflow: hidden;
}
.mobile-nav-active #header {
  left: 0;
}
.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}
/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 30vh;
  background: url("https://media.istockphoto.com/id/182361617/photo/green-grass-field.jpg?s=612x612&w=0&k=20&c=2TQfJJZuZdjJko8XdF6LHts7Ztk0hYtJ3I8uw-FZutE=") top center; */
  background-color: #000;
  background-size: cover;
}
/* #hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
} */
#hero .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
}
#hero h1 {
  margin: 50px 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}
#hero p {
  color: #fff;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}
#hero p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #0073aa;
}
@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}
@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Desktop Sidebar Collapse (Google-style icon bar)
--------------------------------------------------------------*/
.desktop-nav-toggle {
  display: none;
}

@media (min-width: 1200px) {
  /* Toggle button — shown only on desktop */
  .desktop-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .desktop-nav-toggle-btn {
    background: none;
    border: none;
    color: #a0aab4;
    font-size: 22px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none;
    flex-shrink: 0;
  }

  .desktop-nav-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  /* Footer matches sidebar width */
  #footer {
    width: 60px !important;
    overflow: hidden;
    transition: width 0.4s ease;
  }

  #footer .copyright {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
  }

  body.nav-expanded #footer {
    width: 300px !important;
  }

  body.nav-expanded #footer .copyright {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.2s, visibility 0s 0.2s;
  }

  /* ---- Collapsed state (default) ---- */
  #header {
    width: 60px;
    padding: 0;
    overflow: hidden;
    transition: width 0.4s ease, padding 0.4s ease, overflow 0s 0.4s;
  }

  #main {
    margin-left: 60px;
    transition: margin-left 0.4s ease;
  }

  #header .profile {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease, height 0.4s ease;
  }

  .nav-menu {
    padding-top: 4px;
    padding-bottom: 20px !important;
  }

  .nav-menu a {
    justify-content: center;
    padding: 14px 0 !important;
  }

  .nav-menu a i {
    padding-right: 0 !important;
    min-width: 24px;
    text-align: center;
  }

  .nav-menu a span {
    display: none;
  }

  /* ---- Expanded state ---- */
  body.nav-expanded #header {
    width: 300px;
    padding: 0 15px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.4s ease, padding 0.4s ease;
  }

  body.nav-expanded #main {
    margin-left: 300px;
  }

  body.nav-expanded #header .profile {
    opacity: 1;
    height: auto;
    overflow: visible;
  }

  body.nav-expanded .nav-menu {
    padding-top: 0;
    padding-bottom: 90px !important;
  }

  body.nav-expanded .nav-menu a {
    justify-content: flex-start;
    padding: 15px 15px !important;
  }

  body.nav-expanded .nav-menu a i {
    padding-right: 8px !important;
    min-width: auto;
  }

  body.nav-expanded .nav-menu a span {
    display: inline;
  }
}
