.flex-center{
    display: flex;
    justify-content: center;
}
.flex-row{
    display: flex;
    flex-direction: row;
    gap: 10%;
}
.col-1-66{
    width: 66%;
}
.col-2-34{
    width: 34%;
}

/* blogHero */
    .blogHero {
      position: relative;
      height: 70vh;
      background: url('https://via.placeholder.com/1200x600') center/cover no-repeat;
      display: flex;
      align-items: flex-end;
      color: #fff;
    }
    .blogHero-content {
      background: rgba(0, 0, 0, 0.6);
      padding: 2rem;
      width: 100%;
    }
    .blogHero-content h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
    .blogHero-content p { font-size: 1.2rem; }

/*Featured Post*/
.featuredHeading {
    width: 100%;
    padding: 20px;
    justify-content: center;
    display: flex;
}
.featuredHeading h1{
    text-align: justify;
}
.featured-post {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: fit-content;
}
.featured-title a,.post-title{
text-decoration: none;
color: var(--text-primary);
font-weight: 700;
text-transform: uppercase;
font-size: 2.7125rem;
line-height: 3.0625rem;
letter-spacing: 0.063rem;
}
.featured-title a:hover{
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-decoration-thickness: 5px;
}

    /* Charts */
    
    .charts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      padding: 2rem;
    }
    .chart {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 1rem;
    }
    .chart h2, .browse h1 {
      margin-bottom: 1rem;
      border-bottom: 2px solid var(--text-primary);
      padding-bottom: 0.5rem;
    }
    .chart ul { list-style: none; }
    .chart li {
      display: flex;
      justify-content: space-between;
      padding: 0.5rem 0;
      border-bottom: 1px solid #eee;
    }
    .chart a{
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        text-transform: capitalize;
    }
    .chart a:hover{
        text-decoration: underline;
        text-decoration-color: var(--primary-light);

    }
    .post-list{
        padding-bottom: 40px;
        padding-top: 40px;
    }
.btn-load
{
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    color: var(--bg-primary);
    padding: 7px;
    border-radius: 10%;
}
.btn-load:hover{
    color: var(--primary-light);
    background: transparent;

}
.btn-load a{
    color: var(--bg-secondary);
}
.btn-load :hover{
    color: var(--text-secondary);
}

 /* Editorial Grid */
 .explore-card{
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 2px solid var(--text-primary);
 }
    .explore-img{ border-radius: 10px; width: 45%; }
    .explore-content{
        display: flex;
        flex-direction: column;
        width: 55%;
        padding-left: 6%;
        min-height: 100px;
        justify-content: center;
    }
    .explore-content h3{padding-bottom: 3px;cursor: pointer;color: var(--text-primary);font-size: 1.625rem;font-weight: 600;}
    .explore-content h3:hover{
        text-decoration: underline;
        text-decoration-color:var(--primary-light);
    }
    h3 a,.explore-a{
        color: inherit;
        text-decoration: none;
        text-transform: capitalize;
    }
    .explore-a{
        text-decoration: underline;
        text-decoration-color: var(--primary-light);
        text-decoration-thickness: 2px;
    }
    .explore-tags{
        display: flex;
        justify-content: space-between;
    }
    .explore-tags span{
        cursor: pointer;
        padding: 10px 0px;
    }
    .categ{
        font-size: 0.78125rem;
        line-height: 1.0625rem;
        letter-spacing: .11rem;
        font-weight: 600;
    }
    .time{
        color: var(--text-secondary);
        font-size: 0.645rem;
    }
    .auth{
        color: var(--text-secondary);
    }
    .post-header,.post-img{
        margin-bottom: 20px;
    }
    


@media (max-width: 768px){
    .charts{
       grid-template-columns: 1fr; 
    }
        .page-header {
        padding: 100px 0px 20px;
    }
    .featured-post{
        padding: 0;
    }
    .explore-description{
        display:none;
    }
    .flex-row{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.col-1-66{
    width: 100%;
}
.col-2-34{
    width: 100%;
}
}
@media (max-width: 480px){
    .featured-title a,.post-title{
        font-size: 1.4375rem;
        line-height: 2.125rem;
        letter-spacing: 0.05rem;
    }
    .featuredHeading{
        padding: 8px;
    }
    .page-header{
        margin-bottom: 11px;
    }
    .page-header p {
    font-size: 16px;
}
    .page-header h1, .browse h1{
        font-size: 24px;
    }
    .cta h2
    {
        font-size: 1.9rem;
    }
    .explore-card{
        flex-direction: column;
        margin-bottom: 10px;
        gap: 10px;
        
    }
    .explore-content,.explore-img{
        width: 100%;
    }
    .explore-content h3{
       /* white-space: nowrap;        /* Prevent wrapping */
        overflow: hidden;           /* Hide overflow */
        text-overflow: ellipsis;    /* Add "..." at the end */
      /*  max-width: 100%;            /*Ensure it fits container */
        font-size: 1.2rem;          /* Optional: reduce font-size */
    }
    
}