/* Reset default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


article p, h1, h2, h3{
  margin-bottom:1em;
}
/* Content area styles */
#content {
  padding: 0px;

}

#main > .row {
  margin: auto;
}


/* Main container styles */
.main-container {
  background-color: #fff;
  padding-bottom: 50px;
}
.attachment-shapely-featured {
  max-width:100%;
  height:auto
}

@media (min-width: 601px) {
  #main > .row {
    max-width: 1000px;

  }
}

@media (max-width: 600px) {
  #main > .row {
    width: 100%;
    padding: 0 20px;
  }
}

@media (min-width: 601px) {
  #primary {
    margin-bottom: 24px;
  width:75%;
      vertical-align: top;
    display:inline-block;
  }
}

@media (max-width: 600px) {
  #primary {
    width: 100%;
}
}
/* Primary content styles */


.post-grid-small {
  margin: 24px;
    padding: 1em;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-title a {
  color: #333;
  text-decoration: none;
}

.post-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-meta li {
  display: inline-block;
  margin-right: 10px;
  color: #888;
}

/* Sidebar styles */


@media (min-width: 601px) {
  #secondary {
    background-color: #f5f5f5;
    padding: 20px;
    width:20%;
  min-width:180px;
    display:inline-block;
  }
}

@media (max-width: 600px) {
  #secondary {
    background-color: #f5f5f5;
    padding: 20px;
    width:100%;
  }
}

.widget-title {
  margin-bottom: 15px;
}

.widget_search input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
}

.searchsubmit {
  padding: 5px;
  border: none;
  background: none;
  cursor: pointer;
}


h1 {
  font-size:32px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 8px;
}

/* Footer styles */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 20px 0;
}

.site-footer .footer-inner {
  text-align: center;
}

.site-info {
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background-color: #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  transition: opacity 0.3s ease-in-out;
}

.back-to-top:hover {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .site-header .navbar-header {
    text-align: left;
  }

  .site-header .navbar-brand img {
    max-width: 120px;
  }

  #primary {
    margin-bottom: 0;
  }

  #secondary {
    margin-top: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .site-info {
    text-align: center;
    margin-top: 20px;
  }

  .text-right {
    text-align: center !important;
    margin-top: 10px;
  }
}
