* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  /* 6.25% = 1 px  */
  /* 62.5% = 1 rem =  10 px  */
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

html body {
  overflow-x: hidden !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
  font-size: 5rem !important;
  font-weight: normal;
  color: black !important;
}

h2 {
  font-size: 5rem !important;
  font-weight: 550;
  color: black !important;
}

h3 {
  font-size: 4rem !important;
  font-weight: normal;
  color: black !important;
}

h4 {
  font-size: 2rem !important;
  font-weight: normal;
  color: black !important;
}

h5 {
  font-size: 1rem !important;
  font-weight: normal;
  color: black !important;
}

h6 {
  font-size: 0.5rem !important;
  font-weight: normal;
  color: black !important;
}

P {
  font-size: 1.5rem !important;
  line-height: 25px;
  color: rgb(0, 0, 0) !important;
}

span {
  color: #006aff !important;
  font-size: 1.5rem !important;
  font-weight: 550 !important;
}

ul {
  color: white !important;
}

li {
  font-size: 1.5rem;
}

.max-width {
  width: 85vw;
  margin: auto;
}

.color-gray {
  color: #808080 !important;
}

.color-white {
  color: white !important;
}

/* hero section  */

.hero-section {
  position: relative;
}

.blog-hero {
  width: 100%;
  filter: brightness(0.5);
}

.text-section {
  position: absolute;
  text-align: center;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

/* .text-section p {
  width: 50%;
} */

/* blog 1st card  */

.our-blog {
  margin-top: 50px;
}

.our-blog h2 {
  margin-bottom: 20px;
}

.our-blog p {
  width: 50%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin: auto;
  max-width: 85vw;
  padding: 70px 0px;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 380px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
}

.card p {
  padding: 0px 10px;
  margin: 10px 0;
}

.card h4 {
  padding: 0px 10px;
  margin: 10px 0;
}

.see-more {
  padding: 10px 20px;
  border-radius: 10px;
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  width: fit-content;
  margin-left: 10px;
  font-size: 1.5rem !important;
}

.post-card a {
  background-color: black;
  padding: 10px 20px;
  color: white;
  border-radius: 5px;
  font-size: 1.2rem !important;
}

.post-card a:hover {
  background-color: white; /* Invert the background color */
  color: black; /* Change the text color */
  text-decoration: none; /* Ensure no underline appears */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
  transform: translateY(-2px); /* Slight upward movement */
  transition: all 0.3s ease-in-out; /* Smooth transition for all changes */
}

.wp-block-buttons a.top-blog-button {
  margin: 20px 0px 40px 10px !important;
  display: inline-block; /* Try if the margins are respected */
}

/* featured section api 2  */

.featured-section {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: auto;
}

.left-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(33, 37, 41, 1);
  width: 50%;
  box-sizing: border-box;
  padding: 50px 0px;
}

.blog-row {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 85%;
}

.blog-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.blog-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.blog-content {
  flex-grow: 1;
}

.blog-content p {
  color: white !important;
  margin-bottom: 15px;
}

.right-side {
  width: 50%;
  box-sizing: border-box;
}

.right-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-heading {
  margin-bottom: 50px;
}

.blog-content a {
  padding: 5px 15px;
  background-color: black;
  color: white;
  cursor: pointer;
  border-radius: 20px;
  /* margin-left: -10px */
}

.blog-content a:hover {
  background-color: white; /* Change the background color */
  color: black; /* Change the text color */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
  transform: scale(1.05); /* Slightly enlarge the button */
  transition: all 0.3s ease-in-out; /* Smooth transition for the changes */
}

/* aniamtion  */

/* Typewriter effect */
.typewriter-p {
  overflow: hidden; /* Ensures text doesn't overflow */
  white-space: nowrap; /* Keeps text in one line */
  width: 0; /* Initially hides the text */
  animation: typing 8s steps(80) 1s forwards, blink 0.75s step-end infinite; /* Typing effect */
}

/* Typing animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}



@media (max-width: 992px) {
  h1 {
    font-size: 4rem !important;
    font-weight: normal;
    color: black !important;
  }

  h2 {
    font-size: 4rem !important;
    font-weight: normal;
    color: black !important;
  }

  h3 {
    font-size: 3.5rem !important;
    font-weight: normal;
    color: black !important;
  }

  h4 {
    font-size: 2rem !important;
    font-weight: normal;
    color: black !important;
  }

  h5 {
    font-size: 1rem !important;
    font-weight: normal;
    color: black !important;
  }

  h6 {
    font-size: 0.5rem !important;
    font-weight: normal;
    color: black !important;
  }

  P {
    font-size: 1.5rem !important;
    color: rgb(0, 0, 0) !important;
  }

  span {
    color: #006aff !important;
    font-size: 1.5rem !important;
    font-weight: 550 !important;
  }

  .featured-section {
    flex-direction: column;
  }

  .left-side,
  .right-side {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .card-container {
    justify-content: center; /* Center cards on smaller screens */
  }

  .card {
    width: 250px; /* Adjust width for smaller screens */
  }

  .blog-hero {
    width: auto;
    height: 80vh;
  }

  .text-section p,
  .our-blog p {
    width: 100%;
  }

  .text-section {
    top: 30%;
  }
}

@media (max-width: 556px) {
  h1 {
    font-size: 3rem !important;
    font-weight: normal;
    color: black !important;
  }

  h2 {
    font-size: 3rem !important;
    font-weight: normal;
    color: black !important;
  }

  h3 {
    font-size: 2.5rem !important;
    font-weight: normal;
    color: black !important;
    line-height: 35px;
  }

  h4 {
    font-size: 2rem !important;
    font-weight: normal;
    color: black !important;
  }

  h5 {
    font-size: 1rem !important;
    font-weight: normal;
    color: black !important;
  }

  h6 {
    font-size: 0.5rem !important;
    font-weight: normal;
    color: black !important;
  }

  P {
    font-size: 1.5rem !important;
    color: rgb(0, 0, 0) !important;
  }

  span {
    color: #006aff !important;
    font-size: 1.5rem !important;
    font-weight: 550 !important;
  }

  li {
    font-size: 1.5rem !important;
  }

  .card {
    width: 100%; /* Make cards take full width on very small screens */
    max-width: 300px; /* Keep the max-width constraint */
    margin: 0 auto; /* Center single cards */
  }

  .blog-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
