/* =========================================
   1. BASE STYLES & RESET
   ========================================= */
* {
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  padding: 20px;
  /*background-color: #f4f4f9;*/
  background-color: #1B2845;
}

a:link, a:visited {
  color: #737687;
  text-decoration: none;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
}

a:hover {
  color: #335C81;
  text-decoration: none;
}

/* Base styling for your sidebar links */
.sidebar-link {
  display: block;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  color: #ffffff; /* Default link color */
}

/* Unvisited link */
.sidebar-link:link {
  color: #ffffff;
}

/* Visited link (already clicked) */
.sidebar-link:visited {
  color: #cccccc; /* Slightly dimmed to show it's been viewed */
}

/* Hover state (mouse cursor over it) */
.sidebar-link:hover {
  color: #65AFFF; /* Matches your theme accent color */
  text-decoration: underline;
}

/* Active state (the exact moment of clicking) */
.sidebar-link:active {
  color: #3b82f6;
}

p {
  margin-bottom: 20px;
}

/* Logo Centering Rules */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-height: 120px; 
  width: auto;
  display: block;
}

img { 
  max-width: 100%;
  height: auto; 
}

h1 {
  color: #737687;
}

h2 {
  color: #737687;
}

h3, h4 {
  
}

h5, h6 {
  color: #737687;
  margin-bottom: 5px;
  border-bottom: 1px;
  border-bottom-style: solid;
}

.site-header, .content, .sidebar, .site-footer {
  padding: 20px;
  border-radius: 8px;
}

.site-header {
  position: relative; 
  min-height: 150px; /* Provides proper bounding box height for absolute logo */
  padding: 20px;
  /* background: #2c3e50;  */
  color: white; 
  margin-bottom: 20px;
}

.site-footer { 
  background: #2c3e50; 
  color: white; 
  text-align: center; 
  margin-top: 20px; 
}

.layout-container {
  background: #2B3753;
  padding: 20px;
}

.content {
  /*border: 1px solid #e6efff;*/
  color: #a7aabd;
 }

.sidebar { color: white; }

/* Polished Hamburger Button */
.hamburger-btn {
  background: #2B3753; 
  /* border: 1px solid #e6efff; */
  border: none;
  color: white; 
  font-size: 16px; 
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer; 
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.hamburger-btn:hover {
  background: #1f618d;
}

.menudivwrap.is-active { display: block; }
.menudivwrap { display: none; margin-top: 0px; padding-left: 0px; padding-top: 0px; }
.menudiv { display: block; border-radius: 10px; border: 1px solid #e6efff; margin-top: 0px; padding: 20px; }
.menu_list { color: white; background: #2B3753; cursor: pointer; padding: 0px; margin: 0px; width: 160px; text-align: left; border: none; outline: none; transition: 0.4s; font-family: Verdana, Geneva, sans-serif; font-size: 13px; }
.active, .menu_list:hover { color: #335C81; }
.panel { padding: 0px; display: none; overflow: hidden; margin-left: 10px; max-width: 150px; text-align: left; border: none; font-family: verdana; font-size: 13px; }


/* =========================================
   2. MOBILE-FIRST LAYOUT (Default)
   ========================================= */
.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; 
}

.sidebar {
  order: -1; 
  margin-bottom: 20px; 
  width: 100%; 
}

.content {
  order: 0;
  width: 100%; 
}


/* =========================================
   3. DESKTOP / TABLET OVERRIDES (Media Query)
   ========================================= */
@media (min-width: 768px) {
  
  .layout-container {
    flex-direction: row; 
    gap: 20px; 
    align-items: flex-start;
  }

  .content {
    flex: 2; 
    order: 1; 
    margin-bottom: 0; 
  }

  .sidebar {
    flex: 1; 
    order: 2; 
    max-width: 300px;
    margin-bottom: 0; 
  }
  
  /* On desktop, hide the hamburger button and always show the menu */
  .hamburger-btn {
    display: flex;
  }

  .menudivwrap {
    display: block; 
    position: static; 
    width: auto;
    background: transparent; 
  }
}
