* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
}

body::-webkit-scrollbar {
  display: none;
}

textarea:focus {
  outline: none;
}

a {
  text-decoration: none !important;
  color: #000 !important;
}

a:hover {
  text-decoration: none;
  color: #000;
}

body p {
  margin: 0;
  line-height: 28px;
}

body h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

ul {
  list-style: none;
}

textarea:focus, input:focus {
  outline: none;
}

.navbar {
  width: 100% !important;
  padding: 10px !important;
}

.navbar .left-section {
  position: relative
}

.navbar .left-section , .right-section {
  display: flex;
  align-items: center !important;
  justify-content: center;
}

.left-section .logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background-color: #fff;
  margin-right: 10px;
}

.left-section .company-name {
  color: #0085FF !important;
  margin: 0 30px 0 0!important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.4rem
}

.left-section .categories {
  font-size: 0.9rem;
  font-weight: 500;
}

.left-section .categories:hover,
.left-section .company-name,
.left-section li:hover {
  cursor: pointer
}


.left-section .main-category {
  top: 60px;
  left: 420px;
  position:absolute;
  width: max-content
}

.left-section ul {
  list-style: none;
  background-color: #fff;
  padding: 15px 15px;
  border-top-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 0 9.1px 0 rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 2;
}

.left-section ul li {
  padding-top: 20px;
  font-size: 0.9rem;
}

.left-section .category {
  top: 70px;
  right: 75px;
  width: max-content
}

.left-section .main-category, .left-section .web-development-category,  .left-section .mobile-developement-category,  .left-section .programming-category,  .left-section .engineering-category,  .left-section .block-chain-category,  .left-section .iot-category,  .left-section .cloud-category,  .left-section .data-science-category,  .left-section .cybersecurity-category {
  display: none;
}

.left-section .main-category.active {
  display: block;
}

.left-section .category.active {
  display: block;
}


.searchBar {
  position: relative;
  margin: 0 20px;
  border-radius: 5px;
  border: 1px solid #D0D5DD;
  background-color: #F2FFFB;
}

