/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
    padding-top: 80px;
    padding-bottom: 40px;
    background-color: #fff;
}

.blog-hero h1 {
    margin-bottom: 0;
}

.blog-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.blog-hero-left {
    flex: 1;
}

.blog-hero-left h3 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #232323;
    line-height: 1.4;
    margin-bottom: 0;
}

.blog-hero-right {
    flex: 1;
    text-align: right;
}

.blog-hero-right p {
    color: #686868;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Filter Bar Section */
.blog-filter-section {
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.blog-filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blog-search {
    position: relative;
    flex-shrink: 0;
}

.blog-search input {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 20px;
    padding-right: 45px;
    font-size: 14px;
    width: 220px;
    outline: none;
    font-family: 'Creato Display', sans-serif;
    transition: .3s;
}

.blog-search input:focus {
    border-color: #000;
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.blog-search button img {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.blog-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-filter-btn {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: .3s;
    font-family: 'Creato Display', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Blog Grid Section */
.blog-grid-section {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card */
.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.blog-card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: .5s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 18px 0 12px;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F6F6F6;
    padding: 5px 14px 5px 5px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #232323;
}

.blog-card-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-readtime {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F6F6F6;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #232323;
}

.blog-card-readtime img {
    width: 14px;
    height: 14px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #232323;
    line-height: 1.4;
    margin-bottom: 0;
    transition: .3s;
}

.blog-card:hover .blog-card-title {
    color: #0059FF;
}

/* Load More Button */
.blog-loadmore {
    text-align: center;
    margin-top: 50px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #232323;
    text-decoration: none;
    padding: 0 15px;
    transition: .3s;
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Single Blog Post */
.blog-single-hero {
    padding-top: 100px;
    padding-bottom: 50px;
}

.blog-single-category {
    display: inline-block;
    background: #F6F6F6;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #232323;
    margin-bottom: 20px;
}

.blog-single-title {
    font-size: 42px;
    font-weight: 700;
    color: #232323;
    line-height: 1.2;
    margin-bottom: 25px;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.blog-single-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-single-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-single-author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 2px;
}

.blog-single-author-info span {
    font-size: 13px;
    color: #686868;
}

.blog-single-date {
    font-size: 14px;
    color: #686868;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-single-content {
    max-width: 800px;
}

.blog-single-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.blog-single-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #232323;
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-single-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #232323;
    margin-top: 35px;
    margin-bottom: 15px;
}

.blog-single-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.blog-single-content ul,
.blog-single-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.blog-single-content li {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
    list-style: disc;
}

.blog-single-content blockquote {
    border-left: 4px solid #000;
    padding: 20px 30px;
    margin: 30px 0;
    background: #F6F6F6;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 18px;
    color: #232323;
}

/* Blog Featured Image */
.blog-single-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* Blog Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-share span {
    font-size: 14px;
    font-weight: 600;
    color: #232323;
}

.blog-share a {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.blog-share a:hover {
    background: #000;
    border-color: #000;
}

.blog-share a:hover img {
    filter: brightness(0) invert(1);
}

.blog-share a img {
    width: 16px;
    height: 16px;
}

/* Blog Back Link */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #232323;
    text-decoration: none;
    margin-bottom: 30px;
    transition: .3s;
}

.blog-back-link:hover {
    color: #0059FF;
}

.blog-back-link img {
    width: 16px;
    height: 16px;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty h3 {
    font-size: 24px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 10px;
}

.blog-empty p {
    font-size: 16px;
    color: #686868;
}

/* Blog News Section (same as blog-grid but for news page) */
.news-hero h1 span {
    color: #000;
}

/* ============================================
   SINGLE POST PAGE - NEW DESIGN
   ============================================ */

/* Single Hero - Full Width Background Image */
.single-hero {
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.single-hero-overlay {
    width: 100%;
    padding: 60px 0 50px;
}

.single-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.single-tag {
    background: #fff;
    color: #000;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-meta-divider {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

.single-meta-text {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-hero-title {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}

.single-hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 0;
}

/* 3-Column Content Section */
.single-content-section {
    padding: 60px 0;
    background: #fff;
}

/* Left Sidebar - Author + Subscribe */
.single-left-sidebar {
    position: sticky;
    top: 100px;
}

.single-author-block {
    margin-bottom: 10px;
}

.single-author-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.single-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 4px;
}

.single-author-role {
    font-size: 13px;
    color: #686868;
    display: block;
    line-height: 1.5;
}

.single-subscribe-box {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    margin-top: 35px;
}

.single-subscribe-title {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 8px;
}

.single-subscribe-desc {
    font-size: 13px;
    color: #686868;
    line-height: 1.6;
    margin-bottom: 15px;
}

.single-subscribe-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Creato Display', sans-serif;
    outline: none;
    margin-bottom: 12px;
    transition: .3s;
}

.single-subscribe-input:focus {
    border-color: #000;
}

.single-subscribe-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Creato Display', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
    transition: .3s;
}

.single-subscribe-btn:hover {
    background: #333;
}

/* Content Toolbar - Search + Share */
.single-content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.single-search-wrap {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.single-search-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 20px;
    padding-right: 45px;
    font-size: 14px;
    font-family: 'Creato Display', sans-serif;
    outline: none;
    transition: .3s;
}

.single-search-input:focus {
    border-color: #000;
}

.single-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Creato Display', sans-serif;
    cursor: pointer;
    transition: .3s;
    color: #232323;
}

.single-share-btn:hover {
    background: #f5f5f5;
}

/* Article Content */
.single-article-content {
    margin-bottom: 40px;
}

.single-article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.single-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #232323;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-article-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #232323;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.single-article-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #232323;
    margin-top: 30px;
    margin-bottom: 12px;
}

.single-article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.single-article-content ul,
.single-article-content ol {
    padding-left: 22px;
    margin-bottom: 25px;
}

.single-article-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}

.single-article-content blockquote {
    border-left: 4px solid #000;
    padding: 25px 30px;
    margin: 35px 0;
    background: #f8f8f8;
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #232323;
}

.single-article-content blockquote p {
    margin-bottom: 0;
}

.single-article-content a {
    color: #0059FF;
    text-decoration: underline;
}

/* Share Links */
.single-share-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.single-share-links span {
    font-size: 14px;
    font-weight: 600;
    color: #232323;
}

.single-share-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    text-decoration: none;
}

.single-share-links a:hover {
    background: #000;
    border-color: #000;
}

.single-share-links a:hover img {
    filter: brightness(0) invert(1);
}

.single-share-links a img {
    width: 16px;
    height: 16px;
}

/* Back Wrap */
.single-back-wrap {
    margin-top: 30px;
}

/* Right Sidebar - THE LATEST */
.single-right-sidebar {
    position: sticky;
    top: 100px;
}

.single-latest-title {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.single-latest-item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

.single-latest-item:hover {
    opacity: 0.8;
}

.single-latest-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.single-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.single-latest-item:hover .single-latest-thumb img {
    transform: scale(1.05);
}

.single-latest-info {
    flex: 1;
}

.single-latest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #888;
}

.single-latest-dot {
    width: 3px;
    height: 3px;
    background: #888;
    border-radius: 50%;
}

.single-latest-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #232323;
    line-height: 1.4;
    margin-bottom: 0;
    transition: .3s;
}

