html { 
  font-family: 'Open Sans', 'helvetica', sans-serif;
  background: white;
  font-size: 14px;
}

/* Titles */
h1 { text-transform: uppercase }
h1, h2 { 
	font-weight: normal; 
  margin-top: 10px;
  margin-bottom: 10px;
}


.title
{
  font-size: 2.5em;
  text-align: left;
  margin-bottom: 50px;
  text-transform: none;
  color: #1DAEDF;
  line-height: 1;
  font-weight: 600;
}

.latest
{-
  padding: 10px 10px;
  border-bottom: 1px solid #eee;
}

.post_detail
{
  font-size: 2em;
  line-height: 1em;
}

.entry-content
{
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: justify;
  color: #333;
}

article section .about
{
  font-size: 18px;
  color: #444;
  text-align: justify;
}

article section .blog-post
{
  font-size: 16px;
}

/* Body */
body {
    display: flex;
    flex-direction: row;
    margin: 0;
}
body > article, footer {
  line-height: 1.6em;
  display: block;
  max-width: 700px;
  /* margin: 40px auto auto 355px; */
  margin: 40px auto auto;
  padding: 20px 80px 10px;
}

article ol.posts
{
  padding-left: 0;
}

/* Articles */
p.post_entry {  
}
article > header {
  list-style-type: none;
  padding: 0px 10px;
  box-shadow: 0 0 0 2px #1DAEDF;
  -moz-border-radius: 5px 0;
  -webkit-border-radius: 5px 0;
  border-radius: 5px 5px;
}
.article_left > h1 {
  font-size: 20px;
}
.article_right {
  background-color: white;
}
.post_list {
  list-style-type: none;
  padding: 10px 10px;
  -moz-border-radius: 5px 0;
  -webkit-border-radius: 5px 0;
  border-radius: 5px 5px;
}


/* Links */
a  { color:#1DAEDF; text-decoration:none; }
a:visited { color:#1DAEDF; text-decoration:none; }
a:link { color:#1DAEDF; text-decoration:none; }
a:active { color:#1DAEDF; text-decoration:none; }
a:hover { text-decoration: underline; }

/* Code */
.highlight pre {
  font-size: 14px;
  overflow: auto;
  padding: 8px;
}

/* Sidebar */
aside {
  font-size: 14px;
  width: 250px;
  height: 100%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  left: 0;
  max-height: 100vh;
  padding: 30px;
  background-color: #2980b9;
  color: white;
  box-shadow: 0 0 3px black;
  text-align: center;
  padding-top: 8%;
  background-size: cover;
  overflow-y: auto;
}

aside > ul {
  list-style-type: none;
  padding: 0px 10px;
  margin-top: 0px;
}
aside > h2 { 
  text-transform: uppercase;
  font-size: 14px; 
  margin-bottom: 5px;
}

#avatar {
  width: 100px;
  border-radius: 50%;
  display: block;
  margin: 0 10px 20px 0;
  box-shadow: 0px 0px 5px 3px #1DAEDF;
  -webkit-transition: 200ms;
     -moz-transition: 200ms;
      -ms-transition: 200ms;
       -o-transition: 200ms;
          transition: 200ms;
}

#avatar:hover {
  box-shadow: 0px 0px 5px 3px white;
}

.social
{
  display: inline-block;
  margin-top: 40px;
}

.nav
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  /*
  margin-left: -30px;
  margin-right: -30px;
  border: 1px solid #328cc7;
  margin-top: 40px;
  */
  /* DEBUG */
  outline: 2px solid red;
  background: rgba(255,0,0,0.05);
}

/* Hamburger button */
.nav-toggle {
  display: none; /* hidden by default, shown on narrow widths in portrait orientation */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  /* DEBUG */
  background: rgba(0,0,255,0.1);
}

/* Collapsed state = hide nav (until user clicks burger) */
.nav.collapsed {
  display: none;
  /* DEBUG */
  outline: 2px solid orange;
  background: rgba(255,165,0,0.1);
}

/* When burger is clicked, show nav vertically */
.nav.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* DEBUG */
  outline: 2px solid green;
  background: rgba(0,255,0,0.1);
}

.nav > ul > li
{
  font-size: 15px;
}

.nav a
{
    color: #fff;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.nav a:hover
{
    background-color: #328cc7;
}

.list-bare
{
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link 
{
  display: block;
  padding: 0.77273rem 0;
  border-bottom: 1px solid #328cc7;
}


.blog_roll_link 
{
  display: block;
  padding: 0.33147rem 0;
  border-bottom: 3px solid #328cc7;
} 


/*--------Responsive------------*/

/* ===== Portrait (vertical) orientation ===== */
@media (orientation: portrait) {
  body {
    display: flex;
    flex-direction: column; /* stack header/nav and article */
    margin: 0;
  }

  aside {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #2980b9;
    padding: 0.25rem 0.75rem;
    z-index: 1000;
  }

  .site-branding {
    text-align: center;
    margin-bottom: 0.5rem;   /* spacing between title/digest and nav */
  }

  .site-branding h1,
  .site-branding p {
    margin: 0.25rem 0;
  }

  .site-branding h1 {
    margin: 0;
    font-size: 1rem;
    color: white;
  }

  .site-branding p {
    margin: 0;
    font-size: 0.8rem;
    color: white;
    opacity: 0.8;
  }

  /* Site title stays centered at the top */
  aside h1 {
    margin: 0;
    color: white;
  }

  /* Burger button aligned to the right
  .nav-toggle {
    display: block;
    margin-left: auto;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
  */

  /* Collapsible nav */
  nav.nav {
    display: none; /* hidden until burger toggled */
    width: 100%;
    text-align: center;
  }
  nav.nav.open {
    display: block;
  }

  nav.nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  nav.nav ul li a {
    color: white;
    text-decoration: none;
  }

  .nav.collapsed {
    display: none; /* start hidden */
  }

  /* When burger is toggled open */
  .nav.collapsed.show {
    display: block; /* make nav visible */
  }

  .nav.collapsed.show ul {
    display: flex;
    flex-direction: column;   /* 👈 stack links vertically */
    align-items: flex-start;  /* left-align */
    gap: 0.5rem;              /* space between links */
    list-style: none;         /* keep your theme clean */
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
  }

  .nav ul {
    display: flex;
    flex-direction: row;     /* make nav horizontal */
    flex-wrap: wrap;         /* wrap if too many items */
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .nav li {
    margin: 0 0.5rem;
    list-style: none;
  }

  body > article {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 90%;
  }

  footer {
    margin-top: auto;
    padding: 1rem;
  }
}


/* Narrow portrait: hamburger + dropdown */
@media (orientation: portrait) and (max-width: 1250px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none; /* start hidden */
    flex-direction: column;
    width: 100%;
  }

  .nav.show {
    display: block; /* show when toggled */
  }

  .nav__link {
    padding: 0.5rem;
    display: block;
  }
}

/* ===== Landscape (horizontal) orientation) ===== */
@media (orientation: landscape) {
  body {
    display: flex;
    flex-direction: row;
    margin: 0;
  }

  aside {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto; /* independent scrolling */
    width: 220px;
    padding: 30px;
    padding-top: 8%;
    background-color: #2980b9;
    box-shadow: 0 0 3px black;
    color: white;
    text-align: center;
    background-size: cover;
  }

  body > article {
    margin: 40px auto auto 355px;
    max-width: 700px;
    padding: 20px 80px 10px;
  }

  footer {
    margin-left: 355px;
    padding: 20px;
  }
}


img {
  max-width: 100%;
}