/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* =========================================
   PINTEREST IMAGE WRAPPER
========================================= */

.pinterest-share-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 25px;
}


/* =========================================
   POST IMAGE
========================================= */

.pinterest-share-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   PINTEREST BUTTON
   ALWAYS VISIBLE
========================================= */

.pinterest-share-wrapper .pin-it-button {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 14px;

    background: #ffffff;
    color: #E85D75;

    border-radius: 30px;
    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);

    /* Always visible */
    opacity: 1;
    visibility: visible;
    transform: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================
   PINTEREST ICON
========================================= */

.pinterest-share-wrapper .pin-it-button svg {
    width: 18px;
    height: 18px;

    display: block;

    fill: #E60023;

    flex-shrink: 0;
}


/* =========================================
   BUTTON HOVER
========================================= */

.pinterest-share-wrapper .pin-it-button:hover {
    background: #E85D75;
    color: #ffffff;

    transform: translateY(-2px);
}

.pinterest-share-wrapper .pin-it-button:hover svg {
    fill: #ffffff;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .pinterest-share-wrapper .pin-it-button {
        top: 10px;
        right: 10px;

        padding: 8px 11px;

        font-size: 10px;
    }

    .pinterest-share-wrapper .pin-it-button svg {
        width: 17px;
        height: 17px;
    }

}


.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a, .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	
	width: auto;
	height:auto;
}

.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
  max-width: 100%;
  height: auto;
  text-align: center;
	margin-bottom:20px;
}


.secondary-navigation {
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}


@media (max-width: 768px) {
    #secondary-navigation {
        display: none;
    }
}


.site-logo.mobile-header-logo img {
    height: auto !important;
    max-height: 60px;
}

.sidebar img.avatar {
	margin-top: -99px;
}


.heartly-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.heartly-list li {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px 16px 60px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.2s ease;

  /* ✅ Use native OL numbering */
  counter-increment: list-item;
}

/* Hover effect */
.heartly-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* ✅ Number badge (respects start="") */
.heartly-list li::before {
  content: counter(list-item);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ff6b81, #ff8fa3);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional divider line */
.heartly-list li::after {
  content: "";
  position: absolute;
  left: 60px;
  bottom: -7px;
  width: calc(100% - 70px);
  height: 1px;
  background: #f2f2f2;
}

.heartly-list li:last-child::after {
  display: none;
}

@media (min-width: 769px) {

    /* Main header layout */
    .inside-header.grid-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 90px;
    }

    /* Social icons - left */
    .inside-header .gb-container-54482dba {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 0;
    }

    /* Center logo */
    .inside-header .site-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    /* Logo size */
    .inside-header .site-logo img {
        width: 180px;
        height: auto;
        display: block;
    }

    /* Menu/search - right */


    /* Social buttons */
    .inside-header .gb-container-54482dba .gb-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }


}

#mobile-header {
	padding: 0px 10px;
	  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.site-logo.mobile-header-logo  {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
}
#mobile-header .menu-toggle {
    order: -1;
    margin-right: auto;
}
	
.yourheartly-category-tags {
    margin: 40px 0;
}

.yourheartly-category-tags-title {
    margin: 0 0 20px;
}

.yourheartly-category-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yourheartly-category-tag {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s ease;
}

.yourheartly-category-tag:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.entry-content > p:first-child {
  font-size: 18px;
  line-height: 1.9;
  color: #504A52;
}


/* =========================================================
   READING PROGRESS
========================================================= */

.reading-progress{

    position:fixed;

    top:0;

    left:0;

    width:0%;

    height:3px;

    background:var(--accent-2);

    z-index:99999;

}