/* ---------- common ----------- */

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
  background-color: #2a5172 !important;
}

a {
  cursor: pointer;
}

.nav-link-primary {
  padding: 0 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.nav-link-secondary {
  padding: 0 0 !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

.nav-link-secondary:hover {
  color: #366ea6 !important;
}

.footer-nav {
  padding: 0 0 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.footer-nav:hover {
  color: #366ea6 !important;
}

.dropdown-menu {
  position: absolute;
  margin-top: 1.4rem;
  border-radius: 0.5rem;
  background-color: white;
  overflow: hidden;
  min-width: 8rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  column-gap: 1rem;
  padding: 1rem 0.8rem;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f7f7f7 !important;
}

input {
  outline: 0;
  border-width: 0 0 2px;
  border-color: #ededed;
}

input:focus {
  border-color: #366ea6;
}

.no-display {
  display: none;
}

.app-slice {
  flex-direction: column;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
}

.section-text {
  font-size: 1.5rem;
}

@media screen and (max-width: 991px) {
  .section-heading {
    font-size: 1.6rem;
  }

  .section-text {
    font-size: 1rem;
  }
}

@media screen and (min-width: 992px) {
  .app-slice {
    min-height: 70vh;
    max-height: fit-content;
    flex-direction: row;
  }
}


/* -------------- blogs page ------------ */

/* headline container */

.headline-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.headline-card {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0px 0px 20px 0px #00000014;
  transition:
    box-shadow 0.3s ease-in-out,
    transform 0.2s ease-in-out;
  background: #fff;
  color: #000;
}

.headline-card:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
  cursor: pointer;
}

.headline-image {
  position: relative;
  width: 100%;
  min-height: 260px;
}

.headline-image img {
  transition: filter 0.3s ease-in-out;
}

.headline-card:hover .headline-image img {
  filter: brightness(92%);
}

.headline-text {
  position: relative;
  width: 100%;
  justify-content: center;
  background: #fff;
}

.headline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #4b5563;
  font-size: 0.95rem;
}

.headline-author {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.headline-author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.headline-date {
  white-space: nowrap;
}

.headline-title {
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.headline-description {
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  max-width: 60ch;
}

.headline-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: #2d3748;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  font-weight: 500;
}

@media (max-width: 991px) {
  .headline-card {
    margin-bottom: 30px;
  }

  .headline-image {
    min-height: 220px;
  }

  .slice {
    padding-bottom: 0;
  }
}

@media screen and (min-width: 992px) {
  .headline-card {
    min-height: 520px;
  }

  .headline-image {
    height: auto;
    max-width: 45%;
    flex: 0 0 45%;
  }

  .headline-text {
    max-width: 55%;
    flex: 0 0 55%;
  }

  .slice-blogs {
    margin-top: 6rem;
  }
}

/* blogs container */

.blog-tabs {
  gap: 3rem;
  border-bottom: 1px solid #cfcfcf;
}

.blog-tab {
  padding: 0 0 0.8rem 0;
  font-size: 1.75rem;
  font-weight: 500;
  color: #9b9b9b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  line-height: 1;
}

.blog-tab.active {
  color: #111111;
  font-weight: 700;
  border-bottom-color: #366ea6;
}

.blog-grid-gap {
  gap: 2%;
}

.blog-card {
  width: 100%;
  height: 100%!;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 20px 0 #00000014;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  color: #000 !important;
  text-decoration: none !important;
}

.blog-card-image {
  width: 100%;
  height: 240px;
  flex: 0 0 240px;
}

.blog-card-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-card-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
}

.blog-meta {
  font-size: 0.9rem;
  color: #444;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  line-height: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d5d8c;
  text-decoration: none;
  border-bottom: 1px solid #2d5d8c;
  width: fit-content;
  padding-bottom: 0.15rem;
}

@media screen and (min-width: 992px) {
  .blog-card {
    max-width: 32%;
    flex: 0 0 32%;
  }
}

@media screen and (max-width: 991px) {
  .blog-tabs {
    gap: 1.2rem;
  }

  .blog-tab {
    font-size: 1.1rem;
  }

  .blog-card-image {
    height: 220px;
  }
}

/* pagination */

.active-page {
  height: 35px;
    width: 35px;
    background-color: #EFF7FF;
    font-weight: 800;
    color: #366ea6;
}

.inactive-page {
    height: 35px;
    width: 35px;
  color: #989898;
  cursor: pointer;
}

/* ---------------- author page -------------- */

.author-image {
  width: clamp(110px, 12vw, 140px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.author-description {
  color: #404040;
}
