/************************
/* BLOG PAGE*/
/**************************/

/* PAGE SECTIONS */
.grid--blog-col {
  grid-template-columns: 1fr;
  align-items: start;
}

.main-header {
  background-color: var(--color-surface-muted);
  padding: 2rem 4rem;
}

.post-header {
  margin-bottom: 4rem;
}

/* SMALLER ELEMENTS */
.blog-primary-header,
.blog-secondary-header,
.blog-tertiary-header,
h1,
h2,
h3 {
  color: var(--color-grey-1);
}

.blog-primary-header,
h1 {
  font-size: 2.6rem;
  text-transform: uppercase;
  font-style: italic;
}

.blog-secondary-header,
h2 {
  font-size: 4rem;
  margin-bottom: 3rem;
  text-align: center;
}

.blog-tertiary-header,
h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.blog-fourth-header,
h4 {
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
}

p {
  font-size: 2.2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

ul,
ol {
  margin-left: 5rem;
  margin-bottom: 2rem;
}

li {
  font-size: 2rem;
  margin-bottom: 1rem;
}

li:last-child {
  margin-bottom: 0;
}

#author {
  font-style: italic;
  font-size: 18px;
}

li:first-child {
  font-weight: bold;
}

li:last-child {
  font-style: italic;
}

/* Styling links */
a:link {
  color: var(--color-grey-1);
  text-decoration: none;
}

a:visited {
  color: var(--color-grey-1);
}

a:hover {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: underline var(--color-primary);
}

a:active {
  background-color: var(--color-grey-1);
  font-style: italic;
}

.blog-secondary-header {
  position: relative;
}

.blog-secondary-header::before {
  content: 'PAID';
  background-color: var(--color-accent-warning);
  color: var(--color-grey-2);
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 10px;
  position: absolute;
  top: -10px;
  right: -25px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.author {
  margin-bottom: 0;
  margin-left: 1.5rem;
}

.main-header {
  grid-column: 1 / -1;
}

.favorites-notes-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: var(--color-primary);
}

.form-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.review-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-content: center;
}

.rating-replace {
  font-style: italic;
}

.view {
  display: flex;
}

/**************************/
/* BLOG BROWSING */
/**************************/

.section-blog {
  padding: 3.2rem 0;
}

.blog-box {
  border-radius: 11px;
  padding: 1.6rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.blog-metadata {
  color: var(--color-grey-1);
  font-weight: 400;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.75;
  margin-bottom: 0.8rem;
}

.blog-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.blog-preview-text {
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.6;
  color: var(--color-grey-1);
  margin-bottom: 3.2rem;
  text-align: center;
}

.blog-read-more {
  text-align: center;
}

.grid-view {
  row-gap: 3.2rem;
}

/* 
Progress Bar */

.progress-bar {
  position: relative;
  width: 30rem;
  height: 2rem;
  border: 0.1rem solid var(--color-grey-1);
  border-radius: 90px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-success);
  transition: width 0.5s;
  font-size: 1.5rem;
}

.progress-bar-value {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
