/*
Theme Name: Blogdash
Author: Peregrine themes
Template: bloghash
Text Domain: blogdash
Description: Blogdash is the perfect pick for bloggers seeking a lightweight, customizable theme that suits them just right. With plenty of options to adjust colors and typography, making your site unique is a breeze. It’s SEO friendly and fully compatible with WPML, Gutenberg, Elementor, WooCommerce, and supports translation and RTL. Live preview: https://demo.peregrine-themes.com/bloghash/blogdash.
Author URI: https://peregrine-themes.com/
Version: 1.0.1
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, right-sidebar, left-sidebar, footer-widgets, blog, news, entertainment, custom-background, custom-menu, custom-logo, post-formats, sticky-post, editor-style, threaded-comments, translation-ready, custom-colors, featured-images, full-width-template, theme-options, flexible-header, wide-blocks
*/

/* Blogdash */

.blogdash {
    --bloghash-radius: 6px;
    background-color: #fcfcfc;
}

.blogdash .bloghash-article.post.sticky {
    outline: none;
}

.blogdash.bloghash-blog-horizontal .col-xs-12:not(:last-child) .bloghash-article {
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(229, 231, 235, .8);
}

.blogdash.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .entry-media .entry-image-link,
.blogdash.bloghash-blog-horizontal .bloghash-article.has-post-thumbnail:not(.format-quote) .entry-media img {
    height: 100%;
    object-fit: cover;
} 

.blogdash.single-post .bloghash-article .entry-media img,
body.blogdash:not(.single-post) .bloghash-article .entry-media {
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.blogdash #featured_links .widget-title,
.blogdash #popular_post .widget-title,
.blogdash #editors_choice .widget-title,
.blogdash #pyml .widget-title {
    font-size: 2.6rem;
}

.blogdash #pyml .bloghash-flex-row {
    --bloghash-gutter-x: 1px;
}

.blogdash #pyml .bloghash-post-item.style-1 {
    min-height: 40rem;
}


[data-darkmode=dark] .bloghash-breadcrumbs,
[data-darkmode=dark] .blogdash.bloghash-header-layout-3 .bloghash-nav-container {
    background: rgb(40, 51, 83);
}

.blogdash.bloghash-header-layout-3 .bloghash-nav-container {
    box-shadow: none;
}

.blogdash.bloghash-header-layout-3 .bloghash-nav-container > .bloghash-container .bloghash-nav {
    min-height: 7.2rem;
}

.blogdash.bloghash-header-layout-3 #bloghash-header-inner .bloghash-nav>ul>li {
    margin-left: 3rem;
}


.blogdash .bloghash-post-item .bloghash-post-content .post-category {
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.blogdash .post-category .cat-links a {
    --bloghash-radius: 0;
    padding-bottom: 6px;
}

.blogdash .post-category .cat-links a:focus,
.blogdash.using-keyboard .post-category .cat-links a:hover {
    transform: translateY(-2px);
}


.blogdash #hero .swiper-button-prev,
.blogdash #hero .swiper-button-next {
    width: 5rem;
    height: 5rem;
}

.blogdash #hero .swiper-button-prev,
.blogdash #hero .swiper-rtl .swiper-button-next {
    left: 22px;
    right: auto;
}

.blogdash #hero .swiper-button-next,
.blogdash #hero .swiper-rtl .swiper-button-prev {
    right: 22px;
    left: auto;
}

@media screen and (min-width: 869px) {
    .blogdash #hero .bloghash-post-item .bloghash-post-content .bloghash-btn {
        max-height: 0;
        min-height: 0;
        height: 0;
        transform: translateY(500%);
        opacity: 0;
        padding: 0rem 2rem;
        margin-top: 0;
        transition: all 0.55s ease;
        display: flow-root;
        max-width: max-content;
        margin-left: auto;
        margin-right: auto;
    }

    .blogdash #hero .bloghash-post-item:hover .bloghash-post-content .bloghash-btn {
        max-height: 3em;
        height: 3em;
        transform: none;
        opacity: 1;
        padding: 0.8rem 2rem;
        margin-top: 2rem;
    }
}


