
/* ==================== BLOG INTRO & TOGGLE ==================== */

.blog-intro {
    padding: 4rem 0;
    background-color: #f3f4f6;
    margin-bottom: 32px;
}

.blog-intro h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.content-inner {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    transition: all 0.4s ease;
    overflow: hidden;
}

.content-inner.is-collapsed {
    max-height: 200px;
    position: relative;
}

.content-inner.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #f3f4f6);
}

.content-inner p {
    margin-bottom: 16px;
}

.content-inner h2,
.content-inner h3 {
    margin: 24px 0 12px;
    font-weight: 600;
}

.content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.toggle-content {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 3rem;
    background: #112abc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.toggle-content:hover {
    background: #0d0f3b;
}

/* ==================== BLOG CATEGORY & DETAIL ==================== */

.category .section-blog-detail .detail_title {
    text-align: center !important;
    margin: 0;
}

.section-blog-detail {
    padding-top: 7.8rem;
}

.section-blog-detail .wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-blog-detail .detail_content {
    flex: 0 0 75%;
    max-width: 75%;
    box-shadow: 0 1px 3px -2px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    padding: 10px;
    background-color: #fff;
    border-bottom: .1rem solid #1c274c;
    margin-bottom: 8rem;
}

.section-blog-detail .detail_aside {
    flex: 0 0 25%;
    max-width: 25%;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.section-blog-detail .detail_title,
h1.section-blog-detail .detail_title {
    color: #353535;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.17;
    text-align: left !important;
    margin: 0;
}

/* ==================== BLOG CARD ==================== */

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .3s ease, transform .3s ease;
}

.blog-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transform: translateY(-4px);
}

.blog-card .thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.blog-card:hover .thumb img {
    transform: scale(1.06);
}

.blog-card .blog-body {
    flex: 1;
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
}

.blog-card .blog-body h3 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
}

.blog-card .blog-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .readmore {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #112abc;
}

/* ==================== BLOG CATEGORIES ==================== */

.blog-categories {
    margin: 24px 0 40px;
    overflow-x: auto;
}

.blog-categories ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.blog-categories li {
    flex: 0 0 auto;
}

.blog-categories li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    background: #112abc;
    color: #fff;
    transition: all 0.25s ease;
}

.blog-categories li.active a,
.blog-categories li a:hover {
    background: #ffc300;
    color: #333;
}

.blog-categories li.current-cat a {
    background: #000;
    color: #fff;
}

.blog-categories::-webkit-scrollbar {
    display: none;
}
/* ===========================
   BLOG GRID
=========================== */

.blog-items{
    width:100%;
}

.blog-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
    gap:32px;
    margin:0;
    padding:0;
    list-style:none;
}

/* ===========================
   CARD
=========================== */

.blog-list li{
    position:relative;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:18px;
    background:#ffffff;
    border:1px solid #eceff5;
    transition:all .35s cubic-bezier(.22,.61,.36,1);
}

.blog-list li:hover{
    transform:translateY(-8px);
    border-color:#d9e3ff;
    box-shadow:
        0 12px 30px rgba(0,0,0,.05),
        0 25px 60px rgba(17,42,188,.08);
}

/* ===========================
   IMAGE
=========================== */

.item-post-img{
    position:relative;
    overflow:hidden;
    background:#f7f8fb;
}

.item-post-img img{
    width:100%;
    display:block;
    aspect-ratio:3/2;
    object-fit:cover;
    transition:filter .35s ease;
}

.blog-list li:hover .item-post-img img{
    filter:brightness(1.05) contrast(1.03) saturate(1.05);
}

/* Overlay */

.item-post-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(17,42,188,0),
        rgba(17,42,188,.08)
    );
    opacity:0;
    transition:.35s;
    pointer-events:none;
}

.blog-list li:hover .item-post-img::after{
    opacity:1;
}

/* Light Sweep */

.item-post-img::before{
    content:"";
    position:absolute;
    top:0;
    left:-180%;
    width:55%;
    height:100%;
    background:linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );
    transform:skewX(-25deg);
    transition:.9s;
    z-index:2;
}

.blog-list li:hover .item-post-img::before{
    left:180%;
}

/* ===========================
   CONTENT
=========================== */

.post-info{
    padding:22px 24px 0;
}

.post-date{
    margin:0;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    color:#6b7280;
    font-size:13px;
    line-height:1.6;
}

/* ===========================
   CATEGORY
=========================== */

.post-date span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 14px;
    background:#eef3ff;
    color:#112abc;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    transition:.3s;
}

.blog-list li:hover .post-date span{
    background:#112abc;
    color:#ffffff;
}

/* ===========================
   TITLE
=========================== */

.post-title{
    margin:18px 24px 24px;
    font-size:23px;
    font-weight:700;
    line-height:1.45;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.post-title a{
    position:relative;
    color:#101828;
    text-decoration:none;
    transition:.3s;
}

.post-title a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-3px;
    width:0;
    height:2px;
    background:#112abc;
    transition:.35s;
}

.blog-list li:hover .post-title a{
    color:#112abc;
}

.blog-list li:hover .post-title a::after{
    width:100%;
}

/* ===========================
   TOP BAR
=========================== */

.blog-list li::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:0;
    height:3px;
    background:#112abc;
    transition:.35s;
    z-index:5;
}

.blog-list li:hover::before{
    width:100%;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:991px){

.blog-list{
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.post-title{
    font-size:20px;
}

}

@media (max-width:768px){

.blog-list{
    grid-template-columns:1fr;
}

.post-info{
    padding:18px 20px 0;
}

.post-title{
    margin:16px 20px 22px;
    font-size:18px;
}

}