@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", serif;
  background-color: #1f2734;
  overflow-x: hidden;
}
.hero-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 100px 5%;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

.content {
  flex: 1;
  max-width: 50%;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content h1 {
  color: #fff;
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}

.content p {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
}

.hero-img {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  mix-blend-mode: lighten;
}

.hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.highlight {
  color: #ee8d47;
  display: inline-block;
}

/*  */
.background-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./assets/Background\ pattern\ decorative.svg") no-repeat
    center center;
  background-size: cover;
  z-index: -1;
}

/* Style for stars */
.star {
  position: absolute;
  background-image: url("./assets/image.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Style for arrows */
.arrow {
  position: absolute;
  background-image: url("./assets/arrow\ up.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Specific positions and sizes for each star */
.star-1 {
  top: 10%;
  left: 20%;
  width: 25px;
  height: 100%;
}

.star-2 {
  top: 10%;
  left: 80%;
  width: 25px;
  height: 100%;
}

.star-3 {
  top: 50%;
  right: 10%;
  width: 15px;
  height: 15px;
}

.star-4 {
  bottom: 25%;
  left: 5%;
  width: 18px;
  height: 18px;
}

.star-5 {
  bottom: 10%;
  right: 20%;
  width: 22px;
  height: 22px;
}

/* Specific positions and sizes for each arrow */
.arrow-1 {
  top: 15%;
  right: 0;
  width: 300px;
  height: 200px;
}

.arrow-2 {
  top: 40%;
  left: 20%;
  width: 35px;
  height: 35px;
}

.arrow-3 {
  bottom: 30%;
  right: 25%;
  width: 40px;
  height: 40px;
}

.arrow-4 {
  bottom: 15%;
  left: 35%;
  width: 45px;
  height: 45px;
}

.arrow-5 {
  top: 5%;
  left: 50%;
  width: 38px;
  height: 38px;
}

.side-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(
    to right,
    rgba(58, 115, 255, 0.5),
    rgba(30, 30, 48, 0)
  );
  z-index: -3;
}

.side-glow:first-of-type {
  left: 0;
  background-color: #2e93fa;
  filter: blur(138.1999969482422px);
}

.side-glow:last-of-type {
  right: 0;
  background-color: #2e93fa;
  filter: blur(138.1999969482422px);
}
/* Grid body */
.grid-body {
  background-image: url(./assets/grid-bg.svg);
}
.seo-tools-wrapper {
  padding: 50px;
}
.tools-heading {
  color: #ffaa6d;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  line-height: normal;
}
.tab-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

/* Tab Styles */
.tabs {
  display: flex;
  gap: 16px;
  border-radius: 10px;
  background: rgba(150, 166, 194, 0.2);
  padding: 8px 16px;
}

.tab {
  padding: 10px 20px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab.active {
  border-radius: 9px;
  background: #ee8d47;
  box-shadow: 0px 1px 8px 0px rgba(60, 126, 247, 0.2);
  color: #fff;
}

/* Search Button Styles */

.search-container {
  position: relative;
}

#search-input {
  width: 100%;
  padding: 10px 40px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  transition: border-color 0.3s ease;
}

#search-input:focus {
  border-color: #000;
  outline: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.search-icon path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  stroke: #9e9ea7;
  stroke-width: 1;
  fill: none;
  animation: draw 4s ease-out forwards infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* cards */
.seo-container {
  padding: 20px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.seo-card {
  position: relative;
  padding: 16px;
  border-radius: 0.5rem;
  background: linear-gradient(
    to bottom right,
    rgba(31, 41, 55, 0.9),
    rgba(17, 24, 39, 0.9)
  );
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  transition: all 0.3s ease;
  z-index: 0;
}

/* Glow effect for odd and even cards */
.seo-grid > a:nth-child(odd) .seo-card .card-icon::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  border-radius: 0.5rem;
  filter: blur(50px);
  background-color: #24dafc; /* Glow for odd cards */
  z-index: -1;
}

.seo-grid > a:nth-child(even) .seo-card .card-icon::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  border-radius: 0.5rem;
  filter: blur(50px);
  background-color: #ff6a00; /* Glow for even cards */
  z-index: -1;
}

/* Styling for card-icon */
.card-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1; /* Ensure content is above pseudo-element */
}
/* Pseudo-class for the blurred background on the left side */
.seo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 115px;
  height: 115px;
  background: rgba(255, 170, 109, 0.3);
  filter: blur(37px);
  pointer-events: none;
}

