/* =============== */
/*  ELEMENTS       */
/* =============== */
h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #fff;
}

h2 {
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  font-family: "Inter", sans-serif;
  color: #1b1b1b;
  -webkit-text-fill-color: #1b1b1b;
  -webkit-background-clip: none;
}

h2,
h3,
h4 {
  color: #1b1b1b;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

p,
li {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.1px;
  margin-bottom: 1.25rem;
}

/* Footer fix  */
footer li {
  margin-bottom: 0;
}

/* ===================== */
/*  BLOG HERO SECTION    */
/* ===================== */
.blog-hero {
  display: block;
  /* background-color: #1b1b1b; */
  background: linear-gradient(90deg, #172554 0%, #1E3A8A 100%);
  color: #fff;
  font-size: 18px;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  width: 100%;
}

.blog-hero p,
.blog-hero li {
  color: #fff;
}

.blog-hero .breadcrumbs {
  color: #23ce6b;
}

.blog-hero .blog-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 50%;
  margin: auto;
}




/* ===================== */
/*  COMPONENTS    */
/* ===================== */

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 20px;
    margin: 0 5%;
    border-radius: 8px;
    font-size: var(--small-font);
}


/* Author Box */
.blog-hero .author-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.blog-hero .author-box .author-img-container {
  border-radius: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  overflow: hidden;
  height: 70px;
  width: 70px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .20);
}

.blog-hero .author-box .author-img-container img {
  height: 70px;
  width: 70px;
  position: relative;
}

.blog-hero .author-box .author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.blog-hero .author-box .author-info p {
  color: #fff;
  font-size: 13px;
  margin-bottom: 0;
}

.blog-hero .author-box .author-info p.author-name {
  font-weight: 700;
  color: #3B82F6;
}

.blog-hero .article-dates p {
  font-size: 12px;
}

@media (max-width: 768px) {
  .blog-hero .blog-hero-content {
    width: 90%;
  }
}



/* ===================== */
/*  COURSE-STYLE MENU    */
/* ===================== */
.blog-category-menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140%;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-bottom: 0.4rem;
}

@media (max-width: 768px) {
 .blog-category-menu {
    width: 100%;
  }
}

.category-button {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.category-button:hover {
  color: var(--blue);
  color: #999999;
}

.category-button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  background: transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.category-button.active {
  color: var(--blue);
}

.category-button.active::after {
  background: var(--blue);
  height: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

/* ===================== */
/*  CATEGORY SECTION     */
/* ===================== */
.category-section {
  margin-top: 1rem;
  width: 50%;
}

.category-section h2 {
  text-align: center;
}

.category-description {
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .category-section {
    width: 95%;
  }
}

/* ===================== */
/*  MAIN CONTAINER       */
/* ===================== */
.blog-index-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f7f7f7;
  padding: 2rem 2rem 4rem;
}

/* ===================== */
/*  COURSE LIST & ITEM   */
/* ===================== */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas: "thumb title actions" "thumb meta actions" "desc desc desc";
  gap: 0.6rem 1rem;
  background: #fff;
  border: 1px solid #e7e7e9;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  padding: 1rem 1rem 1rem 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-item.faq-item {
  background: #f0faff; /* light blue background */
  border: .5px solid var(--blue); 
}

.course-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.course-image {
  grid-area: thumb;
  width: 96px;
  height: 96px;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-title {
  grid-area: title;
  font-size: 1.15rem;
  margin: 0;
  align-self: end;
}

.course-title a {
  color: #000;
}

.course-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.course-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #eef2f7;
  color: #425466;
  border: 1px solid #dee5ee;
}

.course-date {
  font-size: 12px;
  color: #6b7280;
  margin-left: 0.25rem;
}

