/*   Table of Contents

Highlight the desired section and press CTRL F.
Then hit enter to jump to selected section.

0.0:  Root & Reset 
0.1:  Typography
0.2:  Icons & SVG
0.3:  Layout

1.0:  Blog Home Page
1.1:  Header-Section
1.2:  Features-Section
1.3:  CTA-Section
1.4:  Blog-Posts-Section

2.0:  Blog Post
2.1:  Blog Hero Section
2.2:  Blog Content Section
2.3:  Pagination
2.4:  Main menu

999:  Responsive Design

*/

/*
---------------

///////////////
0.0:  Root & Reset
///////////////

---------------
*/

:root {
  --clr-main-accent: #f0532d;
  --clr-main-accent-darker: #de100c;
  --clr-main-accent-darkest: #a10b08;
  --clr-main-accent-lighter: #f0542da6;
  --clr-element-white: #fffffe;
  --clr-element-grey: rgb(189, 187, 187);
  --clr-grey-blue: #708090;
  --clr-light-grey-blue: #7080903b;
  --clr-drk-grey: #333133;

  --transition-slow: all 350ms ease-in-out;
  --transition-normal: all 250ms ease-in-out;
  --transition-fast: all 150ms ease-in-out;
  --transition-faster: all 50ms ease-in-out;
}

* {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--clr-drk-grey);
  background-color: #fffffe;
  font-size: 62.5%;
  font-family: Poppins, sans-serif;
  /*overflow-x: hidden;*/
}

/*
---------------
0.1:  Typography
---------------
*/

h1 {
  font-size: clamp(1.75rem, 1.25rem + 1.5vw, 3.25rem);
  text-align: center;
}

h2 {
  font-size: 1.375rem;
  font-size: clamp(1.375rem, 1.25rem + 0.625vw, 2rem);
}

h3 {
  font-size: 1.05rem;
  font-size: clamp(1.05rem, 1.05rem + 0.5vw, 1.75rem);
}

h4 {
  font-size: 1.05rem;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
}

h5 {
  font-size: 0.9rem;
  font-size: clamp(1.05rem, 1.05rem + 0.4vw, 1.25rem);
}

h6 {
  font-size: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
}

.ul-header,
.li-header {
  font-weight: 600;
  font-size: 1rem;
  font-size: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem);
}

.header-description {
  font-size: 0.88rem;
  font-size: clamp(0.88rem, 0.836rem + 0.2200000000000001vw, 1.1rem);
}

p,
ul li,
ol li {
  line-height: 1.9;
  font-size: clamp(0.95rem, 0.936rem + 0.2200000000000001vw, 1rem);
}

ol li {
  font-size: 0.88rem;
  font-size: clamp(0.88rem, 0.836rem + 0.2200000000000001vw, 1.1rem);
}

button {
  font-size: 0.88rem;
  font-size: clamp(0.88rem, 0.836rem + 0.2200000000000001vw, 1.1rem);
  cursor: pointer;
}

.bold {
  font-weight: 600;
}

.accent-highlight {
  position: relative;
  color: var(--clr-main-accent);
  transition: all 250ms ease-in-out;
  padding: 2px;
  border-radius: 5px;
}

.accent-highlighted {
  color: var(--clr-element-white);
  transition: all 250ms ease-in-out;
  padding: 2px;
  border-radius: 5px;
}

.accent-highlight:hover {
  background-color: var(--clr-drk-grey);
  color: var(--clr-element-white);
}

.accent-highlight::after {
  content: "";
  position: absolute;
  background-color: var(--clr-main-accent);
  bottom: 10%;
  left: 0;
  right: 0;
  border-radius: 5px;
  width: 70%;
  margin: 0 auto;
  height: 2px;
  transform: scale(0);
  transition: all 300ms ease-in-out;
}
/* .accent-highlight:hover::after {
  transform: scaleX(1);
} */

.accent-highlighted:hover {
  color: var(--clr-main-accent);
}

.index-link {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 16px;
  padding: 12px;
  border-radius: 5px;
  text-decoration: none;
}
.index-link:hover {
  opacity: 80%;
}

/*
---------------
0.2:  Icons & SVG 
---------------
*/

.chevron-icon {
  max-width: 5%;
}

.pagination-icon {
  width: 14px;
  border-radius: 6px;
}

/*
---------------
0.3:  Layout/Elements
---------------
*/

