/* Blog listing + blog details (new design). Loaded only on /blog pages. */

/* ---------- Listing ---------- */
.blog-hero {
    background: linear-gradient(135deg, #B400FF 0%, #6A1BFF 50%, #0A3CFF 100%);
    padding: 55px 0 60px;
}
.blog-hero img {
    width: 100%;
    display: block;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}
.blog-feature {
    padding: 40px 0 10px;
}
.blog-feature a {
    color: #4A5565;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color .3s ease;
}
.blog-feature a:hover,
.blog-feature a:hover .heading {
    color: #AD01FF;
}
.blog-feature .heading {
    font-size: 36px;
    text-align: left;
    color: #101828;
    margin: 0 0 20px;
}
.blog-feature hr {
    opacity: 1;
    background: #1B1B1C;
    margin-top: 25px;
}
.bloglist {
    padding: 40px 0 20px;
}
.blog-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 20px;
    box-shadow: 0 1.05px 3.06px 0 #00000030;
    margin-bottom: 30px;
    overflow: hidden;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}
.blog-card .thumb img {
    width: 100%;
    display: block;
}
.blog-card .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #101828;
    margin-bottom: 20px;
}
.blog-card .tags {
    font-size: 12px;
    color: #4A5565;
    margin-bottom: 20px;
}
.blog-card .meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4A5565;
}
.blog-card .author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0838F8;
    font-weight: 500;
}
.blog-card .author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.blog-card .date i {
    margin-right: 6px;
}
a.blog-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}
a.blog-card-link:hover .title {
    color: #AD01FF;
}
.blog-loadmore {
    text-align: center;
    padding-bottom: 60px;
}
.blog-loadmore .btngradient {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

/* ---------- Details ---------- */
.blogdetails {
    font-size: 18px;
    position: relative;
    overflow: hidden;
}
.blogdetails::before {
    background: url(../img/news-details-bg.svg) no-repeat;
    position: absolute;
    content: '';
    width: 839px;
    height: 726px;
    right: -8%;
    top: -150px;
    pointer-events: none;
}
.blogdetails .container {
    position: relative;
}
.blogdetails p,
.blogdetails li {
    color: #6B6B6B;
}
.blogdetails h1 {
    text-align: left;
    font-size: 44px;
    margin-bottom: 25px;
    color: #101828;
}
.blogdetails h2.subheading {
    margin: 0 0 1rem;
    padding-top: 1.2rem;
    color: #101828;
}
.blogdetails h3.subheading-sm {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    margin: .8rem 0 .8rem;
}
.blogdetails .post-meta {
    font-size: 15px;
    color: #4A5565;
    margin-bottom: 25px;
}
.blog-side {
    position: sticky;
    top: 20px;
}
.blog-side .side-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 4px 0 #c3c3c370;
    background: #fff;
    padding: 10px;
}
.subscribe-box {
    margin-top: 30px;
    padding: 0 10px;
}
.subscribe-box .sub-title {
    font-size: 22px;
    font-weight: 700;
    color: #8A00FF;
    margin-bottom: 8px;
}
.subscribe-box .sub-text {
    font-size: 13px;
    color: #4A5565;
    margin-bottom: 15px;
}
.subscribe-box input[type=email] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #4A5565;
    background: transparent;
    padding: 6px 0;
    font-size: 14px;
    outline: none;
    margin-bottom: 8px;
}
.subscribe-box .sub-error {
    color: #dc3545;
    font-size: 13px;
    min-height: 18px;
}
.subscribe-box button {
    width: 100%;
    border-radius: 35px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px;
    margin-top: 10px;
}

@media (max-width: 1199px) {
    .blogdetails h1 { font-size: 36px; }
}
@media (max-width: 991px) {
    .blog-side { position: static; margin-top: 40px; }
    .blogdetails::before { display: none; }
    .blog-feature .heading { font-size: 28px; }
}
@media (max-width: 560px) {
    .blogdetails { font-size: 16px; }
    .blogdetails h1 { font-size: 28px; }
    .blog-hero { padding: 30px 0; }
    .blog-hero img { border-radius: 14px; }
}
