/* ==========================================================================
   edujardin.es - WordPress Twenty Eleven child theme style (2012 era)
   ========================================================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #373737;
  background: #2a2a2a url('/images/ladrillos.jpg') repeat top left fixed;
}

a { color: #00cc00; text-decoration: none; }
a:hover { color: #009900; text-decoration: underline; }

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

/* ==========================================================================
   Page wrapper
   ========================================================================== */
#page {
  max-width: 960px;
  margin: 20px auto;
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
  overflow: hidden;
}

/* ==========================================================================
   Header / Branding
   ========================================================================== */
#branding {
  background: url('/images/cultivando-en-el-balcon.jpg') no-repeat center center;
  background-size: cover;
  height: 276px;
  position: relative;
  border-bottom: 3px solid #3a8d3a;
}

#branding hgroup {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
}

#site-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

#site-title a {
  color: #fff !important;
  text-decoration: none;
}

#site-title a:hover { text-decoration: none; }

#site-description {
  color: #fff !important;
  font-size: 1rem;
  font-weight: normal;
  margin-top: 4px;
  font-style: italic;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#access {
  background: linear-gradient(to bottom, #4a9f4a, #3a8d3a);
  border-bottom: 1px solid #2e7a2e;
  padding: 0;
}

#access .menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#access .menu ul li {
  margin: 0;
}

#access .menu ul li a {
  display: block;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}

#access .menu ul li:last-child a {
  border-right: none;
}

#access .menu ul li a:hover,
#access .menu ul li.current_page_item a {
  background: rgba(0,0,0,.15);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: linear-gradient(to bottom, #4a9f4a, #3a8d3a);
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ==========================================================================
   Main layout: left sidebar + content
   ========================================================================== */
#main {
  display: flex;
  flex-direction: row-reverse;
  padding: 0;
  min-height: 600px;
}

#primary {
  flex: 1;
  min-width: 0;
  padding: 20px 30px 30px;
  border-left: 1px solid #e0e0e0;
}

#secondary {
  width: 250px;
  flex-shrink: 0;
  padding: 20px 15px 30px 20px;
  background: #fafafa;
  border-right: 1px solid #efefef;
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */
.widget {
  margin-bottom: 24px;
}

.widget-title {
  font-size: 14px;
  text-transform: uppercase;
  color: #3a8d3a;
  border-bottom: 2px solid #3a8d3a;
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

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

.widget ul li {
  border-bottom: 1px solid #e8e8e8;
}

.widget ul li a {
  display: block;
  padding: 7px 0;
  color: #555;
  font-size: 13px;
  transition: color .15s, padding-left .15s;
}

.widget ul li a:hover {
  color: #00cc00;
  text-decoration: none;
  padding-left: 6px;
}

.widget ul li:last-child {
  border-bottom: none;
}

/* Tag cloud in sidebar */
.tagcloud a {
  display: inline-block;
  background: #eaf5ea;
  color: #3a8d3a;
  padding: 3px 8px;
  margin: 2px 3px 2px 0;
  border-radius: 3px;
  font-size: 12px !important;
  transition: background .15s;
}

.tagcloud a:hover {
  background: #3a8d3a;
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   Content area
   ========================================================================== */
#content {
  max-width: 100%;
}

/* Blog post entries (homepage listing) */
.hentry {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
}

.hentry:last-child {
  border-bottom: none;
}

.entry-header {
  margin-bottom: 10px;
}

.entry-title {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0;
}

.entry-title a {
  color: #373737;
}

.entry-title a:hover {
  color: #00cc00;
}

.comments-link {
  display: none; /* hidden for static version */
}

/* Featured image thumbnail */
.excerpt-thumb {
  float: left;
  margin: 0 15px 10px 0;
}

.excerpt-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* Entry summary */
.entry-summary {
  overflow: hidden;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.entry-summary p {
  margin: 0 0 8px;
}

.entry-summary .meta-nav {
  font-size: 13px;
}

/* Entry footer / metadata */
.entry-meta {
  clear: both;
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  padding-top: 8px;
}

.entry-meta a {
  color: #777;
}

.entry-meta a:hover {
  color: #00cc00;
}

.entry-meta .sep {
  margin: 0 6px;
  color: #ccc;
}

.cat-links, .tag-links {
  display: inline;
}

.entry-utility-prep {
  font-style: italic;
  color: #999;
}

/* Read more link */
a.more-link {
  color: #3a8d3a;
  font-weight: 600;
}

a.more-link:hover {
  color: #00cc00;
}

/* ==========================================================================
   Single article page
   ========================================================================== */
article.single-post h2 {
  font-size: 1.6rem;
  color: #3a8d3a;
  margin-bottom: 6px;
  line-height: 1.3;
}

article.single-post .post-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

article.single-post .featured-image {
  margin: 0 0 20px;
  text-align: center;
}

article.single-post .featured-image img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

article.single-post p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 14px;
}

article.single-post h3 {
  font-size: 1.15rem;
  color: #3a8d3a;
  margin: 1.6rem 0 .5rem;
}

article.single-post ul, article.single-post ol {
  margin: 0 0 1rem 1.5rem;
}

article.single-post li {
  margin-bottom: .3rem;
  font-size: 14px;
}

article.single-post .post-footer-meta {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #888;
}

article.single-post .post-footer-meta a {
  color: #777;
}

article.single-post .post-footer-meta a:hover {
  color: #00cc00;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #00cc00; }

/* ==========================================================================
   Category archive pages
   ========================================================================== */
.archive-title {
  font-size: 1.5rem;
  color: #3a8d3a;
  margin-bottom: 6px;
}

.archive-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0e0e0;
}

/* Article list in category pages */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
  overflow: hidden;
}

.article-list li:last-child { border-bottom: none; }

.article-list h3 {
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.article-list h3 a { color: #373737; }
.article-list h3 a:hover { color: #00cc00; }

.article-list .meta {
  font-size: 12px;
  color: #999;
}

/* ==========================================================================
   Navigation between posts
   ========================================================================== */
.post-navigation {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  overflow: hidden;
  font-size: 13px;
}

.post-navigation .nav-previous {
  float: left;
}

.post-navigation .nav-next {
  float: right;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer#colophon {
  background: linear-gradient(to bottom, #4a9f4a, #3a8d3a);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  border-top: 1px solid #2e7a2e;
}

footer#colophon a {
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  body {
    background: #2a2a2a;
  }

  #page {
    margin: 0;
    border-radius: 0;
  }

  #branding {
    height: 180px;
  }

  #site-title { font-size: 1.4rem; }
  #site-description { font-size: .85rem; }

  #main {
    flex-direction: column;
  }

  #secondary {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
    order: 2;
  }

  #primary {
    border-left: none;
    padding: 15px;
    order: 1;
  }

  #access .menu ul {
    display: none;
    flex-direction: column;
  }

  #access .menu ul.open {
    display: flex;
  }

  #access .menu ul li a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .excerpt-thumb img {
    width: 100px;
    height: 100px;
  }

  .entry-title { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  #branding { height: 140px; }
  #site-title { font-size: 1.15rem; }
  #branding hgroup { bottom: 15px; }

  .excerpt-thumb {
    float: none;
    margin: 0 0 10px;
    text-align: center;
  }

  .excerpt-thumb img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}