section {
  margin-bottom: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.ul-header,
.ol-header {
  margin-bottom: 12px;
}

ul,
ol {
  margin-bottom: 20px;
}

li {
  margin-left: 40px;
  margin-bottom: 10px;
  padding: 2px;
  transition: all 250ms ease-in-out;
  width: fit-content;
  border-radius: 5px;
}

ol li {
  margin-left: 20px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  margin: 30px 0;
}

.looping-video-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
}

.embedd-video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

video {
  display: block;
  width: 100%;
  height: 100%;
}

/*
---------------

///////////////
1.0:  Blog Home Page
///////////////

---------------
*/

/*
---------------
1.1:  Header-section
---------------
*/

.blog-pillar-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../public/images/productivity-hero-background.jpg) no-repeat center
      center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

  margin: 0;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-wrapper {
  color: #fff;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 80vw;
  padding: 1.5rem 1rem;

  border-left: 1px solid var(--clr-element-white);
  border-right: 1px solid var(--clr-element-white);
}

.hero-wrapper h1 {
  margin-bottom: 20px;
}

.header-description {
  max-width: 1000px;
}

.hero-btn {
  color: var(--clr-element-white);
  background: 0;

  display: flex;
  align-items: center;

  padding: 0.5rem 1.5rem;
  margin-top: 6rem;

  border: 2px solid var(--clr-element-white);
  border-radius: 50px;

  transition: all 250ms ease-in-out;
}

.hero-btn:hover {
  background-color: var(--clr-main-accent);
  border-color: var(--clr-main-accent);
  color: var(--clr-element-white);
  -webkit-box-shadow: 0px 9px 18px 2px rgba(78, 78, 78, 0.192);
  box-shadow: 0px 9px 18px 2px rgba(78, 78, 78, 0.192);
}
/*
---------------
1.2:  Features-section
---------------
*/

section.features {
  max-width: 100vw;
  margin-bottom: 20px;
}

.features {
  color: #fff;
  background-color: var(--clr-grey-blue);
}

.paragraph-group {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;

  max-width: 1200px;
  margin: 0 auto;
}

.paragraph-group > p {
  padding-right: 20px;
  margin-bottom: 30px;
  align-self: center;
}

.feature-text {
  padding: 1.5rem;
  border-bottom: 2px solid var(--clr-main-accent-lighter);
}

/*
---------------
1.3:  Cta-section
---------------

*/

.cta-section .ul-header:nth-of-type(2) {
  margin-top: 60px;
}

/*

---------------
1.4:  Blog-posts-section
---------------

*/

.blog-section-headline {
  color: #fff;
  font-size: 1rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  font-weight: 600;
  text-align: center;

  max-width: 1000px;
  margin: 40px auto;
  padding: 0 1rem;
}

.blog-posts-section {
  background-color: var(--clr-grey-blue);
  max-width: 100vw;
  padding: 2rem 0;
}

.blog-posts-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));

  max-width: 1000px;
  margin: 0 auto;
}

.post-card {
  text-align: center;
  background-color: var(--clr-element-white);

  margin: 1rem;
  padding: 1rem;

  border-radius: 4px;
  -webkit-box-shadow: 0px 9px 18px 2px rgba(74, 74, 74, 0.5);
  box-shadow: 0px 9px 18px 2px rgba(74, 74, 74, 0.5);

  transition: all 150ms ease-in-out;
}

.post-card-title {
  position: relative;
  padding: 0 2rem;
}

.post-card-title::before {
  position: absolute;
  content: "";
  background-color: var(--clr-main-accent-lighter);
  top: 50%;
  left: 0;
  width: 20px;
  height: 1px;
}

.post-card-title::after {
  position: absolute;
  content: "";
  background-color: var(--clr-main-accent-lighter);
  top: 50%;
  right: 0;
  width: 20px;
  height: 1px;
}

.post-card-text {
  font-size: 0.8rem;
  font-size: clamp(
    0.8rem,
    0.7300000000000001rem + 0.34999999999999987vw,
    1.15rem
  );
  margin: 4% 0;
  padding: 1% 10%;
}

.post-card-button {
  display: inline-block;
  color: #fff;
  background-color: var(--clr-main-accent);
  font-size: 0.8rem;
  font-size: clamp(
    0.9rem,
    0.8300000000000001rem + 0.34999999999999987vw,
    1.15rem
  );
  padding: 0.6rem 2rem;

  border: 2px solid var(--clr-main-accent);
  border-radius: 50px;
  text-decoration: none;
  transition: all 200ms ease-in-out;
}

