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

:root {
    --brand-blue: #068FFF;
    --brand-link: #115cfa;
    --brand-purple: #6159f3;
    --accent-green: #2ed392;
    --accent-pink: #fa1151;
    --text-muted: #424242;
    --border-light: #eaeaea;
    --shadow-card: 0 7px 20px 0 rgb(38 50 56 / 8%);
    --shadow-button: 0 4px 20px 0 rgb(0 79 255 / 33%);
}

/* ---------- Navigation ---------- */
.main-navigation {
    box-shadow: 0 1px 4px 0 rgb(228 228 228 / 40%);
	border-bottom: 4px solid #44706e;
}

.gp-icon {
    font-size: 22px;
}
.entry-title{
    text-align:center;
}

/* ---------- Content typography ---------- */
.entry-content a {
    text-decoration:underline;
}

.entry-content h2 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100px;
    height: 2px;
    background-color: #537fe7;
}

h3 {
    padding: 8px 10px 5px 5px;
    background-color: #e4e9ff;
    border-style: groove;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
    position: relative;
    z-index: 2;
    padding: 5px 20px;
    margin-bottom: 10px;
    font-size: 16px;
    border: none;
    border-radius: 99px;
    background: var(--brand-blue) !important;
    box-shadow: var(--shadow-button);
    transition: 0.4s;
}

.wp-block-button .wp-block-button__link.is-style-outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
    background: #fff !important;
    color: var(--brand-blue);
    font-weight: 400;
}

a.read-more.button {
    float: right;
    margin-top: -30px;
    padding: 10px;
    font-size: 16px;
    font-weight: bolder;
    color: var(--brand-link);
    text-decoration: none;
    background-color: transparent;
    background-image:
        linear-gradient(transparent 2px, var(--accent-green) 2px, var(--accent-green) 4px, transparent 4px),
        linear-gradient(transparent 2px, #d8dce9 2px, #d8dce9 4px, transparent 4px);
    background-size: 0% 6px, 100% 6px;
    background-position: 0 bottom, 0 bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease-in-out;
}

a.read-more.button:hover {
    color: var(--brand-link);
    background-size: 100% 6px;
}

/* ---------- Cards / containers ---------- */
.bn {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
}



.separate-containers .inside-right-sidebar {
    position: sticky;
    top: 15px;
    vertical-align: top;
}

/* ---------- Meta / breadcrumbs ---------- */
.entry-meta,
.rank-math-breadcrumb {
    margin-bottom: 0.5em;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rank-math-breadcrumb .separator {
    display: inline-flex;
    align-items: center;
    width: 15px;
    height: 15px;
    margin: 0 6px;
    background: url(/wp-content/uploads/2023/07/chevron-right-grey-2.svg) no-repeat center / 12px 12px;
    text-indent: -9999em;
}

.rank-math-breadcrumb p {
    max-width: 511px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* ---------- Images ---------- */
.wp-block-image img {
    margin-bottom: 15px;
    box-shadow: rgba(23, 23, 99, 0.1) 0 7px 48px !important;
}

/* ---------- Rank Math ---------- */
.rank-math-list-item {
    margin: 20px 0;
    padding: 10px;
    background: #f3f9ff;
    border: 1px solid var(--border-light);
    border-radius: 3px;
}

#rank-math-rich-snippet-wrapper {
    padding: 16px;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(232 234 237 / 50%);
}

#rank-math-rich-snippet-wrapper h5.rank-math-title {
    font-weight: 600;
}

.rank-math-review-image {
    max-width: 150px !important;
    max-height: 150px !important;
}

/* ---------- Decorative boxes ---------- */
.gcamtop {
    margin-bottom: 10px;
    border: 2px solid #176B87;
    border-radius: 10px;
}

.box {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    padding: 15px 20px;
    text-align: center;
    user-select: none;
    background: linear-gradient(145deg, #fafafa, #ffffff);
    border: 2px solid rgb(255 105 0);
    border-radius: 6px;
    box-shadow: 10px 10px 19px #fff, -10px -10px 19px #fff;
    transition: 0.4s;
}

.box svg {
    max-width: 70px;
    max-height: 70px;
    margin: 10px;
    fill: #22d99b;
}

.green {
    padding: 0 10px 10px;
    margin-bottom: 20px;
    text-align: center !important;
    border: 2px solid var(--brand-blue);
    border-radius: 5px;
}

.green h3 {
    margin: 0 -10px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--brand-blue);
    border: none;
    border-radius: 0;
}

.hlight {
    padding: 0 10px 5px;
    margin-bottom: 10px;
    background: #e5f6f0;
    border: 1px dashed #02a569;
    border-radius: 5px;
}

.reviewbox {
    position: relative;
    margin: 0 0 1.5em;
    padding: 20px !important;
    font-size: 16px;
    font-style: normal;
    border: 1px solid var(--accent-pink);
    border-radius: 10px;
    box-shadow: 0 2px 15px 0 #ebebeb;
}

.reviewbox strong {
    margin-right: 5px;
    padding: 2.8px 10px;
    font-size: 15px;
    color: #fff;
    background: var(--accent-pink);
    border-radius: 55px;
    box-shadow: 0 2px 15px 0 #ebebeb;
}

/* ---------- TOC ---------- */
#toc_container {
    display: table;
    width: auto;
    height: fit-content;
    padding: 10px 20px;
    margin-bottom: 1rem;
    font-size: 95%;
    border-radius: 5px;
    box-shadow: 0 1px 4px 0 rgb(0 0 0 / 24%);
}

