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

/* General styling improvements */
:root {
    --main-text-color: #333333;
    --light-bg-color: #f5f7fa;
    --transition-speed: 0.3s;

    --main-color: #e75252;
    --main-accent-color: #c44545;
}


@media (max-width: 768px) {
.inside-header {
    padding: 5px 40px !important;
}
	.separate-containers .site-main {
    margin: 2px 20px;
}
	
	h1 {
  font-size: 32px;  
  
}
	
	.entry-content:not(:first-child), .entry-summary:not(:first-child), .page-content:not(:first-child) {
    margin-top: 20px;
}

	.inside-article{
		padding: 16px 30px !important;
	}
	
	
	.inside-header.grid-container {
	padding: 20px 40px 4px 40px!important;
}
	
}



html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Body and container improvements */
body {
    line-height: 1.7;
    color: var(--main-text-color);
	 overflow-x: hidden;
}

.site-content {
    padding: 2rem 0;
}

.wp-block-button__link.has-background {
    font-weight: 500;
    transition: all var(--transition-speed);
    letter-spacing: 0.5px;
}


.inside-header.grid-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.2rem;
}

h1 {
	font-weight: 700;
}

@media (min-width: 454px) {
    .inside-header {
			flex-direction: row !important;
    }
}


.site-content {
    padding: 0 !important;
}

.site-main {
	margin: 0 !important;
}

.inside-site-info {
    background-color: var(--main-color);
}


.site-main div{
	margin-bottom: 0;
}


.site-header {
    background-color: var(--main-color);
}

.hero-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero-subheading-only, .hero-description-only, .website-name-heading {
	color: #fff;
	text-align: center;
}

p.hero-subheading-only {
    color: yellow;
    font-weight: bold;
}

/* Smart text contrast for light background colors */
/* White, light yellow and similar light colors */
a[style*="background-color: white"],
a[style*="background-color:white"],
a[style*="background-color: #fff"],
a[style*="background-color:#fff"],
a[style*="background-color: #ffffff"],
a[style*="background-color:#ffffff"],
a[style*="background-color: #eeee22"], 
a[style*="background-color:#eeee22"],
a[style*="background-color: #ffff"],
a[style*="background-color:#ffff"],
a[style*="background-color: #fefe"],
a[style*="background-color:#fefe"],
a[style*="background-color: #fdfd"],
a[style*="background-color:#fdfd"],
a[style*="background-color: #fcfc"],
a[style*="background-color:#fcfc"],
a[style*="background-color: #fbfb"],
a[style*="background-color:#fbfb"],
a[style*="background-color: #fafa"],
a[style*="background-color:#fafa"],
a[style*="background-color: #f9f9"],
a[style*="background-color:#f9f9"],
a[style*="background-color: #f8f8"],
a[style*="background-color:#f8f8"],
a[style*="background-color: #e"],
a[style*="background-color:#e"],
a[style*="background-color: #d"],
a[style*="background-color:#d"],
a[style*="background-color: #c"],
a[style*="background-color:#c"],
.wp-block-button__link[style*="background-color: white"],
.wp-block-button__link[style*="background-color:white"],
.wp-block-button__link[style*="background-color: #fff"],
.wp-block-button__link[style*="background-color:#fff"],
.wp-block-button__link[style*="background-color: #ffffff"],
.wp-block-button__link[style*="background-color:#ffffff"],
.wp-block-button__link[style*="background-color: #eeee22"],
.wp-block-button__link[style*="background-color:#eeee22"],
.wp-block-button__link[style*="background-color: #ffff"],
.wp-block-button__link[style*="background-color:#ffff"],
.wp-block-button__link[style*="background-color: #fefe"],
.wp-block-button__link[style*="background-color:#fefe"],
.wp-block-button__link[style*="background-color: #fdfd"],
.wp-block-button__link[style*="background-color:#fdfd"],
.wp-block-button__link[style*="background-color: #fcfc"],
.wp-block-button__link[style*="background-color:#fcfc"],
.wp-block-button__link[style*="background-color: #fbfb"],
.wp-block-button__link[style*="background-color:#fbfb"],
.wp-block-button__link[style*="background-color: #fafa"],
.wp-block-button__link[style*="background-color:#fafa"],
.wp-block-button__link[style*="background-color: #f9f9"],
.wp-block-button__link[style*="background-color:#f9f9"],
.wp-block-button__link[style*="background-color: #f8f8"],
.wp-block-button__link[style*="background-color:#f8f8"],
.wp-block-button__link[style*="background-color: #e"],
.wp-block-button__link[style*="background-color:#e"],
.wp-block-button__link[style*="background-color: #d"],
.wp-block-button__link[style*="background-color:#d"],
.wp-block-button__link[style*="background-color: #c"],
.wp-block-button__link[style*="background-color:#c"] {
    color: #333333 !important;
}