#popular_post,
#editors_choice {
    margin-top: 5rem;
    position: relative;
}

#popular_post .post-category .cat-links a {
    padding: 0;
    color: inherit;
    background: transparent;
    margin-bottom: 0.3rem;
    vertical-align: middle;
}

#popular_post .post-category .cat-links a:hover,
.using-keyboard #popular_post .post-category .cat-links a:focus {
    color: var(--bloghash-primary);
    background: transparent;
}


.blogdash .bloghash-post-item.rounded {
    border-radius: 0;
}

.blogdash .style-1.bloghash-post-item {
    height: 100%;
}

.blogdash .bloghash-post-item .bloghash-post-content .entry-title {
    font-size: 2rem;
    line-height: 1.22;
}

.blogdash .bloghash-post-item .bloghash-post-thumb .inner img {
    transition: all 0.5s ease-in-out;
}

.blogdash.using-keyboard .bloghash-post-item:focus-within .bloghash-post-thumb .inner img,
.blogdash .bloghash-post-item:hover .bloghash-post-thumb .inner img {
    transform: scale(1.1);
}

.bloghash-post-item .bloghash-post-thumb {
    overflow: hidden;
}


.style-3.bloghash-post-item {
    padding-bottom: 1.6rem;
    border-bottom: 1px solid rgba(229, 231, 235, .8);
}

.style-3.bloghash-post-item .bloghash-post-thumb {
    margin-bottom: 1.6rem;
}

.style-3.bloghash-post-item .bloghash-post-thumb img,
.style-3.bloghash-post-item .bloghash-post-thumb {
    min-height: 21rem;
}

.style-3.bloghash-post-item .bloghash-post-content {
    padding: 0;
}

.style-3.bloghash-post-item .bloghash-post-content .post-category {
    margin-bottom: 0.4rem;
}

.style-3.bloghash-post-item .entry-meta a:not(:hover, :focus),
.style-3.bloghash-post-item .entry-meta {
    color: #999a9f;;
}

.style-3.bloghash-post-item .post-category .cat-links a {
    font-size: 1.3rem;
    color: #707376;
    background: transparent;
    padding: 0;
}

.using-keyboard .style-3.bloghash-post-item .post-category .cat-links a:focus,
.style-3.bloghash-post-item .post-category .cat-links a:hover {
    color: var(--bloghash-primary);
    background: transparent;
}


.bloghash-post-item.style-4 {
    display: flex;
    align-items: center;
}

.bloghash-post-item.style-4 .bloghash-post-thumb {
    margin-right: 2rem;
    width: 10.2rem;
    height: 10.2rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #d1d1d1;
}

.bloghash-post-item.style-4 .bloghash-post-thumb .inner img {
    transform: scale(1.2) rotate(-10deg);
    transition: all 0.5s ease-in-out;
}

.using-keyboard .bloghash-post-item.style-4:focus-within .bloghash-post-thumb .inner img,
.bloghash-post-item.style-4:hover .bloghash-post-thumb .inner img {
    transform: scale(1) rotate(0deg);
}

.bloghash-post-item.style-4 .bloghash-post-content {
    padding: 0;
}

.bloghash-post-item.style-4 .bloghash-post-content .entry-title {
    font-size: 1.8rem;
}

.blogdash-recent-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.blogdash-recent-posts h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blogdash-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blogdash-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blogdash-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}



.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Category */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.category-tag {
    background: #f0f2f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #667eea;
    color: white;
}

/* Pagination */
.posts-pagination {
    text-align: center;
    margin-top: 40px;
}

.posts-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover {
    background: #667eea;
    color: white;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blogdash-recent-posts h2 {
        font-size: 1.8rem;
    }
}


/* Main Footer Styling */
.custom-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding-top: 40px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-top {
    padding-bottom: 40px;
}