.searchBar input{
  background-color: #fff;
  padding: 8px;
  padding-left: 30px;
  width: 200px;
  font-weight: 300;
  font-size: 0.9rem;
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.explore {
  padding: 0 5px;
}

.searchBar .fa-search {
  position: absolute;
  left: 10px;
  top: 8px;
  color: #98A2B3;
}

.navbar .right-section a {
margin-right: 30px;
font-size: 0.9rem;
font-weight: 500;
}

.navbar .right-section {
  position: relative
}

.navbar  a.active {
  color: #0085FF !important
}

.navbar  a:hover {
  cursor: pointer;
  color: #0085FF !important
}

.right-section .cart {
  font-size: 1.5rem;
  margin-right: 20px;
}

.right-section .cart:hover {
  color: #0085FF;
  cursor: pointer;
}

.right-section .cart.active {
  color: #0085FF;

}

.right-section .profile i {
  margin-left: 8px;
}

.right-section .profile i.rotate {
  transform: rotate(180deg)
}

.right-section .profile i:hover {
  cursor: pointer;
}

.right-section .profile-container {
  position: relative;
}

.right-section .profile-container ul {
  position: absolute;
  right: 15px;
  top: 55px;
  background-color: rgba(230, 230, 230, 0.4); /* Add transparency */
  backdrop-filter: blur(10px); /* Apply blur effect */
  padding-left: 0;
  border-radius: 8px;
  border: none;
  width: 200px;
  z-index: 10;
  display: none;
}

.right-section .profile-container ul.active {
  display: block;
}
.right-section .profile-container a {
  color: #000;
  margin: 0;
  font-weight: 400;
}
.right-section .profile-container a:hover {
  color: #000 !important
}

.right-section .profile-container li {
  padding: 10px 20px;
  border: 0.5px solid transparent;
  font-size: 0.9rem;
}

.right-section .profile-container li:hover {
  background-color: #C3C3C3;
  border-radius: 8px;
  text-decoration: underline;
  cursor: pointer;
}

.right-section .profile-container li.active {
  background-color: #C3C3C3;
  border: 0.5px solid #747474;
}


.flex {
  display: flex;
  align-items: center;
}

.blog-details-container {
  margin: 50px 0;
  position: relative;
}

.blog-details-container .heading {
  position:absolute;
  top: 30%;
  left: 10%;
}

.blog-details-container .heading p {
  font-size: 0.8rem;
  font-weight: 400;
  margin-right: 5px
}

.blog-details-container .heading p:last-child {
  color: #5751E1;
}

.blog-details-container .heading i {
  font-size: 0.9rem;
  margin-top: 3px;
  margin-right: 5px;
  opacity: 0.6;
}

.blog-details-container .header-container {
  margin-bottom: 40px;
  position: relative;
}

.blog-content {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-evenly;
  align-items: flex-start;
}

.blog-content .left-section {
  width: 60%;
}

.blog-content .blog-right-section {
  width: 30%;
}

.blog-content .left-section .header-container {
  justify-content: space-between;
  margin-bottom: 30px !important;
  width: 100%;
}

.blog-content .left-section .header-container button {
  font-weight: 300;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  border: none;
  margin-left: 20px;
}

.blog-content .left-section .card-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

 .card {
  padding: 15px;
  width: 250px;
  margin: 10px;
}

 .card .img-container {
  position: relative;
  margin-bottom: 5px;
}

.card .img-container img {
  width: 100%;
  height: 170px;
  border-radius: 10px;
}

.card .img-container p {
  background-color: #FF7675;
  padding: 1px 8px;
  font-weight: 300;
  color: #fff;
  border-radius: 15px;
  font-size: 0.7rem;
  position: absolute;
  top: 5px;
  left: 5px;
}

.card .small-details .flex{
  margin-right: 12px;
}

.card .small-details {
  flex-direction :column;
  margin-bottom: 10px;
  text-align: left;
}

.card .small-details i {
  font-size: 0.88rem;
  color: #5751E1;
  margin-right: 5px;
}

.card .small-details p {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6D6C80
}

.blog-right-section .search-container {
  position: relative;
  width: 100%;
  margin-top: 30%;
  margin-bottom: 6%;
}

.blog-right-section .search-container i {
  position:absolute;
  left: 10px;
  font-size: 1rem;
  color: #5751E1
}

.blog-right-section .search-container input {
  border: none;
  background-color: #F7F7F9;
  border-radius: 5px;
  width: 100%;
  padding: 10px 10px 10px 35px;
  font-size: 0.9rem;
  font-weight: 300;
}

.blog-right-section .categories-container {
  padding: 6%;
  border-radius: 10px;
  background-color: #F7F7F9;
  margin: 6% 0;
}

.blog-right-section .categories-container ul {
  padding-left: 0;
}

.blog-right-section .categories-container li {
  padding: 10px;
  color: #6D6C80;
  font-weight: 300;
  font-size: 0.9rem;
}

.blog-right-section .categories-container i {
  margin-right: 10px;
  color: #5751E1;
  font-size: 0.9rem;
}

.blog-right-section .post-container {
  padding: 6%;
  border-radius: 10px;
  background-color: #F7F7F9;
  margin: 6% 0;
}

.post-container .post {
  margin-bottom: 15px;
}

.blog-right-section .post-container .post-img {
  width: 100px;
  height: 70px;
  margin-right: 20px
}

.blog-right-section .post-container .post i {
  color: #5751E1;
  font-size: 0.9rem;
  margin-right: 10px;
}

.blog-right-section .post-container .post p {
  font-size: 0.8rem;
  color: #7F7E97;
  font-weight: 300;
}

.blog-right-section .post-container .post h6 {
  font-size: 1rem;
  margin-top: 10px;
}

.blog-right-section .tag-container {
  padding: 6%;
  border-radius: 10px;
  background-color: #F7F7F9;
  margin: 5% 0;
}

.blog-right-section .tag-container .flex{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.blog-right-section .tag-container p {
  padding: 5px 15px;
  font-weight: 300;
  font-size: 0.9rem;
  background-color: #fff;
  border-radius: 5px;
  color: #00B894;
  margin: 5px;
}


.footer-section {
  background-color: #101828;
  padding-top: 40px;
  padding-bottom: 15px;
  padding-left: auto;
  padding-right: auto;
  text-align: center;
}

.footer-section li {
  text-align: left;
  color: #fff !important;
}

.company-details {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 40px;
  flex-wrap: wrap;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.company-details .app {
  margin-left: 10px;
}

.app p {
  margin: 0;
}

.more-items {
  margin: 15px;
}

.more-items ul {
  text-align: left;
  font-size: 0.95rem;
}

.footer-section li {
  margin-bottom: 5px;
  color: #fff !important;
}

.footer-section .list-header {
  color: #98A2B3 !important;
  font-weight: 500;
  text-decoration: none !important;
}

.footer-section li:hover {
  cursor: pointer;
  text-decoration: underline;
}


.socials i {
  font-size: 1.5rem;
  margin-right: 12px;
  color: #98A2B3
}

.socials i:hover {
  cursor: pointer;
  color: #fff;
}

.footer-below-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  color: #98A2B3;
}

/* Existing styles remain the same until media queries */

/* New Mobile-First Media Queries */
@media screen and (max-width: 1200px) {
  .blog-content {
    flex-wrap: wrap;
  }
  
  .blog-content .left-section {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .blog-content .blog-right-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .blog-right-section .search-container {
    margin-top: 0;
    width: 100%;
    order: -1;
  }
  
  .blog-right-section .categories-container,
  .blog-right-section .post-container,
  .blog-right-section .tag-container {
    width: 48%;
    margin: 2% 0;
  }
}

@media screen and (max-width: 992px) {
  .navbar .left-section {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .navbar .left-section .company-name {
    margin-right: 15px;
  }
  
  .blog-details-container .heading {
    position: relative;
    top: auto;
    left: auto;
    padding: 20px;
    text-align: center;
  }
  
  .card {
    width: calc(50% - 20px);
    margin: 10px;
  }
}

@media screen and (max-width: 865px) {
  .navbar .left-section .searchBar {
    display: none;
  }
  
  .navbar .left-section .categories {
    display: none;
  }
  
  .navbar .right-section {
    margin-left: auto;
  }

  .company-details ul,
  .company-details .description,
  .company-details .app {
    margin-top: 10px;
  }
  .company-details{
    justify-content: space-between;
  }
  .company-details ul{
    width: 50%;
  }
}

@media screen and (max-width: 768px) {

  .navbar .left-section .main-category {
    left: 20px;
    width: calc(100% - 40px);
  }
  
  .blog-content .left-section .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .blog-content .left-section .header-container button {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .card {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
  }
  
  .blog-right-section .categories-container,
  .blog-right-section .post-container,
  .blog-right-section .tag-container {
    width: 100%;
  }
}

  @media screen and (max-width: 729px) {
   .company-details{
    justify-content: space-around;
    gap: 30px;
  }

  .company-details .description, .company-details .app{
    width: 100%;
    margin-bottom: 8px;
  }
  .company-details ul{
    width: 33%;
  }
}

@media screen and (max-width: 610px) {
  .footer-below-section {
    flex-direction: column-reverse;
  }
  .footer-below-section .socials {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 576px) {
  .navbar {
    padding: 10px 5px !important;
  }
  
  .left-section .logo {
    height: 40px;
    width: 40px;
  }
  
  .navbar .company-name {
    font-size: 1.1rem;
  }
  
  .right-section .cart {
    margin-right: 10px;
  }
  
  .blog-details-container {
    margin: 30px 0;
  }
  
  .blog-content {
    width: 100%;
    padding: 0 10px;
  }
  
  .blog-right-section .search-container input {
    font-size: 0.8rem;
  }
  
  .footer-below-section {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-below-section .socials {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 550px) {
  .navbar .company-name {
    display: none;
  }
  
  .header-section .lower-section {
    display: none;
  }
  
  .navbar .right-section .btn {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}


@media screen and (max-width: 478px) {
  .company-details {
    gap: 20px;
  }
}

/* Touch Device Adjustments */
@media (hover: none) and (pointer: coarse) {
  .left-section .categories:hover,
  .navbar a:hover {
    color: inherit !important;
  }
  
  .right-section .profile-container li:hover {
    background-color: transparent;
    border-color: transparent;
  }
}

@media screen and (max-width: 375px) {
  .navbar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px;
  }

  .navbar .left-section .logo {
    width: 40px;
    height: 40px;
  }

  .navbar .right-section {
    margin-left: 10px;
  }

  .navbar .right-section a {
    font-size: 0.7rem;
    margin-right: 12px;
  }

  .navbar .right-section i {
    width: 10px;
    height: 10px;
  }

  .footer-section .company-details{
    justify-content: flex-start;
    gap: 10px;
  }
}