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

body {
  height: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

body p {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

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

body a:hover {
  color: #000 !important
}

ul {
  list-style: none;
}

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

.navbar {
  width: 100% !important;
  padding: 10px !important;
  flex-wrap: nowrap !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 .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 {
  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;
  z-index: 30;
}

.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;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border: none;
  font-weight: 300;
  font-size: 0.9rem;
}

.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;
  text-decoration: none;
  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-between;
  align-items: flex-start;
}

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

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

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

.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 .small-details {
  margin: 20px 0;
}

.blog-content .left-section .small-details .flex i {
  font-size: 0.9rem;
  color: #00B894;
  margin-right: 5px;
}

.blog-content .left-section .small-details .flex p {
  font-weight: 400;
  font-size: 0.9rem;
  margin-right: 10px;
  color: #6D6C80;
}

.blog-content .left-section .para {
  font-size: 0.95rem;
  color: #6D6C80;
  margin-bottom: 10px;
  line-height: 28px;
}

.blog-content .left-section .quote-container {
  padding:30px;
  border-left: 5px solid #00B894;
  background-color: #EFEEFE;
  position: relative;
  margin: 5% 0 5% auto;
  width: 90%;
}

.blog-content .left-section .quote-container p {
  font-family: "Poppins", sans-serif;
  font-style:italic;
  width: 70%;
}

.blog-content .left-section .quote-container i {
  color: #CECCFD;
  font-size: 3rem;
  position:absolute;
  top: 20%;
  right: 20%;
}

.blog-content .left-section .lists li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px;
  color: #161439;
  font-weight: 600;
}

.blog-content .left-section .lists span {
  display: flex;
  align-items: center;
}

.tags h6 {
  font-weight: 600;
  margin-right: 10px;
  margin-top: 5px;
}

.tags .tag {
  margin-right: 10px;
  padding: 8px 25px;
  background-color: #FF7675;
  font-weight: 300;
  color: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
}

.tags .right-section i {
  font-size: 1.3rem;
  color: #6D6C80;
  margin-right:5px;
}

.author-container {
  margin: 3% 0;
  padding:3%;
  border-radius: 5px;
  background-color: #F7F7FA;
}

.author-container img {
  border-radius: 50%;
  margin-right: 15px
}

.author-container p {
  font-size: 0.9rem;
}

.comments-container .comment {
  margin-top: 20px;
}

.comments-container img {
  margin-right: 20px;
}

.comments-container .comment .header {
  justify-content: space-between;
}

.comments-container .comment p {
  color: #6D6C80;
  font-size: 0.9rem;
}

.comments-container .comment button {
  margin-top: 15px;
  border: none;
  background-color: #F7F7FB;
  color: #EF4444;
  font-weight: 300;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.post-container {
  background-color: #F7F7FA;
  border-radius: 10px;
  padding: 3%;
  margin: 3% 0;
}

.post-container textarea {
  width: 100%;
  border: 1px solid #E1E4E7;
  height: 150px;
  margin: 15px 0;
  border-radius: 5px;
}

.post-container input[type="text"] {
  border: 1px solid #E1E4E7;
  margin-right: 10px;
  border-radius: 5px;
  padding: 10px;
  width: 50%;
  margin-bottom: 10px;
}

.post-container button {
  background-color: #34C471;
  border: 2px solid #000;
  padding: 5px 20px;
  border-radius: 20px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.post-container button img {
  margin-left: 10px;
  margin-bottom: 2px;
}

.post-container button:hover {
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px #3D3D3D;
}

.articles-container {
  background-color: #F7F7FA;
  border-radius: 10px;
  padding: 4%;
  margin: 3% 5%;
}

.articles-container .articles {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
}

/* Updated card container styles */
.articles-container .card-container {
  padding: 15px;
  background-color: #DAD1D1;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25), 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
  border-radius: 20px;
  width: 480px;
  max-width: 100%;
}

.articles-container .articles.reverse {
  flex-direction: row-reverse;
}

.articles-container .card-container .card {
  padding: 15px;
}

.articles-container .card-container .card .img-container {
  position: relative;
  margin-bottom: 5px;
  width: 100%;
  height: 170px;
}

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

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

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

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

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

.articles-container .articles {
  justify-content: space-between;
}

.articles-container .articles .content {
  margin: 0 20px 20px 50px;
}

.articles .content h6 {
  font-weight: 600;
}

.articles .content button {
  padding: 10px 40px;
  background-color: #fff;
  border: 4px solid #9A8181;
  border-radius: 20px;
  margin-top: 25px;
}

.articles .content button:hover {
  cursor: pointer;
  background-color: #9A8181;
  color: #fff;
}

.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;
}

.recommended-course-container {
  background: #0085FF80;
  padding: 20px 10%;
}

.recommended-course-container h5 {
  font-weight: 600;
  font-size: 1.2rem;
}

.recommended-course-container .flex {
  align-items: flex-start;
}

.recommended-course-container .content h6 {
  font-weight: 500;
}

.recommended-course-container .content p {
  font-weight: 300;
}

.recommended-course-container .course-img{
  width: 150px;
  height: 100px;
  border-radius: 5px;
  margin-right: 15px;
}

.recommended-course-container .course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommended-course-container button {
  border: none;
  color: #fff;
  background-color: #0085FF;
  padding: 5px 25px;
  border-radius: 5px;
  white-space: nowrap;
  margin-left: 20px;
}


.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;
}

