@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
  /* font-family: "Roboto", sans-serif; */
  font-family: "Noto Sans Bengali", sans-serif;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans Bengali", sans-serif;
}

.font-roboto {
  font-family: "Roboto", sans-serif;
}
.font-noto {
  font-family: "Noto Sans Bengali", sans-serif;
}

.blogs-container {
  gap: 50px;
  margin-bottom: 100px;
}

/* featured blog section styles */
.blog-header-card {
  margin-bottom: 50px;
}
.blog-header-content .blog-title {
  font-size: 3.125rem;
  font-weight: 500;
  color: #1c1c1c;
  text-decoration: none;
  margin-block: 0.5rem;
}
.blog-header-content {
  flex: 1.25;
}
.blog-header-content a,
.blog-header-content span {
  display: block;
  color: #737373;
  font-size: 1rem;
  text-decoration: none;
}
.blog-header-content .blog-category {
  color: #138483;
}
.blog-header-content .blog-category:hover {
  text-decoration: underline;
}
.blog-header-image {
  flex: 1;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px;
}
.blog-header-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
}

/* blog article styles */
.blog-article p,
.blog-article ul,
.blog-article ol {
  color: #575757;
}
.blog-article h3 {
  color: #1c1c1c;
  font-size: 1.5rem;
}
.blog-article ul,
.blog-article ol {
  line-height: 2rem;
}
.blog-article a {
  color: #1c1c1c;
}
.blog-article strong {
  color: #1c1c1c;
  font-weight: 500;
}
.blog-article blockquote {
  background-color: #f9f9f9;
  padding: 1rem;
}

/* blogs sidebar styles */
.blogs-sidebar {
  max-width: 400px;
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: 6rem; /* give room for fixed header if any */
  height: fit-content;
  z-index: 5; /* ensure it stays above other elements while sticking */
  align-self: start; /* stable stick within flex layout */
}

/* smaller top offset on small screens and disable sticky to avoid layout issues */
@media screen and (max-width: 991px) {
  .blogs-sidebar {
    position: static;
    top: auto;
    z-index: 1;
  }
}
.blogs-sidebar h4 {
  color: #1c1c1c;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ededed;
  padding-bottom: 1rem;
}
.sidebar-blogs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar-blogs-container .sidebar-blog-card {
  border-bottom: 1px solid #ededed;
  padding-bottom: 1rem;
}
.sidebar-blog-content .blog-title {
  font-size: 1rem;
  font-weight: 500;
  color: #1c1c1c;
  text-decoration: none;
  margin-block: 4px;
}
.sidebar-blog-content {
  flex: 2;
}
.sidebar-blog-content a,
.sidebar-blog-content span {
  display: block;
  color: #737373;
  font-size: 0.75rem;
  text-decoration: none;
}
.sidebar-blog-content .blog-category {
  color: #138483;
}
.sidebar-blog-content .blog-category:hover {
  text-decoration: underline;
}
.sidebar-blog-image {
  flex: 1;
  min-width: 100px;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 1rem;
}
.sidebar-blog-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
}
.sidebar-blog-content .blog-title:hover {
  text-decoration: underline;
}
.sidebar-blog-card:hover .sidebar-blog-image img {
  transform: scale(1.15);
}

/* social share */
.social-share {
  margin-block: 2rem;
  border-top: 1px solid #dadada;
  padding-block: 1.5rem;
}
.social-share ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.social-share ul li a svg {
  transition: all 0.1s ease-in-out;
}
.social-share ul li a:hover svg {
  transform: scale(1.2);
}
.social-share .share-text {
  font-weight: 500;
  font-size: 1.25rem;
}

/* improve visibility for copy-link icon */
.social-share ul li a#copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
}
.social-share ul li a#copy-link svg {
  width: 28px;
  height: 28px;
  display: block;
}
.social-share ul li a#copy-link svg circle {
  fill: #0f1419; /* dark background */
}
.social-share ul li a#copy-link svg path {
  fill: #ffffff; /* visible foreground */
}

/* responsive styles */
@media screen and (max-width: 576px) {
  .blog-header-card {
    margin-bottom: 2rem;
    gap: 2rem !important;
  }
  .blog-header-content .blog-title {
    font-size: 2rem;
  }
}
