/*
 Theme Name:   Petyaari 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
*/

/* faq css */
#rank-math-faq.rank-math-block {
    background-color: #fff9c4; /* light yellow background */
    border: 2px solid #fbc02d; /* darker yellow border */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

#rank-math-faq.rank-math-block:hover {
    background-color: #fff176; /* slightly more intense on hover */
}

/* faq additional css */

/* headings counter start */

body.single-post .entry-content {
  counter-reset: h2counter;
}

body.single-post .entry-content h2 {
  counter-increment: h2counter;
  counter-reset: h3counter;
  position: relative;
  padding-left: 2em;
}

body.single-post .entry-content h3 {
  counter-increment: h3counter;
  position: relative;
  padding-left: 2.5em;
}

body.single-post .entry-content h2::before {
  content: counter(h2counter);
  background: linear-gradient(45deg, #724bb7 0%, #4098d7 100%);
  color: #fff;
  font-weight: bold;
  font-size: 0.8em;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border-radius: 4px; /* Square corners */
}

body.single-post .entry-content h3::before {
  content: counter(h2counter) "." counter(h3counter);
  background: linear-gradient(45deg, #724bb7 0%, #4098d7 100%);
  color: #fff;
  font-weight: bold;
  font-size: 0.75em;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border-radius: 4px; /* Square corners */
}



/* headings counter end */