/* Additional responsive tweaks */
@media screen and (max-width: 1024px) {
  .blog-right-section {
      display: none;
  }
  .navbar .right-section {
      margin-left: auto;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Improve touch targets */
button, input[type="checkbox"] {
  min-width: 44px;
  min-height: 44px;
}

@media screen and (max-width: 865px) {
  .navbar .left-section .searchBar {
    display: none;
  }
  .navbar .left-section .categories {
    display: none;
  }
  .questions-container, .submit-container {
    width: 90%;
  }

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


/* Add this at the end of the existing CSS */

/* Medium devices (tablets, 768px and down) */
@media screen and (max-width: 768px) {
  body {
      font-size: 14px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }

  .navbar {
      padding: 10px 5px !important;
  }

  .navbar .left-section .company-name {
      font-size: 1.1rem;
      margin-right: 15px !important;
  }

  .navbar .right-section a {
      margin-right: 15px;
      font-size: 0.8rem;
  }

  .blog-details-container .heading {
      left: 5%;
      top: 25%;
  }

  .blog-content .left-section {
      width: 100%;
      padding: 0 15px;
  }

  .blog-content .left-section .header-container {
      flex-direction: column;
      align-items: flex-start;
  }

  .blog-content .left-section .small-details {
      flex-wrap: wrap;
      gap: 10px;
  }

  .author-container {
      flex-direction: column;
      align-items: flex-start;
  }

  .author-container img {
      margin-bottom: 15px;
  }

  .comments-container {
      flex-direction: column;
      align-items: flex-start;
  }

  .comments-container img {
      margin-bottom: 15px;
  }

  .post-container .flex {
      flex-direction: column;
  }

  .articles-container .articles {
    flex-direction: column;
    align-items: center;
  }

  .articles-container .card-container {
      width: 100%;
      max-width: 480px;
      margin-bottom: 20px;
  }

  .articles .content {
      margin: 20px 0 0 0 !important;
      width: 100%;
      text-align: center;
  }

  .post-container input[type="text"] {
      width: 100%;
      margin-right: 0;
  }

  .recommended-course-container .flex {
      flex-direction: column;
      align-items: flex-start;
  }

  .recommended-course-container button {
      margin-left: 0;
      margin-top: 15px;
  }

}

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

  .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: 550px) {
  .navbar .company-name {
    display: none;
  }
  .header-section .lower-section {
    display: none;
  }
  .navbar .right-section .btn {
    z-index: 10;
  }
}

/* Small devices (phones, 480px and down) */
@media screen and (max-width: 480px) {

  .blog-details-container .heading h1 {
      font-size: 1.4rem;
  }

  .blog-content .left-section h3 {
      font-size: 1.2rem;
  }

  .blog-content .left-section .quote-container {
      width: 100%;
      padding: 15px;
  }

  .blog-content .left-section .quote-container p {
      width: 65%;
  }

  .tags {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
  }

  .articles-container .card-container {
      width: 100%;
      margin-bottom: 10px;
  }

  .articles-container .articles {
      flex-direction: column;
  }

  .articles-container {
    padding: 20px;
    margin: 3% 0;
  }

  .articles-container .card-container {
      padding: 10px;
  }

  .articles-container .card-container .card {
      padding: 10px;
  }

  .articles-container .card-container .card .img-container {
      height: auto;
      min-height: 150px;
  }

  .articles .content h6 {
      font-size: 1.1rem;
      margin-bottom: 10px;
  }

  .articles .content p {
      font-size: 0.9rem;
  }

  .articles .content button {
      padding: 8px 30px;
      margin-top: 15px;
  }

  .articles-container .content {
      margin: 20px 0 0 0;
  }

  .recommended-course-container {
      padding: 20px;
  }

  .footer-section li {
      font-size: 0.9rem;
  }

  .profile-container ul {
      right: 0;
      width: 180px;
  }

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

  .blog-content .left-section img {
      height: auto;
      max-width: 100%;
  }

  .post-container button {
      width: 100%;
      justify-content: center;
  }
}

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


@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;
  }
}