.post-card-button:hover {
  background-color: #fff;
  color: var(--clr-main-accent);
  border: 2px solid var(--clr-main-accent);
}

.image-wrapper {
  margin-bottom: 6%;
  transition: all 150ms ease-in-out;
}

.image-wrapper:hover {
  opacity: 0.7;
}

/*
---------------

///////////////
2.0:  Blog Post Page
///////////////

---------------
*/

/*
---------------
2.1:  Blog Hero Section
---------------
*/

.gradient-wrapper {
  background: rgb(112, 128, 144);
  background: -moz-linear-gradient(
    180deg,
    rgba(112, 128, 144, 0.3029586834733894) 0%,
    rgba(255, 255, 254, 1) 80%
  );
  background: -webkit-linear-gradient(
    180deg,
    rgba(112, 128, 144, 0.3029586834733894) 0%,
    rgba(255, 255, 254, 1) 80%
  );
  background: linear-gradient(
    180deg,
    rgba(112, 128, 144, 0.3029586834733894) 0%,
    rgba(255, 255, 254, 1) 80%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#708090",endColorstr="#fffffe",GradientType=1);
}

.blog-hero-section {
  position: relative;
  text-align: center;
  max-width: 1200px;
  padding: 30px 20px;
  margin-bottom: 50px;
}

.blog-hero-section::after {
  position: absolute;
  content: "";
  background-color: var(--clr-light-grey-blue);
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  max-width: 90%;
  margin: 0 auto;
}

.blog-hero-section h1 {
  font-size: clamp(1.75rem, 1.25rem + 1.25vw, 3rem);
}

.blog-hero-text {
  margin: 1.1rem 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icon {
  text-decoration: none;
  margin-right: 10px;
}

.social-icon:hover {
  opacity: 0.8;
}

.social-icon img {
  width: 24px;
}

.blog-feature-image-wrapper {
  margin: 20px 0 0 0;
}

.blog-feature-image-wrapper img {
  border-radius: 5px;
}

/*
---------------
2.2:  Blog Content Section
---------------
*/

.blog-content {
  max-width: 950px;
  padding: 1rem 0.8rem 4rem 0.8rem;
}

.blog-content section {
  padding-top: 2rem;
}

.blog-content img,
.blog-content video {
  border-radius: 5px;
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),
    0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.blog-content section:first-of-type {
  padding-top: 0;
}

.blog-content h1,
h2,
h3 {
  margin-bottom: 20px;
}

.blog-content h6 {
  margin-top: 40px;
}

.content-header {
  margin: 10px 0;
}

.content-header h5 .content-paragraph {
  margin: 10px 0;
}

.content-image-wrapper {
  margin: 30px auto;
}

.content-image-wrapper img {
  border-radius: 5px;
}

.blog-content p {
  margin-bottom: 30px;
}

.blog-content a {
  color: var(--clr-main-accent-darker);
  text-decoration: none;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.blog-content a:hover {
  border-bottom: 1px solid var(--clr-main-accent-darkest);
}

.blog-content ul li {
  list-style: none;
}

.blog-content ul li::before {
  content: "\2022";
  color: rgb(189, 187, 187);
  font-weight: bolder;
  display: inline-block;
  width: 1em;
  margin-left: -2em;
}

.reference {
  font-size: 0.75rem;
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);

  word-break: break-all;
}

/*
---------------
2.21:  Solutions pages
---------------
*/

.solutions-content {
  max-width: 950px;
  padding: 4rem 0.8rem;
}

.solutions-content section {
  padding-top: 2rem;
}

.solutions-content img,
.solutions-content video {
  border-radius: 5px;
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color),
    0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.solutions-content section:first-of-type {
  padding-top: 0;
}

.solutions-content h1,
h2,
h3 {
  margin-bottom: 20px;
}

.solutions-content h6 {
  margin-top: 40px;
}

.content-header {
  margin: 10px 0;
}

.content-header h5 .content-paragraph {
  margin: 10px 0;
}

.content-image-wrapper {
  margin: 30px auto;
}

.content-image-wrapper img {
  border-radius: 5px;
}

.solutions-content p {
  margin-bottom: 30px;
}

.solutions-content a {
  color: var(--clr-main-accent-darker);
  text-decoration: none;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.solutions-content a:hover {
  color: var(--clr-main-accent-darkest);
  border-bottom: 1px solid var(--clr-main-accent-darkest);
}

.solutions-content li {
  list-style: none;
}

.solutions-content ul li::before {
  content: "\2022";
  color: rgb(189, 187, 187);
  font-weight: bolder;
  display: inline-block;
  width: 1em;
  margin-left: -2em;
}

/*
---------------
2.3:  Pagination
---------------
*/

.blog-pagination-mobile {
  display: none;
}

.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin: 20px auto;
}

.pagination-button {
  font-size: 16px;
  text-decoration: none;
}

.post-card-button-mobile {
  color: var(--clr-main-accent);
  font-size: 16px;
  text-decoration: none;
}

/*
---------------
2.4:  Main menu
---------------
*/

.main-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 55%;
  padding-block: 10px;
  margin-inline: auto;
}
.shadow-bottom {
  box-shadow: 0px 1px 8px 0px rgba(233, 233, 233, 0.75);
}
.menu-links {
  display: flex;
  padding-top: 20px;
}
.menu-link-item {
  list-style: none;
}
.menu-link-item > a {
  text-decoration: none;
  color: gray;
  font-size: 14px;
}

/*
---------------
2.5:  Sidebar menu
---------------
*/

main > nav {
  position: sticky;
  top: 0;
  align-self: start;
  padding-top: 2rem;
}

.section-nav li {
  list-style: none;
}

    .section-nav li.active > a {
        color: #f02f00;
        font-weight: 500;
    }

.section-nav {
  padding-inline: 3rem;
  border-right: 1px solid #efefef;
  height: 100vh;
  max-width: 400px;
}

    .section-nav a {
        text-decoration: none;
        display: block;
        padding: 0.125rem 0;
        color: #596673;
        transition: all 50ms ease-in-out;
    }

        .section-nav a:hover,
        .section-nav a:focus {
            color: #f02f00;
        }

.section-nav hr {
  margin-block: 2rem;
}

.section-nav-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-nav-cta > span {
  text-align: center;
  font-size: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  padding-bottom: 1rem;
}

.section-nav-cta > a {
  font-size: 16px;
  color: var(--clr-element-white);
  background-color: var(--clr-main-accent);
  border-radius: 50px;
  padding: 0.5rem 1.6rem;
  transition: all 250ms ease-in-out;
}

.section-nav-cta > a:hover {
  color: var(--clr-element-white);
  background-color: #d2340c;
  transform: translate(0, -2px);
}

#main-content {
  display: grid;
  align-items: start;
  grid-template-columns: auto 1fr;
  width: 100%;
  max-width:1200px;
  margin: 0 auto;
}

