/*header*/

/*end header*/


/*body{*/
/*    font-family: Arial, sans-serif !important;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*     background-color: #f4f4f4 !important;*/
/*}*/

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    
}

.blog-container.h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.blogs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    height: 100%;
    overflow-y: auto; 
    width:100%;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: flex-end;
    height: 250px; 
    position: relative;
    
}
.blog-card-large {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: flex-end;
    height: 250px;
    position: relative; 
    
}

.blogs-f{
    display: flex;
    gap: 9px;
    margin-top: 11px;
}

.blog-card-large {
    grid-column: span 2;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: 1; 
}
.blog-card img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(130, 130, 130, 0.4); 
    z-index: 3;
}
.blog-card h2,
.blog-card p {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 10px 15px;
    color: rgb(231, 229, 229) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 15px;
    font-weight: 600;
    text-align:left;
}
.blog-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-card-large img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 109%;
    object-fit: cover; 
    z-index: 1;
}
.blog-card-large img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(130, 130, 130, 0.4); 
    z-index: 3; 
}
.blog-card-large h2,
.blog-card-large p {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 10px 15px;
    color: rgb(231, 229, 229) !important;
    font-size:1.8rem;
    font-weight:600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align:left;
}


.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    text-transform: uppercase;
    z-index: 2; 
}

.tag.red {
    background-color: #e74c3c;
    margin-top: 339px;
}

.tag.green {
    background-color: green;
    margin-top: 100px;
}

.tag.purple {
    background-color: #9b59b6;
    margin-top: 50px;
}

.tag.orange {
    background-color: #f39c12;
    margin-top: 40px;
}

/* Responsive Design for Large Screens */
@media (min-width: 992px) {
    
  .blog-card-large h2, .blog-card-large p{
      font-size:1rem;
      font-weight:600;
      text-align:left;
  }  


}

/* Responsive Design for Medium Screens */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    .blog-card-large {
        grid-column: span 1;
    }
    .blog-container {
        padding: 10px;
        margin-top:150px;
    }

    .blog-card {
        height: 145px; 
    }
     .blog-card-large h2, .blog-card-large p{
      font-size:1rem;
      font-weight:600;
  } 
    .blog-card-large {
        grid-column: span 2;
        height:207px;
    }


}

/* Responsive Design for Small Screens */
@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    .blog-card img {
        height: 150px;
    }

    .blog-card h2 {
        font-size: 16px;
        margin-bottom: -18px;
    }

    .blog-card p {
        font-size: 12px;
    }
    .tag.red {
        background-color: #e74c3c;
        margin-top: 40px;
    }
    
    .tag.green {
        background-color: green;
        margin-top: 10px;
    }
    
    .tag.purple {
        background-color: #9b59b6;
        /*margin-top: 50px;*/
        margin-top:-2px;
    }
    
    .tag.orange {
        background-color: #f39c12;
        margin-top: 40px;
    }
     .blog-card-large h2, .blog-card-large p{
      font-size:1rem;
      font-weight:600;
  } 
}


/* latest */
.latest-posts {
    font-family: Arial, sans-serif;
    /* margin: 20px auto; */
    /* margin-right: 20px  ; */
    max-width: 800px; 
    margin: auto;
    
}

.latest-posts h2 {
    font-size: 24px;
    margin-bottom: 3px;
    position:relative;
    /*right:200px;*/
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    display: flex;
    gap: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    align-items: flex-start;
}

.post img {
    width: 150px;
    height: 150px;
    border-radius: 3px;
    object-fit: cover;
}

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.post-content p {
    font-size: 14px;
    color: #666;
}

.view-all {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    /* position: absolute; */
    /* left: 66%; */
    transform: translateX(-50%);
    margin-left: -6%;
}

.load-more {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.load-more:hover {
    background-color: #0056b3;
}

.ff {
    display: flex;
    gap: 500px; 
    align-items: flex-end;
}

/* Media Queries for Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .post {
        flex-direction: column; 
        gap: 15px; 
    }

    .post img {
        width: 100%; 
        height: auto;
    }

    .post-content h3 {
        font-size: 16px;
    }

    .post-content p {
        font-size: 13px;
    }

    .ff {
        flex-direction: row; 
        gap: 250px;
    }

hr:not([size]) {
    height: 1px;
    width: 94%;
}
    .load-more {
        width: 30%; 
        text-align: center;
        font-size: 14px;
    }
    
    
}

@media screen and (max-width: 480px) {
    .latest-posts h2 {
        font-size: 20px;
    }

    .post img {
        width: 100%; 
        height: auto;
    }

    .post-content h3 {
        font-size: 14px;
    }

    .post-content p {
        font-size: 12px; 
    }

    .load-more {
        padding: 10px 15px;
        font-size: 12px;
    }
    
}




/*    recent post */


.single1 {
    margin-left: 5px;
  }
  
  .single1 h4 {
    line-height: 1.5em !important;
    font-size: 14px;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
  }
  .recent2 .img-fluid{
    max-width: 113px;
    max-height: 90px;
  }
  .single1 {
    margin-top: 133px;
    height: 100%;
    border: 0.5px solid #fff;
    background-color: #fff;
    padding: 10px;
  }
  
  .recent-posts-widget .helloch:hover h4 {
    color: #49e4fa;
  }
  
  
  @media (max-width: 960px) {
    .recent-posts-widget .helloch {
      margin-bottom: 20px;
    }
  }
  
.helloch{
    display:flex;
    justify-content: center;
    gap: 30px;
}
@media (max-width: 768px) {
    .recent-posts-widget .helloch {
      margin-bottom: 20px;
    }
    .single1{
        margin-top: auto;
    }
  }
 
.helloch{
    display:flex;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 480px) {
    .recent-posts-widget .helloch {
      margin-bottom: 20px;
    }
  }
  
.helloch{
    display:flex;
    justify-content: center;
    gap: 30px;
}
.gg {
    display: flex;
    flex-direction: column; 
    flex-wrap: nowrap;
    gap: 50px;
    margin: 2px 10px;
    margin-right: 1px;
}

/* For screens larger than 768px */
@media screen and (min-width: 768px) {
    .gg {
        flex-direction: row;
        gap: 30px;
        margin: 20px 200px;
        margin-right: 118px;
    }
}

/* For screens larger than 960px */
@media screen and (min-width: 960px) {
    .gg {
        flex-direction: row;
        gap: 50px;
        margin: 20px 200px;
        margin-right: 118px;
    }
}

.overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.45);
    z-index:1;
}

.blog-card .large .blog-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; 
    pointer-events: none; 
}
a {
    color: #ffffff;
    text-decoration: unset;
}

