:root {
    --blog-gold: #d4af37;
    --blog-gold-dark: #b8952e;
    --blog-ink: #101a29;
    --blog-shadow: 0 20px 50px rgba(16, 26, 41, 0.1);
    --blog-shadow-hover: 0 30px 60px rgba(16, 26, 41, 0.18);
}

/* ---------------- Page header banner ---------------- */

.page-header {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 270px 0 180px;
    margin-top: -118px;
    width: 100%;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 26, 41, 0.5) 0%, rgba(16, 26, 41, 0.8) 100%);
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--trevlo-base, #26b3fb), var(--blog-gold));
    z-index: 1;
}

.page-header .container { position: relative; z-index: 2; }

.page-header-box .breadcrumb-item a { color: rgba(255, 255, 255, 0.75); transition: color 0.25s ease; }
.page-header-box .breadcrumb-item a:hover { color: var(--blog-gold); }
.page-header-box .breadcrumb-item.active { color: var(--blog-gold); }

@media (max-width: 767px) {
    .page-header { padding: 200px 0 100px; }
}

/* ---------------- Section intro ---------------- */

.blog-list-page .sec-title__tagline,
.blog-details-page .sec-title__tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blog-list-page .sec-title__tagline::after {
    content: '';
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--trevlo-base, #26b3fb), var(--blog-gold));
}

/* ---------------- Blog listing cards ---------------- */

.blog-list-card {
    background-color: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    margin-bottom: 48px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.blog-list-card:last-of-type { margin-bottom: 0; }

.blog-list-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-hover);
}

.blog-list-card .blog__card-img {
    border-radius: 0;
    margin: 0;
    overflow: hidden;
}

.blog-list-card .blog__card-img img {
    border-radius: 0;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-list-card:hover .blog__card-img img { transform: scale(1.09); }

.blog-list-card .blog__card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 26, 41, 0) 45%, rgba(16, 26, 41, 0.55) 100%);
    pointer-events: none;
}

.blog-list-card > div { padding: 34px 38px 38px; }

@media (max-width: 575px) {
    .blog-list-card > div { padding: 26px 22px 30px; }
    .blog-list-card .blog__card-img img { height: 220px; }
}

