/*
Theme Name: Blogmate
Author: Peregrine themes
Template: bloglo
Text Domain: blogmate
Description: BlogMate, a child theme of Bloglo, features a boxed width design with an animated background pattern. With a horizontal blog list style, it offers extensive customization options for colors and typography. Lightweight and moderate, BlogMate is a customizable News Magazine WordPress theme with one-click demo importer. Perfect for personal and multi-author bloggers, it's ideal for dynamic news, magazines, blogs, and creative sites. SEO friendly, WPML, Gutenberg, WooCommerce, and RTL ready, it's suitable for various content publishers and online magazines. Live preview : https://demo.peregrine-themes.com/bloglo/blogmate/
Author URI: https://peregrine-themes.com/
Theme URI: https://peregrine-themes.com/blogmate/
Version: 1.0.12
Requires at least: 5.4
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
*/

/* ===== ProfileAge Design System Overrides ===== */
html body {
    background-color: #faf9f7;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c2825;
}

/* Kill animated background */
.bloglo-waves-wrapper { display: none !important; }

/* Clean up parent theme cruft */
.bloglo-blog-horizontal .bloglo-article.post.sticky { outline: none; }
.bloglo-blog-horizontal .bloglo-article.post.sticky .entry-media { outline: none; }

.widget.bloglo-entry .wp-block-image+p { margin-top: 0; }
.widget.bloglo-entry .wp-block-image figure,
#page .widget.bloglo-entry .wp-block-image figure { margin: 0 1rem 0 0; }
#page .widget.bloglo-entry .wp-block-social-links { margin-bottom: 0; }

body.bloglo-menu-animation-squarebox:not(.bloglo-is-mobile) #bloglo-header-inner .bloglo-nav>ul>li>a {
    padding: 8px 18px !important;
    border-radius: 8px !important;
}

body .navigation .nav-links .bloglo-animate-arrow,
body .navigation .nav-links .page-numbers,
body .page-links>span {
    background-color: transparent;
}

/* Buttons - clean up */
.bloglo-btn.btn-small { font-size: 95% !important; }

.entry-footer .bloglo-btn.btn-text-1 {
    letter-spacing: 0.01rem;
    padding: 0.7rem 2rem !important;
    color: #fff;
    background-color: #c06534 !important;
    border-radius: 8px !important;
}

.entry-footer .bloglo-btn.btn-text-1>span::before { display: none; }