/* Apply to child spans as well */
a[style*="background-color: white"] span,
a[style*="background-color:white"] span,
a[style*="background-color: #fff"] span,
a[style*="background-color:#fff"] span,
a[style*="background-color: #ffffff"] span,
a[style*="background-color:#ffffff"] span,
a[style*="background-color: #eeee22"] span,
a[style*="background-color:#eeee22"] span,
a[style*="background-color: #ffff"] span,
a[style*="background-color:#ffff"] span,
a[style*="background-color: #fefe"] span,
a[style*="background-color:#fefe"] span,
a[style*="background-color: #fdfd"] span,
a[style*="background-color:#fdfd"] span,
a[style*="background-color: #fcfc"] span,
a[style*="background-color:#fcfc"] span,
a[style*="background-color: #fbfb"] span,
a[style*="background-color:#fbfb"] span,
a[style*="background-color: #fafa"] span,
a[style*="background-color:#fafa"] span,
a[style*="background-color: #f9f9"] span,
a[style*="background-color:#f9f9"] span,
a[style*="background-color: #f8f8"] span,
a[style*="background-color:#f8f8"] span,
a[style*="background-color: #e"] span,
a[style*="background-color:#e"] span,
a[style*="background-color: #d"] span,
a[style*="background-color:#d"] span,
a[style*="background-color: #c"] span,
a[style*="background-color:#c"] span,
.wp-block-button__link[style*="background-color: white"] span,
.wp-block-button__link[style*="background-color:white"] span,
.wp-block-button__link[style*="background-color: #fff"] span,
.wp-block-button__link[style*="background-color:#fff"] span,
.wp-block-button__link[style*="background-color: #ffffff"] span,
.wp-block-button__link[style*="background-color:#ffffff"] span,
.wp-block-button__link[style*="background-color: #eeee22"] span,
.wp-block-button__link[style*="background-color:#eeee22"] span,
.wp-block-button__link[style*="background-color: #ffff"] span,
.wp-block-button__link[style*="background-color:#ffff"] span,
.wp-block-button__link[style*="background-color: #fefe"] span,
.wp-block-button__link[style*="background-color:#fefe"] span,
.wp-block-button__link[style*="background-color: #fdfd"] span,
.wp-block-button__link[style*="background-color:#fdfd"] span,
.wp-block-button__link[style*="background-color: #fcfc"] span,
.wp-block-button__link[style*="background-color:#fcfc"] span,
.wp-block-button__link[style*="background-color: #fbfb"] span,
.wp-block-button__link[style*="background-color:#fbfb"] span,
.wp-block-button__link[style*="background-color: #fafa"] span,
.wp-block-button__link[style*="background-color:#fafa"] span,
.wp-block-button__link[style*="background-color: #f9f9"] span,
.wp-block-button__link[style*="background-color:#f9f9"] span,
.wp-block-button__link[style*="background-color: #f8f8"] span,
.wp-block-button__link[style*="background-color:#f8f8"] span,
.wp-block-button__link[style*="background-color: #e"] span,
.wp-block-button__link[style*="background-color:#e"] span,
.wp-block-button__link[style*="background-color: #d"] span,
.wp-block-button__link[style*="background-color:#d"] span,
.wp-block-button__link[style*="background-color: #c"] span,
.wp-block-button__link[style*="background-color:#c"] span {
    color: #333333 !important;
}