.blog-list-card .blog__card-date {
    background: linear-gradient(135deg, var(--trevlo-base, #26b3fb), #1591d1);
    box-shadow: 0 10px 25px rgba(38, 179, 251, 0.4);
}

.blog__card-category {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--trevlo-base, #26b3fb), #1591d1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(38, 179, 251, 0.3);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog__card-category:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(38, 179, 251, 0.4);
}

.blog-list-card .blog__card-title {
    position: relative;
    padding-left: 18px;
}

.blog-list-card .blog__card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--trevlo-base, #26b3fb), var(--blog-gold));
}

.blog__card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--blog-ink);
    text-decoration: none;
    margin-top: 20px;
    padding: 10px 22px 10px 4px;
    position: relative;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.blog__card-readmore i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--trevlo-white2, #FAF5EE);
    color: var(--trevlo-base, #26b3fb);
    font-size: 12px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.blog__card-readmore:hover { color: var(--trevlo-base, #26b3fb); padding-left: 10px; }
.blog__card-readmore:hover i { transform: translateX(6px); background: var(--trevlo-base, #26b3fb); color: #fff; }

/* ---------------- Empty state ---------------- */

.blog-empty-state {
    text-align: center;
    padding: 70px 30px;
    background-color: #fff;
    border: 1px dashed var(--trevlo-white3, #EBE6DE);
    border-radius: 22px;
    box-shadow: var(--blog-shadow);
}

.blog-empty-state i {
    font-size: 34px;
    color: var(--trevlo-base, #26b3fb);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--trevlo-white2, #FAF5EE);
}

/* ---------------- Pagination ---------------- */

.post-pagination li a { box-shadow: 0 6px 16px rgba(16, 26, 41, 0.06); }

.post-pagination li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(38, 179, 251, 0.28);
}

.post-pagination li:first-child:not(.is-active) a,
.post-pagination li:last-child:not(.is-active) a {
    background-color: var(--trevlo-white, #ffffff);
    color: var(--trevlo-primary, #2D2330);
    border-color: var(--trevlo-white3, #EBE6DE);
}

.post-pagination li.is-active a {
    background: linear-gradient(135deg, var(--trevlo-base, #26b3fb), #1591d1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(38, 179, 251, 0.35);
    pointer-events: none;
}

.post-pagination .post-pagination__disabled a {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

/* ---------------- Sidebar ---------------- */

.sidebar-blog__single {
    border-radius: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-blog__single:hover { transform: translateY(-4px); }

.sidebar-blog__single--search { border-radius: 14px; }

.sidebar-blog__search { border-radius: 30px; border: 1px solid var(--trevlo-white3, #EBE6DE); }
.sidebar-blog__search button[type=submit] { transition: transform 0.25s ease; }
.sidebar-blog__search button[type=submit]:hover { transform: scale(1.15); }

.sidebar-blog__title { position: relative; border-bottom-color: var(--trevlo-white3, #EBE6DE) !important; }

.sidebar-blog__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--trevlo-base, #26b3fb), var(--blog-gold));
}

.sidebar-blog__posts-image { border-radius: 10px; }
.sidebar-blog__posts-image img { transition: transform 0.4s ease; }
.sidebar-blog__posts-item:hover .sidebar-blog__posts-image img { transform: scale(1.12); }

.sidebar-blog__categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.sidebar-blog__categories li a:hover { background: var(--trevlo-white2, #FAF5EE); padding-left: 20px; }

.sidebar-blog__categories li a.is-active {
    background: linear-gradient(90deg, rgba(38, 179, 251, 0.12), rgba(212, 175, 55, 0.08));
    color: var(--trevlo-base, #26b3fb);
    font-weight: 700;
}

.sidebar-blog__cat-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--trevlo-gray, #767682);
    background: var(--trevlo-white2, #FAF5EE);
    padding: 2px 9px;
    border-radius: 20px;
}

.sidebar-blog__categories li a.is-active .sidebar-blog__cat-count {
    background: var(--trevlo-base, #26b3fb);
    color: #fff;
}

.sidebar-blog__tags { display: flex; flex-wrap: wrap; gap: 10px; }

.sidebar-blog__tags a {
    border-radius: 30px !important;
    border: 1px solid var(--trevlo-white3, #EBE6DE);
    padding: 7px 16px !important;
    font-size: 12.5px;
    transition: all 0.25s ease;
}

.sidebar-blog__tags a:hover,
.sidebar-blog__tags a.is-active {
    background: linear-gradient(135deg, var(--trevlo-base, #26b3fb), #1591d1);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(38, 179, 251, 0.3);
}

/* ---------------- Blog details page ---------------- */

.blog-details .blog-card-three { border-radius: 22px; overflow: hidden; box-shadow: var(--blog-shadow); background: #fff; }
.blog-details .blog-card-three .blog__card-img { margin: 0; }
.blog-details .blog-card-three .blog__card-img img { border-radius: 0; max-height: 460px; width: 100%; object-fit: cover; }
.blog-details .blog-card-three > .blog__card-img + div { padding: 36px 40px 40px; }

@media (max-width: 575px) {
    .blog-details .blog-card-three > .blog__card-img + div { padding: 26px 22px 30px; }
}

.blog-details__meta-bar { margin-bottom: 26px; }

.blog-details__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--trevlo-secondary, #736D75);
    font-weight: 600;
    background: var(--trevlo-white2, #FAF5EE);
    padding: 8px 16px;
    border-radius: 30px;
}

.blog-details__meta-item i { color: var(--trevlo-base, #26b3fb); }

.blog-details .blog__card-title { font-size: 34px; padding-left: 20px; margin-bottom: 26px; }

.blog-details .blog__card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--trevlo-base, #26b3fb), var(--blog-gold));
}

.blog-details .blog__card-title { position: relative; }

.blog-details__content { font-size: 16.5px; line-height: 1.9; color: var(--trevlo-secondary, #565656); }

.blog-details__content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 26px 0;
    box-shadow: var(--blog-shadow);
}

.blog-details__content h2,
.blog-details__content h3,
.blog-details__content h4 {
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--blog-ink);
    position: relative;
    padding-left: 18px;
}

.blog-details__content h2::before,
.blog-details__content h3::before,
.blog-details__content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: var(--blog-gold);
}

.blog-details__content blockquote {
    border-left: 4px solid var(--trevlo-base, #26b3fb);
    padding: 22px 28px;
    margin: 30px 0;
    background: linear-gradient(135deg, var(--trevlo-white2, #FAF5EE), #fff);
    font-style: italic;
    font-size: 17px;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 10px 30px rgba(16, 26, 41, 0.06);
}

.blog-details__content p { margin-bottom: 20px; }
.blog-details__content ul, .blog-details__content ol { margin-bottom: 20px; padding-left: 24px; }
.blog-details__content li { margin-bottom: 10px; }

.post-info { border-color: var(--trevlo-white3, #EBE6DE) !important; }

.post-tag__text {
    display: inline-block;
    transition: color 0.25s ease;
}

.post-tag__text:hover { color: var(--trevlo-base, #26b3fb); }

.social-links a { transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.social-links a:hover { transform: translateY(-4px) scale(1.08); }

/* Related posts */

.related-posts { margin-top: 56px; }

.related-posts__title {
    font-size: 26px;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.related-posts__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--trevlo-base, #26b3fb), var(--blog-gold));
}

.related-posts .blog-four__card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.related-posts .blog-four__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--blog-shadow-hover);
}

.related-posts .blog-four__card__image-link { border-radius: 0; }
.related-posts .blog-four__card__overlay { border-radius: 0; }
