
:root {
    --white-color: #fff;
    --grey-bg:#f4f4f4;
    --blue:#2f89fc;
    --black:#010101 ;
    --grey:rgb(21 21 21 / 50%);

  

  }

  /*** Globals  **/

  img {
    max-width:100%;
  }


   ul , li , p {
    color:var(--grey) !important;
  }
  h1 {
    color:#2f2f2f !important;
  }


  .article-hero-img {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
  }
  
  .article-hero-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 15s infinite linear;
    pointer-events: none;
  }
  
  .hero-background {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
  }
  
  #blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: white !important;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
  }
  
  #blog-read-time {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
  }
  
  /* Add some floating elements for visual interest */
  .article-hero-img::after {
    content: '📖';
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.3;
    animation: floatIcon 6s ease-in-out infinite;
  }
  
  @keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
  }
  
  /* Responsive design for article hero */
  @media (max-width: 768px) {
    .article-hero-img {
      min-height: 250px;
      padding: 3rem 1rem;
    }
    
    #blog-title {
      font-size: 2.2rem;
    }
    
    #blog-read-time {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .article-hero-img {
      min-height: 200px;
      padding: 2rem 1rem;
    }
    
    #blog-title {
      font-size: 1.8rem;
    }
  }


  .article-hero-img{
    padding:0;
  }
  
  .article-container {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .black-background {
    background: rgb(255, 255, 255) !important;
  }


.blog-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.post-ctn {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardFloat 6s ease-in-out infinite;
}

.post-ctn:nth-child(1) { animation-delay: 0s; }
.post-ctn:nth-child(2) { animation-delay: 1s; }
.post-ctn:nth-child(3) { animation-delay: 2s; }
.post-ctn:nth-child(4) { animation-delay: 3s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(5deg); }
    50% { transform: translateY(-5px) rotateY(-3deg); }
    75% { transform: translateY(-15px) rotateY(8deg); }
}

.post-ctn:hover {
    transform: translateY(-20px) scale(1.05) rotateY(10deg);
    z-index: 10;
}

.blog-post {
    position: relative;
    width: 280px;
    height: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 2;
}

.blog-post:hover::before {
    transform: translateX(100%);
}

.blog-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px 20px 0 0;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.blog-post:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.blog-post-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 1));
    border-radius: 0 0 20px 20px;
    z-index: 3;
}

.blog-post h2 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post p {
    color: #718096 !important;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

/* Viral indicators */
.post-ctn::after {
    content: '🔥';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: pulse 2s infinite;
    z-index: 5;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .blog-post {
        width: 240px;
        height: 280px;
    }
    
    .blog-post img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-post {
        width: 280px;
        height: 300px;
    }
}

/* Add some floating particles */
.blog-hero::after {
    content: '✨';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 24px;
    animation: sparkle 3s infinite;
    opacity: 0.6;
}

.blog-hero::before {
    content: '🚀';
    position: absolute;
    top: 60%;
    right: 15%;
    font-size: 20px;
    animation: rocket 4s infinite;
    opacity: 0.7;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

@keyframes rocket {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}


/** Blog home page continues with articles */

.articles {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
    


}

@media (min-width:675px) {
    .articles {
      grid-template-columns: repeat(2, 1fr);
    
    }

}


@media (min-width:800px) {
    .articles {
      grid-template-columns: repeat(3, 1fr);
      padding:3rem 10rem;
    
    }

}



.article-post {
    margin:2rem;
    display:flex;
    flex-direction: column;

}
.article-post > * {
    margin-bottom:1rem;
  

}
.article-post img {
   border-radius:7px;

}
.article-post h2 {
   font-size:20px;


}

.article-post p {
    max-width:30ch;
    color:var(--grey);

}

.article-post a {
    max-width:50ch;
    color:var(--blue);
    text-decoration: none;

}





#title-blog {
  color:#737373 !important;
}
  

  /*** Article page - Hero ***/
  #article-hero  {
    display:flex;
    justify-content: space-between;
    margin:auto;
    padding-top:7rem;
  
  
  }




  .blog-content {
    display:flex;
    flex-direction: column;
    width:60%;


  }

  .blog-content p{
    letter-spacing: 1px;
    line-height: 30px;
    color: var(--grey);
    max-width: 63ch;
    font-size: 1.1rem;
}

/* Blog content images styling */
.content-image-container {
    margin: 2rem 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .content-image {
        border-radius: 8px;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .content-image {
        border-radius: 6px;
    }
}

  @media (max-width:940px) {
    .blog-content p {
      font-size: 1rem;

    }
  }
  @media (max-width:940px) {
    section{
      padding: 3rem 1.5rem;
    }
  }

#more-post {
    width:25%;

}

.more-post-head{
    font-size: 18px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;


}

  @media (max-width:1017px) {
    .blog-content {
      width:90%;
  
  
    }
    #article-hero  {
        display: flex;
        align-items: center;
      
      }

  #more-post {
    display:none;


  }
  #article-hero img {
    max-width: 500px;
    max-height: 300px;


  }
}



.pagination {
    display:flex;
    justify-content: center;
    align-items: center;
    margin:2rem;
    list-style:none;
    width:100px;
}

.pagination li {
    padding:1rem;
}
.pagination span{
    background-color: var(--blue);
    text-align: center;
    display: inline-block;
    height: 40px;
    width: 40px;
    line-height: 40px;
    border-radius: 50%;

}

.pagination a {
    color:var(--white-color);
    
    text-decoration: none;
}

