/* General Styling */
body {
  font-family: "Nirmala UI", "Khanda", "Mangal", "Kalimati", "Lohit Devanagari",
    "Noto Sans Devanagari", sans-serif;
  padding: 0;
  background-color: #f4f4f4; /* Light Ivory */
}

:root {
  --background-color: #472753;
  --hover-color: #1c1a83;
  --background-color2: #424266;
  --text-hover: #0d1e52;
}

.excerpt-container {
  background-color: lighter;
  border-radius: 4px;
  padding: 15px;
  margin-top: 10px;
  box-shadow: 2px 2px 2px 2px rgba(0.1, 0.1, 0.1, 0.1);
}

.inline-paragraph {
  font-size: 18px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-weight: 500; /* Light bold */
}

/* Title and Reporter */
.title-and-reporter {
  display: flex;
  justify-content: center; /* Center the title and reporter info */
  align-items: center;
  flex-direction: column-reverse;
  width: 100%; /* Ensures full width for centering */
  text-align: center; /* Ensure text is centered */
}

/* News Title */
.news-title {
  text-align: center;
  color: var(--background-color) !important;
}

.news-title a:hover {
  color: var(--hover-color); /* Change color on hover */
  transition: color 0.4s ease; /* Smooth transition for color change */
}

.news-title a {
  text-decoration: none;
  color: var(--background-color) !important;
  font-size: 40px !important;
  font-weight: 700;
}

.reporter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reporter-image-container {
  display: flex; /* Enables flexbox */
  align-items: center; /* Vertically centers the image */
  justify-content: center; /* Horizontally centers the image */
  height: 100%; /* Optional: Set a height to ensure the container is sizable */
}

.reporter-image-container img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image fits nicely */
  border: 0.5px dashed var(--border-color);
}

/* Reporter Name and Date */
.reporter-name {
  align-items: center;
  font-size: 12px;
  color: #111111;
  font-weight: 600;
  height: 100%;
  width: 100%;
  margin-right: 10px;
}

.createdDateTime {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #111111;
  font-weight: 600; /* Align the icon and date vertically */
}

.featured-image-recent-post {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden; /* Ensure the image respects the border-radius */
  border-radius: 2%; /* Apply rounded corners */
}

.featured-image-recent-post img {
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.featured-image-recent-post img:hover {
  transform: scale(1.04); /* Slight zoom effect on hover */
}

@media (max-width: 768px) {
  .featured-image-recent-post {
    height: auto; /* Adjust height for smaller screens */
  }

  .news-title a {
    text-decoration: none;
    color: var(--background-color) !important;
    font-size: 40px !important;
    font-weight: 700;
  }
}

@media screen and (max-width: 576px) {
  .news-title a {
    text-decoration: none;
    color: var(--background-color) !important;
    font-size: 32px !important;
    font-weight: 600;
  }

  .single-news-title a {
    font-weight: 600;
    font-size: 32px !important;
  }
}

/* Style the category name with the underline effect for category B */
.category-name {
  position: relative;
  height: 1px;
  text-align: center;
  font-weight: bold;
  background-color: var(--background-color2);
  margin: 4rem 0;
}

/* Remove underline and color from category B anchor link */
.category-link {
  font-size: 26px;
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background-color2);
  padding: 0.5rem;
  border: 4px solid #fff;
  text-decoration: none; /* Removes the underline */
  color: white; /* Inherits the color from the parent element */
}

.category-link:hover {
  color: var(--text-hover);
}

/* News Title */
.news-title {
  text-align: center;
  font-size: 26px;
  color: var(--background-color);
}

.news-title a:hover {
  color: var(--hover-color); /* Change color on hover */
  transition: color 0.1s ease; /* Smooth transition for color change */
}

.news-title a {
  text-decoration: none;
  color: var(--text-color);
}

.reporter-date {
  display: flex;
}

.featured-image-recent-post-category {
  width: 100%;
  height: 600px; /* Keep the height consistent if this is intentional */
  position: relative;
  overflow: hidden; /* Ensure the image respects the border-radius */
  border-radius: 2%; /* Apply rounded corners */
}

.featured-image-recent-post-category img {
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out;
}

.featured-image-recent-post-category img:hover {
  transform: scale(1.04); /* Slight zoom effect on hover */
}

.featured-image-bottom {
  width: 100%;
  height: 300px; /* Fixed height for all images */
  position: relative;
  overflow: hidden; /* Ensure image fits in the container */
  border-radius: 2%;
}

.featured-image-bottom img {
  width: 100%; /* Fill the width of the container */
  height: 100%; /* Make sure the height fills the container */
  object-fit: cover; /* Ensure the image covers the container without distortion */
  display: block; /* Remove any inline-level gaps */
  transition: transform 0.4s ease-in-out;
}

.featured-image-bottom img:hover {
  transform: scale(1.04); /* Slight zoom effect on hover */
}

/* Ensure the grid layout is consistent */
.grid-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px; /* Space between grid items */
  width: 100%;
  padding: 10px;
}

/* News Title bottom */
.news-title-bottom {
  text-align: center;
  color: var(--background-color) !important;
  font-size: 26px;
  margin-top: -8px;
}

.news-title-bottom a:hover {
  color: var(--hover-color); /* Change color on hover */
  transition: color 0.1s ease; /* Smooth transition for color change */
}

.news-title-bottom a {
  text-decoration: none;
  color: var(--background-color) !important;
  font-weight: bold;
}

/* Small screens (mobile) */
@media (max-width: 576px) {
  font-size: 22px;
}

@media (max-width: 768px) {
  .featured-image-bottom {
    height: auto;
    width: 100%;
  }

  .featured-image-recent-post-category {
    height: auto;
    width: 100%;
  }
}