/* Direct span elements with light backgrounds */
span[style*="background-color:white"],
span[style*="background-color: white"],
span[style*="background-color:#fff"],
span[style*="background-color: #fff"],
span[style*="background-color:#ffffff"],
span[style*="background-color: #ffffff"],
span[style*="background-color:#eeee22"],
span[style*="background-color: #eeee22"],
span[style*="background-color:#ffff"],
span[style*="background-color: #ffff"],
span[style*="background-color:#fefe"],
span[style*="background-color: #fefe"],
span[style*="background-color:#fdfd"],
span[style*="background-color: #fdfd"],
span[style*="background-color:#fcfc"],
span[style*="background-color: #fcfc"],
span[style*="background-color:#fbfb"],
span[style*="background-color: #fbfb"],
span[style*="background-color:#fafa"],
span[style*="background-color: #fafa"],
span[style*="background-color:#f9f9"],
span[style*="background-color: #f9f9"],
span[style*="background-color:#f8f8"],
span[style*="background-color: #f8f8"],
span[style*="background-color:#e"],
span[style*="background-color: #e"],
span[style*="background-color:#d"],
span[style*="background-color: #d"],
span[style*="background-color:#c"],
span[style*="background-color: #c"] {
    color: #333333 !important;
}

/* Smart text contrast for inline style elements - dynamically generated by PHP */

/* Smart text contrast for elements using CSS variables - will be dynamically updated by PHP */

.website-square-icon{
	border-radius: 20px;
	margin-bottom: 10px;
}

.entry-content h2, .entry-content h3 {
    justify-content: center;
	text-align: center;
}

/* Professional and Custom ul/li Styling */
.entry-content ul, 
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.8;
}

.entry-content ul li, 
.entry-content ol li {
    position: relative;
    margin-bottom: 0.8rem;
    padding: 12px 16px 12px 48px;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-left: 4px solid var(--main-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
    font-weight: 400;
}

.entry-content ul li:hover, 
.entry-content ol li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(from var(--main-color) r g b / 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}

.entry-content ul li:before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.entry-content ol li:before {
    content: counter(li-counter);
    counter-increment: li-counter;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.entry-content ol {
    counter-reset: li-counter;
}

/* Nested lists styling */
.entry-content ul ul, 
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0.5rem 0 0 1rem;
    padding-left: 0;
}

.entry-content ul ul li, 
.entry-content ol ol li,
.entry-content ul ol li,
.entry-content ol ul li {
    padding: 8px 12px 8px 36px;
    margin-bottom: 0.5rem;
    border-left-width: 3px;
    font-size: 15px;
    background: linear-gradient(135deg, #fafbfc 0%, #f4f6f8 100%);
}

.entry-content ul ul li:before {
    width: 16px;
    height: 16px;
    font-size: 10px;
    left: 12px;
    content: "•";
    background: var(--main-accent-color);
}

.entry-content ol ol li:before {
    width: 16px;
    height: 16px;
    font-size: 9px;
    left: 12px;
    background: linear-gradient(135deg, var(--main-accent-color) 0%, var(--main-color) 100%);
}

/* Dark background adaptation */
.dark-theme .entry-content ul li, 
.dark-theme .entry-content ol li {
    background: linear-gradient(135deg, #2a2d34 0%, #1e2127 100%);
    color: #e8eaed;
    border-left-color: var(--main-color);
}

.dark-theme .entry-content ul li:hover, 
.dark-theme .entry-content ol li:hover {
    background: linear-gradient(135deg, #1e2127 0%, #2a2d34 100%);
}

/* Hide sticky download button on desktop/PC */
@media (min-width: 769px) {
    .sticky-download-button {
        display: none !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .entry-content ul li, 
    .entry-content ol li {
        padding: 10px 12px 10px 40px;
        margin-bottom: 0.6rem;
        font-size: 15px;
    }
    
    .entry-content ul li:before,
    .entry-content ol li:before {
        width: 18px;
        height: 18px;
        left: 12px;
        font-size: 10px;
    }
    
    .entry-content ul ul li, 
    .entry-content ol ol li,
    .entry-content ul ol li,
    .entry-content ol ul li {
        padding: 6px 10px 6px 32px;
        font-size: 14px;
    }
    
    .entry-content ul ul li:before,
    .entry-content ol ol li:before {
        width: 14px;
        height: 14px;
        left: 10px;
        font-size: 8px;
    }
}