.entry-footer .bloglo-btn.btn-text-1,
.wp-block-search .wp-block-search__button,
body .bloglo-btn:not(.btn-text-1) {
    line-height: 1.8;
    border-radius: 8px !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(44,40,37,0.06) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-footer .bloglo-btn.btn-text-1:hover,
.wp-block-search .wp-block-search__button:hover,
body .bloglo-btn:not(.btn-text-1):hover {
    color: #fff;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(44,40,37,0.08) !important;
}

.entry-footer .bloglo-btn.btn-text-1:active,
.wp-block-search .wp-block-search__button:active,
body .bloglo-btn:not(.btn-text-1):active {
    transform: translateY(0px) !important;
}

/* Squarebox nav - inherit warm style */
body.bloglo-menu-animation-squarebox:not(.bloglo-is-mobile) #bloglo-header-inner .bloglo-nav>ul>li.current-menu-item>a,
body.bloglo-menu-animation-squarebox:not(.bloglo-is-mobile) #bloglo-header-inner .bloglo-nav>ul>li.current_page_item>a,
body.bloglo-menu-animation-squarebox:not(.bloglo-is-mobile) #bloglo-header-inner .bloglo-nav>ul>li>a:hover,
body.bloglo-menu-animation-squarebox:not(.bloglo-is-mobile) #bloglo-header-inner .bloglo-nav>ul>li.menu-item-has-children:hover>a,
body.bloglo-menu-animation-squarebox:not(.bloglo-is-mobile) #bloglo-header-inner .bloglo-nav>ul>li.current-menu-ancestor>a {
    color: #9e4e23 !important;
    background: #f5e6db !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

/* Sidebar/widget cards - clean */
.ticker-slider-items,
.pyml-slider-items,
.author .author-box,
.bloglo-sidebar-style-3 #secondary .bloglo-widget,
.bloglo-sidebar-style-3 .elementor-widget-sidebar .bloglo-widget {
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(44,40,37,0.04) !important;
    border: 1px solid #eae6e1 !important;
    background: #fff !important;
}

.ticker-slider-items .ticker-title {
    border-radius: 0.8rem;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.ticker-slider-controls .ticker-slider-pause {
    border-radius: 0.8rem;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

/* Section headings in sidebar */
.is-section-heading-init-s2 #featured_links .widget-title,
.is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title,
.is-footer-heading-init-s2 #bloglo-footer .wp-block-heading,
.is-footer-heading-init-s2 #bloglo-footer .widget-title,
.is-section-heading-init-s2:not(.bloglo-sidebar-style-1) #secondary .bloglo-widget .widget-title,
.is-section-heading-init-s2:not(.bloglo-sidebar-style-1) #secondary .bloglo-widget .wp-block-search .wp-block-search__label,
.is-section-heading-init-s2:not(.bloglo-sidebar-style-1) #secondary .bloglo-widget .wp-block-heading {
    letter-spacing: 0.02em;
    width: auto;
    line-height: 1.2;
    display: inline-block;
    padding: 8px 20px 7px;
    background-color: #fff;
    border-radius: 100px;
    margin-bottom: 0;
    border: 1px solid #eae6e1;
    font-family: 'Playfair Display', Georgia, serif;
}

.bloglo-sidebar-style-3.is-section-heading-init-s2 #secondary .bloglo-widget {
    position: relative;
    margin-bottom: 4.5rem;
}

.is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title,
.bloglo-sidebar-style-3.is-section-heading-init-s2 #secondary .bloglo-widget .widget-title,
.bloglo-sidebar-style-3.is-section-heading-init-s2 #secondary .bloglo-widget .wp-block-search .wp-block-search__label,
.bloglo-sidebar-style-3.is-section-heading-init-s2 #secondary .bloglo-widget .wp-block-heading {
    position: absolute;
    left: 2.5rem;
    top: -1.8rem;
    z-index: 2;
}

.is-section-heading-init-s2:not(.bloglo-sidebar-style-1) #secondary .bloglo-widget .wp-block-search .wp-block-search__inside-wrapper {
    padding-top: 2.2rem;
}

.is-section-heading-init-s2 #pyml .pyml-slider-items { position: relative; }
.is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title+.bloglo-flex-row.gy-4 { margin-top: 0; }

/* Blog horizontal - clean styles */
.bloglo-blog-horizontal .bloglo-flex-row.g-4 {
    --bloglo-gutter-y: 4.8rem;
    --bloglo-gutter-x: 4.8rem;
}

.bloglo-blog-horizontal .bloglo-article:not(.format-quote) .bloglo-blog-entry-wrapper.bloglo-thumb-left .entry-media {
    border-radius: 12px;
}

body .pyml-slide-item .pyml-slider-backgrounds .pyml-slide-bg,
body .wp-block-latest-posts__featured-image {
    border: 1px solid #eae6e1;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(44,40,37,0.04);
}

.pyml-slider-items { padding: 2.2rem; }

/* Breadcrumbs override */
.bloglo-breadcrumbs {
    background-color: transparent !important;
    border-color: #eae6e1 !important;
}

