/* ==========================================================================
   Entorii Blog – Custom Theme Styles
   Based on FH5CO Starter theme
   ========================================================================== */

/* ---------- Base ---------- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #4d4d4d;
  background: #fff;
}

a { color: #228896; text-decoration: none; transition: color .3s; }
a:hover, a:focus { color: #16616c; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  color: #000;
}

img { max-width: 100%; }

::selection      { background: #228896; color: #fff; }
::-moz-selection { background: #228896; color: #fff; }

/* ---------- Header ---------- */
#fh5co-header {
  padding: 40px 0 20px;
  text-align: center;
}

#fh5co-logo a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 3px;
}

#fh5co-logo a:hover { color: #228896; text-decoration: none; }

.fh5co-social {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  text-align: center;
}

.fh5co-social li { display: inline-block; margin: 0 4px; }

.fh5co-social li a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  color: #999;
  border: 1px solid #e6e6e6;
  transition: all .3s;
}

.fh5co-social li a:hover {
  background: #228896;
  border-color: #228896;
  color: #fff;
}

/* ---------- Blog Post Grid (index page) ---------- */
.fh5co-post-entry {
  margin-bottom: 20px;
}

.fh5co-post-entry article {
  margin-bottom: 40px;
}

.fh5co-post-entry article figure {
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 4px;
}

.fh5co-post-entry article figure img {
  width: 100%;
  height: auto;
  transition: transform .4s ease, opacity .4s ease;
}

.fh5co-post-entry article figure:hover img {
  transform: scale(1.05);
  opacity: .85;
}

.fh5co-meta {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #228896;
  margin-bottom: 6px;
}

.fh5co-meta a { color: #228896; }
.fh5co-meta a:hover { color: #16616c; }

h2.fh5co-article-title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 8px;
}

h2.fh5co-article-title a { color: #000; }
h2.fh5co-article-title a:hover { color: #228896; }

.fh5co-date {
  color: #b3b3b3;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ---------- Single Article Page ---------- */
.single-entry {
  padding-top: 30px;
  padding-bottom: 60px;
}

.single-entry article {
  float: none !important;
  margin: 0 auto;
}

.single-entry article > figure {
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 6px;
}

.single-entry article > figure img {
  width: 100%;
  height: auto;
}

.single-entry h2.fh5co-article-title {
  font-size: 34px;
  line-height: 1.3;
  margin: 10px 0 6px;
}

.content-article {
  margin-top: 30px;
}

.content-article h3 {
  font-size: 24px;
  margin: 30px 0 14px;
}

.content-article h4 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.content-article p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.content-article ul,
.content-article ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.content-article li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ---------- Sidebar CTA (Highlight Box) ---------- */
.fh5co-highlight {
  background: #f7f7f7;
  border-left: 4px solid #228896;
  padding: 28px 24px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.fh5co-highlight.right {
  position: sticky;
  top: 100px;
}

.fh5co-highlight h4 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 14px;
}

.fh5co-highlight p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.fh5co-highlight a.btn {
  display: inline-block;
  background: #228896;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .3s;
}

.fh5co-highlight a.btn:hover {
  background: #16616c;
  text-decoration: none;
}

/* ---------- Footer ---------- */
#fh5co-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #e6e6e6;
  margin-top: 40px;
}

#fh5co-footer p {
  margin: 0;
  color: #999;
  font-size: 13px;
}

#fh5co-footer a { color: #228896; }

/* ---------- Animate-box (Waypoints) ---------- */
.animate-box {
  opacity: 0;
}

.animate-box.animated {
  opacity: 1;
}

/* Fallback: show immediately if JS disabled or waypoints not loaded */
.no-js .animate-box,
.animate-box {
  opacity: 1;
}

.animate-box.is-animated {
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .single-entry h2.fh5co-article-title {
    font-size: 28px;
  }

  .fh5co-highlight.right {
    position: static;
  }
}

@media (max-width: 767px) {
  #fh5co-logo a {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .fh5co-post-entry article {
    margin-bottom: 30px;
  }

  h2.fh5co-article-title {
    font-size: 18px;
  }

  .single-entry h2.fh5co-article-title {
    font-size: 24px;
  }

  .content-article h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .col-xxs-12 {
    width: 100%;
    float: none;
  }
}

/* ---------- Utility ---------- */
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