/* Footer Columns Layout */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.footer-col {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

/* Typography in Footer */
.footer-col-title {
    color: #3498db; 
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
}

.footer-description {
    margin-top: 15px;
    opacity: 0.9;
}

/* Logo Area */
.footer-logo .custom-logo {
    max-height: 60px;
    width: auto;
}

.footer-logo .site-title {
    color: #fff;
    margin: 0;
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 24px;
}

.contact-item a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Links Menu */
.footer-links-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-menu li {
    margin-bottom: 12px;
}

.footer-links-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.footer-links-menu a:hover {
    color: #3498db;
    padding-left: 5px;
}

/* Social Links */
.social-description {
    margin-bottom: 15px;
    opacity: 0.9;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .footer-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .footer-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
}

.subtopic-posts {
    display: none;
    margin-top: 20px;
}

.topic-title,
.subtopic-title {
    cursor: pointer;
    margin-top: 30px;
}


.bloghash-blog-horizontal .entry-media,
.bloghash-blog-horizontal .post-thumb.entry-media.thumbnail {
    min-height: 25rem !important; 
    max-height: 30rem !important;
    object-fit: cover !important;
}

.bloghash-blog-horizontal .entry-media img,
.bloghash-blog-horizontal .post-thumb.entry-media.thumbnail img {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.post-thumb.entry-media.thumbnail {
    height: 180px !important;
    overflow: hidden;
}

.post-thumb.entry-media.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.bloghash-blog-horizontal .entry-media {
    flex: 0 0 40% !important;
    max-width: 50% !important;
}

.entry-date,
time.entry-date,
.published,
.updated,
time.entry-date.published.updated {
    display: none !important;
}

.post-meta .post-date,
.post-meta time,
.post-meta [class*="date"] {
    display: none !important;
}


/* ===== PAGE NEWS ONLY ===== */
.bloghash-container.page-news-layout {
    max-width: 1360px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.page-news-layout #primary.content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 !important;
}

.page-news-layout .blogdash-recent-posts {
    margin-top: 40px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.page-news-layout .blogdash-recent-posts h2,
.page-news-layout .page-header,
.page-news-layout .page-content {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-news-layout .posts-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto 40px !important;
}

.page-news-layout .blogdash-post-card {
    display: grid !important;
    grid-template-columns: 380px minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.page-news-layout .blogdash-post-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
}

.page-news-layout .blogdash-post-card .post-thumbnail {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 260px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.page-news-layout .blogdash-post-card .post-thumbnail a,
.page-news-layout .blogdash-post-card .post-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.page-news-layout .blogdash-post-card .post-thumbnail img {
    object-fit: cover !important;
}

.page-news-layout .blogdash-post-card .post-content {
    min-width: 0 !important;
    padding: 28px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.page-news-layout .blogdash-post-card .post-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    margin: 0 0 14px !important;
}

.page-news-layout .blogdash-post-card .post-meta {
    margin-bottom: 14px !important;
    font-size: 1.3rem !important;
    color: #666 !important;
}

.page-news-layout .post-meta time,
.page-news-layout .post-meta .post-date {
    display: inline !important;
}

.page-news-layout .blogdash-post-card .post-excerpt {
    font-size: 1.4rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin-bottom: 18px !important;
}

.page-news-layout .blogdash-post-card .post-categories {
    margin-top: auto !important;
}

.page-news-layout .posts-pagination {
    max-width: 1180px !important;
    margin: 30px auto 0 !important;
    text-align: center !important;
}

@media (max-width: 991px) {
    .page-news-layout .blogdash-post-card {
        grid-template-columns: 320px minmax(0, 1fr) !important;
    }

    .page-news-layout .blogdash-post-card .post-content {
        padding: 24px !important;
    }
}

@media (max-width: 767px) {
    .page-news-layout .blogdash-post-card {
        grid-template-columns: 1fr !important;
    }

    .page-news-layout .blogdash-post-card .post-thumbnail {
        min-height: 220px !important;
    }

    .page-news-layout .blogdash-post-card .post-content {
        padding: 20px !important;
    }
}