/* ===================================
   BLOG HERO
=================================== */

/* Hidden by default */

.hero-content .small-title,
.hero-content h1,
.hero-content .hero-description,
.hero-buttons,
.bottom-row {
  opacity: 0;
}

.blog-hero.animate .hero-content .small-title {
  animation: fade-in 1s ease 0.1s both;
}

.blog-hero.animate .hero-content h1 {
  animation: slide-in-left 1s ease 0.2s both;
}

.blog-hero.animate .hero-content .hero-description {
  animation: fade-in 1s ease 0.45s both;
}

.blog-hero.animate .hero-buttons {
  animation: fade-in 1s ease 0.7s both;
}

.blog-hero.animate .bottom-row {
  animation: slide-in-bottom 1s ease 0.9s both;
}

/* ===================================
   FEATURED ARTICLE
=================================== */

.featured .heading .small-title,
.featured .heading h2,
.featured-image,
.featured-content {
  opacity: 0;
}

.featured.animate .heading .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.featured.animate .heading h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.featured.animate .featured-image {
  animation: slide-in-left 0.9s ease 0.3s both;
}

.featured.animate .featured-content {
  animation: fade-in 0.9s ease 0.5s both;
}

/* ===================================
   LATEST ARTICLES
=================================== */

.articles .heading .small-title,
.articles .heading h2,
.article-card {
  opacity: 0;
}

.articles.animate .heading .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.articles.animate .heading h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.articles.animate .article-card:nth-child(1) {
  animation: slide-in-bottom 0.8s ease 0.2s both;
}

.articles.animate .article-card:nth-child(2) {
  animation: slide-in-bottom 0.8s ease 0.4s both;
}

.articles.animate .article-card:nth-child(3) {
  animation: slide-in-bottom 0.8s ease 0.6s both;
}

/* ===================================
   CATEGORIES
=================================== */

.categories .heading .small-title,
.categories .heading h2,
.category-grid div {
  opacity: 0;
}

.categories.animate .heading .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.categories.animate .heading h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.categories.animate .category-grid div:nth-child(1) {
  animation: fade-in 0.5s ease 0.2s both;
}

.categories.animate .category-grid div:nth-child(2) {
  animation: fade-in 0.5s ease 0.3s both;
}

.categories.animate .category-grid div:nth-child(3) {
  animation: fade-in 0.5s ease 0.4s both;
}

.categories.animate .category-grid div:nth-child(4) {
  animation: fade-in 0.5s ease 0.5s both;
}

.categories.animate .category-grid div:nth-child(5) {
  animation: fade-in 0.5s ease 0.6s both;
}

.categories.animate .category-grid div:nth-child(6) {
  animation: fade-in 0.5s ease 0.7s both;
}

.categories.animate .category-grid div:nth-child(7) {
  animation: fade-in 0.5s ease 0.8s both;
}

.categories.animate .category-grid div:nth-child(8) {
  animation: fade-in 0.5s ease 0.9s both;
}

/* ===================================
   CTA
=================================== */

.cta .small-title,
.cta h2,
.cta .description,
.cta-btn {
  opacity: 0;
}

.cta.animate .small-title {
  animation: slide-in-bottom 0.8s ease both;
}

.cta.animate h2 {
  animation: slide-in-bottom 0.8s ease 0.15s both;
}

.cta.animate .description {
  animation: fade-in 0.8s ease 0.35s both;
}

.cta.animate .cta-btn {
  animation: fade-in 0.8s ease 0.55s both;
}

/* ===================================
   FOOTER
=================================== */

footer h3,
footer h4,
footer p,
footer a,
footer small,
.footer-bottom {
  opacity: 0;
}

footer.animate h3 {
  animation: slide-in-bottom 0.8s ease both;
}

footer.animate h4 {
  animation: slide-in-bottom 0.8s ease 0.1s both;
}

footer.animate p {
  animation: fade-in 0.8s ease 0.2s both;
}

footer.animate a {
  animation: fade-in 0.8s ease 0.35s both;
}

footer.animate .footer-bottom {
  animation: slide-in-bottom 0.8s ease 0.5s both;
}

/* ===================================
   KEYFRAMES
=================================== */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