.course-actions {
  grid-area: actions;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* Bigger CTA */
.btn-start {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-start:hover {
  background: var(--green);
  color: #000;
  transform: translateY(-1px);
}

.toggle-desc {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f7f8fb;
  color: #111;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease;
}

.toggle-desc:hover {
  background: #eef2ff;
}

.toggle-desc.open {
  transform: rotate(20deg) scale(1.02);
}

/* Smooth, slightly faster slide with gentle bounce */
.course-desc-wrap {
  grid-area: desc;
  overflow: hidden;
  max-height: 0;
  will-change: max-height, transform;
  transition-property: max-height, transform;
  transition-duration: 0.36s, 0.36s;
  transition-timing-function: cubic-bezier(0.22, 0.9, 0.22, 1.0), cubic-bezier(0.22, 0.9, 0.22, 1.0);
}

.course-desc {
  padding-top: 0.5rem;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.65;
  transform: translateY(-2px);
}

@keyframes popBounce {
  0% {
    transform: translateY(-6px) scaleY(0.98);
    opacity: 0.35;
  }
  60% {
    transform: translateY(2px) scaleY(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}

.course-item.open .course-desc {
  animation-name: popBounce;
  animation-duration: 0.38s;
  animation-timing-function: cubic-bezier(0.22, 0.9, 0.22, 1.0);
  animation-fill-mode: both;
}

/* ===================== */
/*  REVIEW PROMO (ORIG)  */
/* ===================== */
.promo-review {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 5rem auto;
  max-width: 960px;
  width: 50%;
  overflow: hidden;
  position: relative;
  background-color: #fff;
  color: #333;
  border-radius: 20px;
  padding: 3rem 2rem;
  transition: background-color 0.3s ease;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.promo-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  z-index: 2;
}

.promo-text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #fff;
  padding-right: 60px;
}

.promo-review h2#resume-review-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.promo-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  font-weight: 400;
}

.btn.btn-review {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background-color: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn.btn-review:hover {
  background-color: var(--green);
  color: #000;
}

.promo-fake-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  pointer-events: none;
}

.resume-mock {
  width: calc(180px);
  height: calc(260px);
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: rotate(-5deg);
  transition: transform 0.4s ease;
  pointer-events: auto;
}

.resume-mock:hover {
  transform: rotate(-3deg) scale(1.02);
}

@media (max-width: 768px) {
  .promo-review {
    width: 100%;
    flex-direction: column-reverse;
  }
}

/* ===================== */
/*  ABOUT THE AUTHOR     */
/* ===================== */
.about-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-radius: 12px;
  width: 50%;
}

.about-author .author-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 50%;
}

.about-author .author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-author .author-details {
  flex: 1;
  font-family: "Inter", sans-serif;
}

.about-author .author-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #3B82F6;
  font-weight: 700;
  text-align: center;
}

.about-author .author-details .author-name {
  font-weight: bold;
  color: #1a1a1a;
  text-align: center;
}

.about-author .author-details p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1rem;
}

.about-author .author-cta {
  display: inline-block;
  color: #3B82F6;
  font-weight: 600;
  text-align: center;
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.2s ease-in-out;
}

.about-author .author-cta:hover {
  color: var(--green);
}

@media (max-width: 768px) {
  .about-author {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 1.5rem;
  }

  .about-author .author-photo {
    margin-bottom: 1rem;
  }
}

/* ============ */
/*  UTILITIES   */
/* ============ */
.hidden {
  display: none !important;
}


/* ===================== */
/*  MOBILE RESPONSIVENESS */
/* ===================== */
/* ===================== */
/*  MOBILE FIXES         */
/* ===================== */
@media (max-width: 768px) {
  .course-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .course-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }

  .course-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    width: 100%;
  }

  .course-tag {
    white-space: nowrap;
    font-size: 13px;
    padding: 4px 10px;
  }

  /* move date below tags */
  .course-date {
    flex-basis: 100%;
    font-size: 13px;
    color: #6b7280;
    margin-top: 0.25rem;
  }

  .course-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-start {
    flex-grow: 1;
    text-align: center;
    padding: 0.9rem 1.2rem;
    font-size: 16px;
  }

  .toggle-desc {
    flex-shrink: 0;
  }

  .course-desc-wrap {
    width: 100%;
  }
}
