/* ── Blog Content Layout ────────────────────────────────── */
#blog .blog-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    background-color: #f7f9fc;
    gap: 40px;
}

#blog .blog-content .left {
    width: 31%;
}

#blog .blog-content .right {
    width: 62.5%;
}

#blog .blog-content .right h1 {
    font-family: 'PF Highway Sans Pro';
    font-weight: 300;
    font-size: 48px !important;
    line-height: 56px;
    letter-spacing: 0%;
    color: #031325;
    margin: 0 0 48px;
}

/* ── Category Section ───────────────────────────────────── */
#blog .bc-section {
    margin-bottom: 56px;
}

#blog .bc-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

#blog .bc-section__title {
    font-family: 'Geologica';
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 5%;
    text-transform: uppercase;
    color:#013877
}

#blog .bc-section__title a {
    color: inherit;
    text-decoration: none;
}

#blog .bc-section__title a:hover {
    text-decoration: underline;
}

#blog .btn-simple-link .btn-simple{
    border-bottom: 1px solid #013877;
    color: #013877;
    width: 180px;
}

#blog .btn-simple-link .btn-simple::after{
    background: #013877;
}

#blog .btn-simple-link .btn-simple:hover{
    border-bottom: 1px solid #3D95CF;
    color: #3D95CF;
}

#blog .btn-simple-link:hover .btn-simple::after{
    background: #3D95CF;
}

/* ── Grid override: 2 columns inside blog sections ──────── */
#blog .bc-section .pc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 0;
}

@media (max-width: 992px) {
    #blog .bc-section .pc-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Per-category pagination ────────────────────────────── */
#blog .bc-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: end;
    margin-top:20px;
}

#blog .bc-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 50px;
    font-family: 'PF Highway Sans Pro';
    font-size: 16px;
    font-weight: 400;
    color: white;
    background: #3D95CF;
    border: 1.5px solid #3D95CF;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0 14px;
}

#blog .bc-pagination__btn:hover {
    background: #013877;
    color: #fff;
    border-color: #013877;
}

#blog .bc-pagination__btn.is-active {
    background: #013877;
    color: #fff;
    border-color: #013877;
    pointer-events: none;
}

/* ── Carousel hidden slides ─────────────────────────────── */
#blog .pc-grid .pc-card[data-slide] {
    display: none;
}

#blog .pc-grid .pc-card[data-slide].is-visible {
    display: block;
}


/* ── Blog cards: always show excerpt, no hover transition ── */



#blog .pc-card {
    height: 720px;
}

@media screen and (max-width:1900px) and (min-width:1441px){
    #blog .pc-card{
        height:800px;
    }
}

#blog .pc-card__img-wrap{
    padding:32px;
}

#blog .pc-card__img{
    border-radius: 10px!important;
}

#blog .pc-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

#blog .pc-card__body {
    height: 66%;
    transition: none;
    padding:32px;
    
}

#blog .pc-card:hover .pc-card__body {
    height: 66%;
}

#blog .pc-card__reveal-content {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

#blog .pc-card:hover .pc-card__reveal-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Sidebar ────────────────────────────────────────────── */
#blog .bc-sidebar {
    position: sticky;
    top: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

#blog .bc-sidebar__title {
    font-family: 'Geologica';
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #013877;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #e0e8f4;
}

#blog .bc-sidebar__list {
    margin: 0;
    padding: 0 0 0 1em;
    display: flex;
    flex-direction: column;
    gap: 4px;

}



#blog .bc-sidebar__item a {
    display: block;
    font-family: 'Geologica';
    font-weight: 100;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 0px;
    color: #031325;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;


}

#blog .bc-sidebar__item a:hover {
    background: #f0f5fb;
    color: #013877;
}

#blog .bc-sidebar__item a.is-active {
    background: #013877;
    color: #fff;
    font-weight: 600;
}

/* ── Accordion ──────────────────────────────────────────── */
#blog .bc-accordion {
    border-bottom: 1.5px solid #e0e8f4;
    padding: 4px 0;
}

#blog .bc-accordion:last-child {
    border-bottom: none;
}

#blog .bc-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    border-bottom: 1px solid #013877 !important;
    cursor: pointer;
    padding: 16px 0;
    font-family: 'PF Highway Sans Pro';
    font-weight: 400;
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 0%;
    color: #013877;
}

#blog .bc-accordion__trigger[aria-expanded="true"]{
    border-bottom: none !important;
}

#blog .bc-accordion__arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #013877;
}

#blog .bc-accordion.is-open .bc-accordion__arrow {
    transform: rotate(180deg);
}

#blog .bc-accordion__body {
    display: none;
    padding-bottom: 12px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3D95CF #f0f5fb;
    border-bottom: 1px solid #013877;
}

#blog .bc-accordion.is-open .bc-accordion__body {
    display: block;
}

#blog .bc-accordion__body::-webkit-scrollbar {
    width: 4px;
}

#blog .bc-accordion__body::-webkit-scrollbar-track {
    background: #f0f5fb;
    border-radius: 10px;
}

#blog .bc-accordion__body::-webkit-scrollbar-thumb {
    background: #3D95CF;
    border-radius: 10px;
}

#blog .bc-accordion__body::-webkit-scrollbar-thumb:hover {
    background: #013877;
}

/* ── Sort options ───────────────────────────────────────── */
#blog .bc-sort__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#blog .bc-sort__option {
    font-family: 'Geologica';
    font-weight: 100;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: 0px;
    color: #031325;
}

#acc-sort{
    display: none;
}

#blog .bc-sort__option input[type="radio"] {
    accent-color: #013877;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

#blog .pc-card__excerpt{
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show only 3 lines on desktop */
    -webkit-box-orient: vertical;  
    overflow: hidden;
}


@media screen and (max-width:1440px){
    .blog-content{
        flex-direction: column!important;
    }

    #blog .blog-content .left, #blog .blog-content .right{
        width: 100%;
    }

    #blog .blog-content .right h1  {
        font-size:24px!important;
    }

    #blog .pc-card__body{
        gap:0;
    }
}


@media screen and (max-width:768px){

    #blog .bc-section__title{
        font-size:18px;
    }

    #blog .pc-card__author-info{
        font-size:20px;
    }

    #blog .pc-card__title{
        font-size:20px;
    }

    #blog .pc-card__excerpt {
        -webkit-line-clamp: 2; /* Automatically drop to 2 lines on mobile */
    }

    #blog .pc-card__read-more{
        width: 40px;
        height: 40px;
    }

    #blog .btn-simple{
        font-size:14px;
    }

    .pc-card__author-titlos{
        font-size:14px;
    }

    .bc-accordion__trigger{
        font-size:18px;
    }

    .bc-sort__option{
        font-size:16px;
    }

    #blog .btn-simple-link .btn-simple {
        width: 120px;
    }
}