#toc_container a:hover {
    text-decoration: none;
}

/* ---------- Code ---------- */
code {
    padding: 2px 8px;
    font-weight: 600;
    white-space: pre-wrap;
    background-color: #f5f5f5;
}


/* ===== Custom site footer ===== */
.bfa-footer {
    --footer-bg: #fafafc;
    --footer-text: #2f4a4a;
    --footer-muted: #8a9a9a;
    --footer-accent: #1f3a3a;
    --wave-fill: #d5d5d8;

    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 14px;
}

/* Wavy top border — tiled SVG */
.bfa-footer__wave {
    height: 13px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21.6 13.2'><path d='M10.8 3.2c2.8 0 4.3.8 6.5 2.8l.3.2c1.6 1.5 2.3 1.9 3.8 2h.2v5.1H0V8.2c1.5 0 2.3-.4 3.8-1.8l.2-.2c2.4-2.2 3.9-3 6.8-3z' fill='%23fafafc'/><path d='M10.8.1c2.8 0 4.3.8 6.5 2.8l.3.2c1.6 1.5 2.3 1.9 3.8 2h.2v4.1c-2.8 0-4.3-.8-6.5-2.8l-.3-.2c-1.7-1.6-2.4-2-4-2-1.5 0-2.3.3-3.8 1.7l-.2.2C4.5 8.2 3 9.1.3 9.1l-.3.1V5.1c1.5 0 2.3-.4 3.8-1.8l.2-.1C6.4 1 7.9.1 10.8.1z' fill='%23d5d5d8'/></svg>");
    background-repeat: repeat-x;
    background-size: 21.6px 13.2px;
}

.bfa-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    text-align: center;
}

/* Social icons */
.bfa-footer__social {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.bfa-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--footer-accent);
    color: #fff;
    border-radius: 4px;
    border: none !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

.bfa-footer__social a:hover {
    transform: translateY(-2px);
    background: #2a5050;
}

.bfa-footer__social svg {
    width: 16px;
    height: 16px;
}

/* Nav rows */
.bfa-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 12px;
}

.bfa-footer__nav a {
    color: var(--footer-text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: none !important; /* override .entry-content a global rule */
    transition: color 0.2s ease;
}

.bfa-footer__nav a:hover {
    color: var(--brand-blue, #068FFF);
}

.bfa-footer__nav--secondary {
    margin-bottom: 24px;
}

/* Copyright */
.bfa-footer__copy {
    margin: 0;
    color: var(--footer-muted);
    font-size: 13px;
}

/* Mobile */
@media (max-width: 600px) {
    .bfa-footer__nav {
        gap: 8px 16px;
        font-size: 13px;
    }
    .bfa-footer__inner {
        padding: 30px 16px 20px;
    }
}