/* ========== */

/* Footer */

/* ========== */

footer {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 5rem 2rem;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 0.5px;
  background-color: var(--clr-grey-blue);
  opacity: 30%;
}

footer > div {
  margin-right: 3rem;
}

footer > div > hr {
  margin-bottom: 1rem;
}

.link-group-column > span {
  font-size: 14px;
}

.link-group-column {
  display: flex;
  flex-direction: column;
}

/*
---------------

///////////////
999:  Responsive Design
///////////////

---------------
*/

@media only screen and (max-width: 1000px) {
  .main-menu {
    width: 100%;
  }

  .section-nav {
    padding: 1rem;
    width: 250px;
  }

  .card-group {
    display: flex;
    flex-direction: column;
  }

  .card {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 660px) {
  .paragraph-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .blog-posts-container {
    grid-template-columns: minmax(200px, 1fr);
    padding: 1rem 0.5rem;
  }

  .blog-hero-section {
    margin-bottom: 0;
  }
  .post-card-title::before,
  .post-card-title::after {
    top: 2px;
    bottom: 0;

    height: 20px;
    width: 1px;
  }

  .blog-content section {
    padding-inline: 0;
  }

  .blog-pagination {
    display: none;
  }

  .blog-pagination-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
  }

  .pagination-button {
    display: flex;

    background-color: var(--clr-grey-blue);
    padding: 16px;
  }

  .home-button {
    font-size: 16px;
    border: 2px solid var(--clr-main-accent);
    border-radius: 50px;
    padding: 0.5rem 1.6rem;
  }

  .main-menu {
    display: none;
    flex-direction: column;
  }

  main > nav {
    display: none;
  }

  footer {
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }
}
