/*
 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
*/

/* FAQ */
#rank-math-faq {
    margin-bottom: 40px;
}

#rank-math-faq .rank-math-list-item {
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e6eeee;
    border-radius: 16px;
    cursor: pointer;
    background: #fafcfc;
    transition: all 0.3s ease;
}

#rank-math-faq .rank-math-question {
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 35px;
    font-size: 18px;
    font-weight: 700;
    color: #6E48AA;
    border-bottom: none;
}

#rank-math-faq .rank-math-question:before {
    content: "Q";
    position: static; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #1E4E9D 0%, #9D50BB 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85em;
    margin-right: 15px;
    flex-shrink: 0;
}

#rank-math-faq .rank-math-question:after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9D50BB;
    transition: transform 0.3s ease;
}

#rank-math-faq .rank-math-list-item.active {
    border-color: #9D50BB;
    background: #fff;
}

#rank-math-faq .rank-math-list-item.active .rank-math-question:after {
    transform: translateY(-50%) rotate(180deg);
}

#rank-math-faq .rank-math-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#rank-math-faq .rank-math-answer p {
	margin-bottom: 0;
}

#rank-math-faq .rank-math-list-item.active .rank-math-answer {
    max-height: 1000px;
    opacity: 1;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    color: #555;
    line-height: 1.6;
}

a.generate-back-to-top {
	background: linear-gradient(135deg, #9D50BB, #9D50BB, #6E48AA);
	border-radius: 50px;
	margin-bottom: 40px;
}

.inside-top-bar a.wp-block-button__link {
	padding: 10px 50px;
	background: linear-gradient(270deg, #9D50BB, #9D50BB, #6E48AA);
	background-size: 200% 100%;
	background-position: left center;
	transition: background-position 0.5s ease;
}

.inside-top-bar a.wp-block-button__link:hover {
	background-position: right center;
}

.top-bar-align-right .widget:first-child {
    margin: auto;
}

.wp-block-image img {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0,0.2);
}

@media (max-width: 768px) {
    #rank-math-faq .rank-math-question { font-size: 16px; }
}

/* Rank Math TOC */
.wp-block-rank-math-toc-block h2 {
	font-size: 18px;
	cursor: pointer;
	margin-bottom: 0;
}

/* Hidden by default */
.wp-block-rank-math-toc-block nav {
	display: none;
	margin-top: 15px;
}

/* Show when active */
.wp-block-rank-math-toc-block.active nav {
	display: block;
}

/* Arrow */
.wp-block-rank-math-toc-block h2::after {
	content: "▼";
	float: right;
	transition: .3s;
}

.wp-block-rank-math-toc-block.active h2::after {
	transform: rotate(180deg);
}

/* Links */
.wp-block-rank-math-toc-block nav a {
    display: block;
    padding: 8px 15px;
    font-size: 14.5px;
    color: #fff;
    text-decoration: none;
    transition: .2s;
}

.wp-block-rank-math-toc-block nav a:hover {
    padding-left: 6px;
}

/* Nested */
.wp-block-rank-math-toc-block nav ul ul a {
    font-size: 13.5px;
    color: #888;
    padding-left: 14px;
}

/* TOC Card Design */
.wp-block-rank-math-toc-block {
	  background: linear-gradient(135deg, #9D50BB, #9D50BB, #6E48AA);
	  color: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 35px;
}

.site-header {
    background: linear-gradient(180deg, #1E4E9D 0%, #9D50BB 100%);
}

/* Order List Styles */
.entry-content ol>li,
.entry-content ul>li {
	margin-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
}

.entry-content ol {
    list-style-type: none;
    counter-reset: my-awesome-counter;
}

.entry-content ol > li {
	counter-increment: my-awesome-counter;
	position: relative;
	padding-left: 35px;
	margin-left: -35px;
	margin-bottom: 10px;
}

.entry-content ol > li::before {
    content: counter(my-awesome-counter);
    position: absolute;
    left: 0;
	  top: 0;
    background: linear-gradient(180deg, #1E4E9D 0%, #9D50BB 100%);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

blockquote, .wp-block-pullquote {
    padding: 20px;
    font-size: 22px;
    font-style: italic;
    margin: 0 0 1.5em;
}
.entry-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.entry-content ul>li {
    position: relative;
    padding: 12px 14px 12px 40px;
    margin: 10px 0;
    background: #fafcfc;
    border: 1px solid #e6eeee;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.entry-content ul>li::before
 {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #7c3aed;
}

.entry-content :is(h2,h3,h4,h5,h6):not(.heading,.wp-block-rank-math-toc-block h2,.rank-math-question) {
    color: #fff;
    text-align: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 20px 0 14px 0;
    display: block;
    width: 100%;
}
.entry-content :is(h2):not(.heading,.wp-block-rank-math-toc-block h2,.rank-math-question) {
    background: linear-gradient(135deg, #9D50BB, #9D50BB, #6E48AA);
}
.entry-content :is(h3,h4,h5,h6):not(.heading,.rank-math-question) {
    background: linear-gradient(135deg, #be6ede,  #a989dc);
}

/* Custom Tables */
table, .wp-block-table {
	border-radius: 14px;
	margin: none;
	border: none!important;
	margin-bottom: 30px;
}

table tr td:first-child, 
table tr th:first-child {
    border-radius: 14px 0 0 14px;
}

table tr td:last-child, 
table tr th:last-child {
    border-radius: 0 14px 14px 0;
}

/* Page Header */
.page h1 {
	text-align: center;
	color: #9D50BB;
}