.decorative-square {
  position: absolute;
  top: 0;
  right: -90px; /* Start position */
  background-image: url("./assets/Group 34.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 150px;
  height: 150px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateX(0);
  opacity: 0.7;
}

/* Hover effect */
.seo-card:hover .decorative-square {
  transform: translateX(-15px);
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-header h3 {
  color: #ffaa6d;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
}

.icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-content p {
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

/* next-section */
.recent-posts {
  padding: 50px;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.posts-header h2 {
  color: #ffaa6d;
  font-size: 48px;
  font-weight: 500;
  line-height: 130%;
}

.view-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #ffaa6d;
  font-size: 24px;
  font-weight: 400;
  line-height: 130%;
  border-radius: 2rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.view-more:hover {
  opacity: 0.8;
}

.view-more svg {
  width: 30px;
  height: 30px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meta-head h3 {
  color: #ffaa6d;
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
}
.post-grid {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 2rem;
}
.article-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-content h3 {
  color: #ffaa6d;
  font-size: 18px;
  font-weight: 600;
  line-height: 140%;
}
.article-content p {
  color: #e0e0ef;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
}
.post-title {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 10px;
}
.small-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-des {
  color: #e0e0ef;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}
.image-wrap img {
  width: 100%;
  border-radius: 8px;
}

.next-article {
  display: flex;
  flex-direction: column;
}

.next-article-wrap {
  display: flex;
  gap: 20px;
}

.next-article-wrap img {
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.card-meta {
  display: flex;
  gap: 10px;
  color: rgba(224, 219, 234, 0.73);
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
}
@media (max-width: 768px) {
  .posts-header {
    flex-direction: column;
    text-align: center;
  }

  .post-grid {
    grid-template-columns: 1fr; /* Full width on smaller screens */
  }

  .next-article-wrap {
    flex-direction: column;
  }

  .next-article-wrap img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .view-more {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .posts-header h2 {
    font-size: 1.5rem;
  }

  .post-grid {
    gap: 1.5rem;
  }
}

/* last-section */
.seo-wrapper {
  display: flex;
  align-items: center;
  padding: 50px;
  justify-content: space-around;
}

.seo-text {
  width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-text h1 {
  color: #ffaa6d;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
}

.seo-text p {
  color: #e0e0ef;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.seo-visual {
  flex-shrink: 0;
}

.seo-visual img {
  max-width: 100%;
}

/* media-queries */
@media (max-width: 1024px) {
  .tools-heading {
    font-size: 32px; /* Reduce heading size */
    padding: 10px; /* Add some padding for spacing */
  }

  .tab-container {
    flex-direction: column; /* Stack tabs and search on smaller screens */
    align-items: stretch;
    padding: 15px; /* Reduce padding for smaller screens */
  }

  .tabs {
    justify-content: center; /* Center tabs */
    flex-wrap: wrap; /* Allow tabs to wrap */
    gap: 10px; /* Reduce gap between tabs */
    padding: 6px 12px; /* Adjust padding */
  }

  .tab {
    padding: 8px 16px; /* Reduce tab size */
    font-size: 14px; /* Adjust font size */
  }

  .search-container {
    margin-top: 15px; /* Add margin for spacing between elements */
  }

  #search-input {
    font-size: 14px; /* Smaller input text */
    padding: 8px 35px; /* Adjust padding */
  }

  .search-icon {
    width: 18px; /* Smaller icon size */
    height: 18px;
    left: 8px; /* Adjust position */
  }
  .seo-grid {
    grid-template-columns: repeat(2, 1fr); /* Adjust grid to 2 columns */
    gap: 1rem; /* Maintain gap between cards */
  }

  .seo-card {
    width: 100%; /* Allow cards to fill the grid column */
    height: auto; /* Adjust height dynamically based on content */
    padding: 15px; /* Adjust padding for smaller screens */
  }

  .decorative-square {
    width: 120px; /* Scale down the decorative element */
    height: 120px;
    right: -70px; /* Adjust position */
  }

  .card-header h3 {
    font-size: 16px; /* Adjust font size for smaller screens */
  }

  .card-content p {
    font-size: 11px; /* Reduce paragraph text size */
  }
  .seo-wrapper {
    flex-direction: column; /* Stack text and visual vertically */
    align-items: center; /* Center-align content */
    padding: 40px; /* Adjust padding */
    gap: 30px; /* Add gap between stacked elements */
  }

  .seo-text {
    width: 100%; /* Allow text to take full width */
    gap: 15px; /* Reduce gap between text elements */
    text-align: center; /* Center-align text */
  }

  .seo-text h1 {
    font-size: 32px; /* Reduce heading size */
  }

  .seo-text p {
    font-size: 16px; /* Adjust paragraph font size */
  }

  .seo-visual img {
    width: 90%; /* Scale down image for smaller screens */
    max-width: 500px; /* Limit maximum image width */
  }
}

@media (max-width: 768px) {
  .hero-wrap {
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center align content */
    padding: 80px 5%; /* Adjust padding */
    min-height: auto; /* Allow dynamic height */
  }

  .content {
    max-width: 100%; /* Allow full width for content */
    padding-right: 0; /* Remove right padding */
    gap: 30px; /* Reduce gap between elements */
    text-align: center; /* Center-align text */
  }

  .tab-container {
    padding: 10px; /* Compact padding */
  }

  .tabs {
    gap: 8px; /* Further reduce gap between tabs */
  }

  .tab {
    padding: 6px 12px; /* Compact tab size */
    font-size: 12px; /* Smaller font size */
  }

  #search-input {
    font-size: 12px; /* Smaller input text */
    padding: 6px 30px; /* Adjust padding */
  }

  .search-icon {
    width: 16px; /* Smaller icon */
    height: 16px;
    left: 6px; /* Adjust position */
  }
  .seo-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Single-column grid for smaller screens */
    gap: 1rem; /* Maintain spacing */
  }

  .seo-card {
    padding: 12px; /* Adjust padding for smaller screens */
    border-radius: 0.4rem; /* Slightly reduce border radius */
  }

  .decorative-square {
    width: 100px; /* Further scale down */
    height: 100px;
    right: -50px; /* Adjust position */
  }

  .card-header h3 {
    font-size: 14px; /* Further reduce font size */
  }

  .card-content p {
    font-size: 10px; /* Further reduce paragraph text size */
  }
  .seo-wrapper {
    flex-direction: column;
  }
  .seo-wrapper {
    padding: 30px; /* Further reduce padding */
    gap: 20px; /* Adjust gap for smaller screens */
  }

  .seo-text h1 {
    font-size: 28px; /* Further reduce heading size */
  }

  .seo-text p {
    font-size: 16px;
  }

  .seo-visual img {
    width: 100%; /* Allow image to scale fully */
    max-width: 400px; /* Further limit maximum image width */
  }
}

@media (max-width: 480px) {
  .tab-container {
    padding: 8px; /* Compact padding */
  }

  .tabs {
    gap: 5px;
  }
  .recent-posts {
    padding: 20px;
  }
  .tab {
    text-align: center;
    padding: 5px 10px;
  }
  .seo-tools-wrapper {
    padding: 0;
  }
  #search-input {
    font-size: 10px; /* Compact input text */
    padding: 10px 25px; /* Adjust padding */
  }

  .search-icon {
    width: 14px; /* Compact icon */
    height: 14px;
    left: 5px; /* Adjust position */
  }
  .seo-grid {
    grid-template-columns: repeat(
      1,
      1fr
    ); /* Single-column grid for smaller screens */
    gap: 0.75rem;
  }
  .seo-card {
    padding: 10px; /* Compact padding for mobile */
    border-radius: 0.25rem; /* Further reduce border radius */
  }

  .card-header h3 {
    font-size: 16px; /* Reduce font size of headings */
  }

  .card-content p {
    font-size: 14px; /* Reduce font size for paragraph text */
  }

  .card-icon {
    padding: 0.4rem; /* Adjust icon padding */
  }

  .icon svg {
    width: 1.25rem; /* Scale down icon size */
    height: 1.25rem;
  }
  .seo-wrapper {
    padding: 20px; /* Compact padding for mobile screens */
    gap: 15px; /* Reduce gap */
  }

  .seo-text h1 {
    font-size: 24px; /* Compact heading size */
  }

  .seo-text p {
    font-size: 14px; /* Compact paragraph font size */
  }

  .seo-visual img {
    max-width: 100%; /* Allow full scaling of images */
  }
}
