@charset "UTF-8"; 
/* Declare the encoding (if needed) */

/* Optional: Import other stylesheets  
@import url("http://repixel.de/blog/wp-content/themes/micromoon/assets/css/reset.css"); 
*/


/* ========================================================================
**
**        P A G E     LAYOUT  STRUCTURE max 1400px 
**
** ======================================================================== */
.site-header, .headnav-box, .wrapper, .site-footer { 
  max-width: 1400px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  min-height: 100vh; /* Ensure it takes full viewport height */
  margin: 0 auto ;
  text-align: center;
  padding: 0 !important;
}

.wrapper > * { 
  flex: 1 0 auto; text-align: left;
}

.main { 
  order: 1;
  min-height: 100%; margin:1em;
}
/*=======================================*/
.main {
  margin: 1em auto;
  width: calc(100% - 2em); /* prevent overflow from margins */
  box-sizing: border-box;
}
/*========================================*/
.aside {  
  flex: 1 auto;  
  border-right: 1px solid #DDD;
}

.aside-1 { 
  order: 2;
}

.aside-2 { 
  display: none; 
  order: 3;
}

/* Footer within the wrapper with full width of wrapper (max 1400px) */
.site-footer {
  order: 4; /* Ensure the footer comes last */
  flex: 0 0 auto; /* Ensure footer doesn't grow or shrink */
  width: 100%; /* Full width within the wrapper */
  margin: 0; /* Remove auto margin */
  padding: 2rem 0 1rem 0; /* Padding for footer */
  min-height: 9rem; /* Set a minimum height */
  position: relative; /* Position relative for internal elements */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  border:0px solid !important;
}



/* Media query adjustments */
@media (min-width: 768px) {
  .wrapper {
    flex-direction: row;
  }

  .aside-1 {
    order: 1;
    flex: 0 0 clamp(250px, 30%, 400px);
  }

  .main {
    order: 2;
    flex: 3 0 0;
  }

  .aside-2 {
    order: 3;
    display: none;
  }
}