/* Block styles */
.content-area .wp-block-site-title a:not(:hover, :focus) { color: inherit; }
.content-area .wp-block-site-title a:not(.bloglo-btn):not(.wp-block-button__link):hover,
.content-area .wp-block-site-title a:not(.bloglo-btn):not(.wp-block-button__link):focus { color: #c06534; }
.single .entry-content .wp-block-avatar img { margin: 0; }
.wp-block-navigation .wp-block-page-list { margin: 0; }
.content-area .bloglo-entry .wp-block-navigation:where(:not([class*=has-text-decoration])) a,
.wp-block-navigation:where(:not([class*=has-text-decoration])) a { text-decoration: none; }
.wp-block-navigation .has-child .wp-block-navigation__submenu-container { list-style: none; margin: 0; }
.wp-block-navigation .wp-block-page-list > .wp-block-navigation-item:not(:first-child) { margin-left: 1rem; }
.wp-block-file { align-items: center; display: flex; flex-wrap: wrap; justify-content: space-between; }
.wp-block-file a:not(.wp-block-file__button) { font-weight: 700; }
#page #main .wp-block-cover .wp-block-cover-text a,
#page #main :where(.wp-block-cover-image:not(.has-text-color)),
#page #main :where(.wp-block-cover:not(.has-text-color)) { color: #fff; }
.post-category a:hover, .post-category a:focus { text-decoration: underline; }
.wp-block-categories-dropdown.wp-block-categories { margin-top: 16px; }

/* ===== Mobile Header & Menu Redesign ===== */
@media screen and (max-width: 1100px) {

  #bloglo-topbar { display: none !important; }

  #bloglo-header-inner > .bloglo-header-container,
  .bloglo-header-container.bloglo-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px !important;
    min-height: 56px;
    flex-wrap: nowrap !important;
    gap: 0;
  }

  .bloglo-header-container .bloglo-logo {
    margin-right: auto !important;
    flex-shrink: 0;
    max-width: 150px;
  }
  .bloglo-header-container .bloglo-logo .logo-inner img,
  .bloglo-header-container .bloglo-logo .bloglo-svg-logo {
    max-height: 34px;
    width: auto;
  }
  .bloglo-logo .logo-inner {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .bloglo-header-container > nav.site-navigation.bloglo-nav.bloglo-header-element,
  .bloglo-header-container > .bloglo-header-widgets {
    display: none !important;
  }

  .bloglo-mobile-nav {
    display: inline-flex !important;
    align-items: center;
    margin-left: 8px !important;
    order: 10;
  }

  button.bloglo-hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(192,101,52,0.08) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  button.bloglo-hamburger:active {
    background: rgba(192,101,52,0.18) !important;
  }

  .bloglo-hamburger .hamburger-box { width: 18px; height: 13px; }
  .bloglo-hamburger .hamburger-inner,
  .bloglo-hamburger .hamburger-inner::before,
  .bloglo-hamburger .hamburger-inner::after {
    width: 18px !important;
    height: 2px !important;
    background-color: #c06534 !important;
    border-radius: 2px;
  }
  body:not(.is-mobile-menu-active) .bloglo-hamburger .hamburger-inner::before { width: 12px !important; }
  .bloglo-hamburger .hamburger-inner::before { top: -5px; }
  .bloglo-hamburger .hamburger-inner::after  { bottom: -5px; }
  .bloglo-hamburger .hamburger-label { display: none !important; }

  .is-mobile-menu-active button.bloglo-hamburger {
    background: #c06534 !important;
  }
  .is-mobile-menu-active .bloglo-hamburger .hamburger-inner,
  .is-mobile-menu-active .bloglo-hamburger .hamburger-inner::before,
  .is-mobile-menu-active .bloglo-hamburger .hamburger-inner::after {
    background-color: #fff !important;
    width: 18px !important;
  }

  /* ── Full-screen menu panel (below header bar) ── */
  #bloglo-header-inner .site-navigation {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
    min-height: unset !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #faf9f7 !important;
    border: none !important;
    border-top: 1px solid #eae6e1 !important;
    box-shadow: none !important;
    z-index: 99999 !important;
    overflow: hidden !important;
  }

  #bloglo-header-inner .site-navigation > ul {
    display: block !important;
    max-height: none !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px 100px !important;
    margin: 0 !important;
  }

  /* ── Top-level menu items ── */
  #bloglo-header-inner .site-navigation > ul > li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border-bottom: 1px solid #eae6e1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: none !important;
  }
  #bloglo-header-inner .site-navigation > ul > li:last-child {
    border-bottom: none !important;
  }

  #bloglo-header-inner .site-navigation > ul > li > a {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    color: #2c2825 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    background: none !important;
    outline: none !important;
  }
  #bloglo-header-inner .site-navigation > ul > li > a:hover,
  #bloglo-header-inner .site-navigation > ul > li > a:focus,
  #bloglo-header-inner .site-navigation > ul > li > a:active,
  #bloglo-header-inner .site-navigation > ul > li.bloglo-open > a,
  #bloglo-header-inner .site-navigation > ul > li.hovered > a {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  #bloglo-header-inner .site-navigation > ul > li > a > span {
    padding: 13px 0 !important;
    border-right: none !important;
    width: auto !important;
    display: block !important;
    background: none !important;
  }
  #bloglo-header-inner .site-navigation > ul > li > a > .bloglo-icon {
    display: none !important;
  }

  /* ── Expand/collapse chevron ── */
  #bloglo-header-inner .bloglo-mobile-toggen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex-shrink: 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #c06534 !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }
  #bloglo-header-inner .bloglo-mobile-toggen .bloglo-icon {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    transform: none !important;
    position: static !important;
    margin: 0 auto !important;
    pointer-events: none !important;
    color: #c06534 !important;
    transition: transform 0.25s ease;
  }
  #bloglo-header-inner .menu-item-has-children.bloglo-open > .bloglo-mobile-toggen .bloglo-icon {
    transform: rotate(180deg) !important;
  }

  /* ── Submenus: compact with arrow bullets ── */
  #bloglo-header-inner .site-navigation > ul .sub-menu {
    width: 100% !important;
    flex-basis: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 4px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li {
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li.menu-item-has-children {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li.menu-item-has-children > a {
    flex: 1 !important;
    min-width: 0 !important;
    cursor: pointer !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li.menu-item-has-children > a > .bloglo-icon {
    display: none !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li.menu-item-has-children > .bloglo-mobile-toggen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-shrink: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu .sub-menu {
    width: 100% !important;
    flex-basis: 100% !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    color: #5a524a !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a > span {
    padding: 8px 8px 8px 4px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    border-radius: 8px !important;
    border: none !important;
    transition: background 0.15s ease, color 0.15s ease;
  }
  /* arrow indicator before submenu items */
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a > span::before {
    content: "\203A" !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #c06534;
    width: 14px;
    min-width: 14px;
    margin-right: 4px;
    opacity: 0.7;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a:hover > span,
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a:active > span,
  #bloglo-header-inner .site-navigation > ul .sub-menu > li.current-menu-item > a > span {
    background: rgba(192,101,52,0.07) !important;
    color: #9e4e23 !important;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a:hover > span::before,
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a:active > span::before {
    opacity: 1;
  }
  #bloglo-header-inner .site-navigation > ul .sub-menu .sub-menu > li > a > span {
    padding-left: 22px !important;
  }

  /* keep header bar fixed at top with close (X) button visible */
  .is-mobile-menu-active #bloglo-header,
  .is-mobile-menu-active #bloglo-header-inner {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 100000 !important;
    background: #faf9f7 !important;
    box-shadow: none !important;
  }

  #bloglo-header::after,
  .is-mobile-menu-active #bloglo-header::after,
  .is-mobile-menu-active #page::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  html.is-mobile-menu-active,
  html.is-mobile-menu-active body {
    overflow: hidden !important;
  }

  .bloglo-sticky-header.bloglo-is-mobile #bloglo-header-inner {
    padding: 0 !important;
  }
}

@media screen and (max-width: 480px) {
  .bloglo-header-container .bloglo-logo { max-width: 120px !important; }
  .bloglo-header-container .bloglo-logo .logo-inner img,
  .bloglo-header-container .bloglo-logo .bloglo-svg-logo { max-height: 28px; }
  #bloglo-header-inner .site-navigation > ul {
    padding: 10px 16px 100px !important;
  }
  #bloglo-header-inner .site-navigation > ul > li > a { font-size: 15px !important; }
  #bloglo-header-inner .site-navigation > ul > li > a > span { padding: 11px 0 !important; }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a { font-size: 13.5px !important; }
  #bloglo-header-inner .site-navigation > ul .sub-menu > li > a > span { padding: 7px 8px 7px 4px !important; }
}
