* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p, a, span, div, h1, h2, h3, h4, h5, h6 {
    color: #2e2e2e;
}
body {
    font-family: 'Lexend Deca', sans-serif;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


 main{
    width: 100%;
    max-width: 1250px;
    min-height: 70vh;
 }

 @media (max-width: 1300px) {
    header, main{
       padding-right: 3%;
       padding-left: 3%;
    }
    .search-layout{
     padding-left: 5%;
     margin-right: 5%;
    }
    
 }
 main .content-section{
    margin-bottom: 50px;
    padding: 20px;
    box-shadow: 0 0.5px 3px 0 #cac9c9;
    border-radius: 10px;
 }
 main .content-section h1{
    font-size: 26px;
    margin-top: 30px;
    letter-spacing: 0.3px;
 }
 main .content-section h2{
     font-size: 25px;
     margin-top: 30px;
     letter-spacing: 0.3px;
  }
  main .content-section h3{
     font-size: 24px;
     margin-top: 30px;
     letter-spacing: 0.3px;
  }
  main .content-section h4{
     font-size: 23px;
     margin-top: 30px;
     letter-spacing: 0.3px;
  }
 
  main .content-section p{
     line-height: 34px;
     font-size: 18px;
     letter-spacing: 0.2px;
     color: #2e2e2e;
     margin-top: 18px;
  }
 
  main .content-section ul, main .content-section ol{
     margin-top: 15px;
     margin-left: 30px;
  }
  main .content-section ul li,  main .content-section ol li{
     line-height: 34px;
     font-size: 18px;
     letter-spacing: 0.2px;
     color: #2e2e2e;
     margin-top: 15px;
  }
 
 
  main  .highlighted-text{
    border-left: 20px solid #00bf63;
    border-right: 20px solid #00bf63;
    border-radius: 5px 55px 5px 55px;
    text-align: center;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px 0 #cac9c9;
    letter-spacing: 0.3px;
    font-size: 26px;
    line-height: 39px;
}

@media (max-width: 600px) {
    main  .highlighted-text{
        letter-spacing: 0.2px;
        font-size: 23px;
        line-height: 36px;
    }

    main .content-section h1{
        font-size: 23px;
        line-height: 35px;
     }
     main .content-section h2{
         font-size: 22px;
         line-height: 33px;
      }
      main .content-section h3{
         font-size: 21px;
         line-height: 32px;
      }
      main .content-section h4{
         font-size: 20px;
         line-height: 31px;
      }
     
}

main .posts-section{
    margin-top: 35px;
    margin-bottom: 60px;
}
main .posts-section .highlighted-div{
    display: flex;
    align-items: center;
}
main .posts-section .highlighted-div h1, main .highlighted-div h2, main .highlighted-div h3, main .highlighted-div h4, .highlighted-div .head-text{
    margin-right: auto;
    font-size: 22px;
    font-weight: 700;
    border-left: 8px solid #00bf63;
    padding-left: 8px;
}
main .posts-section .highlighted-div a{
    display: inline-flex;
    background-color: #00bf63;
    padding: 6px 15px;
    align-items: center;
    font-size: 15px;
    text-decoration: none;
    border-radius: 4px;
}
main .posts-section .highlighted-div a span{
    color: white;
    cursor: pointer;
}

main .posts-section .post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

main .posts-section .post-grid .post {
    position: relative;
    display: inline-block;
}

main .posts-section .post-grid .post:hover {
    transform: translateY(-5px);
}

main .posts-section .post-grid .post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

main .posts-section .post-grid .post .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-top: 50px;
    box-sizing: border-box;
}

.posts-section .post-grid .post .overlay .category {
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.2px;
    background: rgba(255, 255, 255, 0.384);  
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
}

.posts-section .post-grid .post .overlay .category:hover {
    background: rgba(0, 0, 0, 0.4);  
}


main .posts-section .post-grid .post .overlay .title {
    font-size: 14px;
    margin-top: 4px;
    color: #fff;
    margin-right: 30px;
}

main .posts-section .post-grid .post .overlay .download {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 18px;
    color: #fff;
}

main .posts-section .load-more-div{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
main .posts-section .load-more-div button {
    padding: 10px 24px;
    background-color: #1976d2;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, transform 0.2s;
}

main .posts-section .load-more-div button:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

main .posts-section .load-more-div button:active {
    transform: translateY(0);
}



@media (max-width: 992px) {
    main .posts-section .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    main .posts-section .post-grid {
        grid-template-columns: 1fr;
    }

    main .posts-section .post-grid .post img {
        height: 350px;
    }
}

main .category-section{
    margin-top: 35px;
    margin-bottom: 60px;
}

main .category-section .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}


main .category-section .category-grid a {
    display: flex;
    flex-direction: column;
    height: 140px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    background-size: 200% 200%;
    background-position: center;
    animation: gradientShift 5s ease infinite;
}

main .category-section .category-grid a span {
    font-size: 14px;
    margin-bottom: 5px;
}

main .category-section .category-grid a p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

main .category-section .category-grid a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