.single-latest-item:hover .single-latest-item-title {
    color: #0059FF;
}

/* Insights Section (Bottom) */
.single-insights-section {
    padding: 80px 0;
    background: #fff;
}

.single-insights-nav {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.single-insight-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1D1D1D;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
}

.single-insight-arrow:hover {
    background: #333;
}

.single-insight-arrow img {
    filter: brightness(0) invert(1);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1199px) {
    .blog-card-image img {
        height: 220px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .blog-single-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .blog-hero-content {
        flex-direction: column;
        gap: 20px;
    }

    .blog-hero-right {
        text-align: left;
    }

    .blog-filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-search input {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-single-title {
        font-size: 32px;
    }

    .blog-single-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .blog-hero h1 {
        font-size: 50px;
    }

    .blog-hero-left h3 {
        font-size: 16px;
        text-align: center;
    }

    .blog-hero-right p {
        font-size: 14px;
        text-align: center;
    }

    .blog-hero-right .themeBtn {
        margin: 0 auto;
    }

    .blog-filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-card-image img {
        height: 240px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .blog-single-hero {
        padding-top: 70px;
    }

    .blog-single-title {
        font-size: 28px;
    }

    .blog-single-content p,
    .blog-single-content li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 40px;
    }

    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-single-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== SINGLE POST RESPONSIVE ===== */

@media (max-width: 1199px) {
    .single-hero-title {
        font-size: 38px;
    }
}

@media (max-width: 992px) {
    .single-hero {
        height: 60vh;
        min-height: 400px;
    }

    .single-hero-title {
        font-size: 32px;
    }

    .single-hero-desc {
        font-size: 15px;
    }

    .single-content-toolbar {
        flex-wrap: wrap;
    }

    .single-search-wrap {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .single-hero {
        height: 50vh;
        min-height: 350px;
    }

    .single-hero-overlay {
        padding: 40px 0 30px;
    }

    .single-hero-title {
        font-size: 26px;
    }

    .single-hero-desc {
        font-size: 14px;
        display: none;
    }

    .single-tag {
        padding: 5px 12px;
        font-size: 10px;
    }

    .single-meta-text {
        font-size: 11px;
    }

    .single-article-content h2 {
        font-size: 24px;
    }

    .single-article-content h3 {
        font-size: 20px;
    }

    .single-article-content p,
    .single-article-content li {
        font-size: 15px;
    }

    .single-article-content blockquote {
        padding: 20px;
        font-size: 16px;
    }

    .single-share-links {
        flex-wrap: wrap;
    }

    .single-latest-item {
        margin-bottom: 18px;
    }

    .single-latest-thumb {
        width: 75px;
        height: 75px;
    }

    .single-latest-item-title {
        font-size: 14px;
    }

    .single-insights-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .single-hero {
        height: 45vh;
        min-height: 320px;
    }

    .single-hero-title {
        font-size: 22px;
    }

    .single-hero-meta {
        gap: 8px;
    }

    .single-author-img {
        width: 45px;
        height: 45px;
    }

    .single-author-name {
        font-size: 16px;
    }

    .single-subscribe-box {
        padding: 20px;
    }
}
