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

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

    --main-color: #040027;
    --main-accent-color: #030021;
}

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif !important;
}

@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;
}

/* Modern Professional List Styling - Complete Redesign */
.entry-content ul,
.entry-content ol {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.9;
}

/* Unordered Lists - Modern Card Style */
.entry-content ul li {
  position: relative;
  margin-bottom: 1rem;
  padding: 16px 20px 16px 56px;
  background: #ffffff;
  border: 1px solid rgba(12, 99, 45, 0.12);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  /* transition removed to eliminate hover effects */
  color: #374151;
  font-weight: 400;
  overflow: hidden;
}

/* ::after pseudo-element removed to eliminate hover effects */

/* Hover effects completely removed for ul li */

.entry-content ul li:before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--main-color) 0%,
    var(--main-accent-color) 100%
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  mask-size: 16px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: 16px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  /* transition removed */
}

/* ul li:hover:before removed */

/* Ordered Lists - Minimal Numbered Style */
.entry-content ol {
  counter-reset: modern-counter;
}

.entry-content ol li {
  position: relative;
  margin-bottom: 1.2rem;
  padding: 14px 20px 14px 60px;
  background: transparent;
  border-bottom: 2px solid rgba(12, 99, 45, 0.1);
  /* transition removed */
  color: #374151;
  font-weight: 400;
}

/* ol li:hover removed */

.entry-content ol li:before {
  content: counter(modern-counter, decimal-leading-zero);
  counter-increment: modern-counter;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  /* transition removed */
}

/* ol li:hover:before removed */

/* Alternative List Style - Clean Minimal */
.entry-content ul.minimal-list li {
  padding: 12px 16px 12px 40px;
  margin-bottom: 0.5rem;
  background: transparent;
  border: none;
  border-left: 3px solid var(--main-color);
  border-radius: 0;
  box-shadow: none;
}

.entry-content ul.minimal-list li:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--main-color);
  border-radius: 50%;
  mask-image: none;
  -webkit-mask-image: none;
}

/* ul.minimal-list li:hover removed */

/* Nested Lists - Refined Hierarchy */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin: 1rem 0 0.5rem 2rem;
  padding-left: 0;
}

.entry-content ul ul li {
  padding: 10px 16px 10px 40px;
  margin-bottom: 0.6rem;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(12, 99, 45, 0.08);
  box-shadow: none;
  font-size: 15px;
}

.entry-content ul ul li:before {
  width: 6px;
  height: 6px;
  left: 16px;
  background: var(--main-accent-color);
  mask-image: none;
  -webkit-mask-image: none;
  border-radius: 50%;
}

.entry-content ol ol li {
  padding: 8px 12px 8px 45px;
  font-size: 15px;
  border-bottom-width: 1px;
}

.entry-content ol ol li:before {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-width: 1px;
  border-radius: 6px;
}

/* Special List Styles */
.entry-content ul.icon-list li:before {
  content: "→";
  background: none;
  mask-image: none;
  -webkit-mask-image: none;
  color: var(--main-color);
  font-size: 18px;
  font-weight: bold;
  width: auto;
  height: auto;
}

.entry-content ul.feature-list li {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-left: 4px solid var(--main-color);
}

.entry-content ul.feature-list li:before {
  background: var(--main-color);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

/* Dark Theme Support */
.dark-theme .entry-content ul li {
  background: #1f2937;
  color: #e5e7eb;
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* dark-theme ul li:hover removed */

.dark-theme .entry-content ol li {
  color: #e5e7eb;
  border-bottom-color: rgba(16, 185, 129, 0.2);
}

/* dark-theme ol li:hover removed */

.dark-theme .entry-content ul ul li {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(16, 185, 129, 0.15);
}

/* Remove entry-content list styles from Table of Contents */
#ez-toc-container ul li,
#ez-toc-container ol li {
  padding: 0;
  margin-bottom: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

#ez-toc-container ul li:before,
#ez-toc-container ol li:before {
  display: none;
}

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

/* Custom Login/Register Button Styling with SVG Icons */
.wp-block-button__link.wp-element-button {
  transition: all 0.3s ease !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}

.wp-block-button__link.wp-element-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.wp-block-button__link.wp-element-button svg {
  transition: transform 0.3s ease !important;
  width: 16px !important;
  height: 16px !important;
}

.wp-block-button__link.wp-element-button:hover svg {
  transform: scale(1.1) !important;
}

/* Ensure consistent height for inline buttons */
a[style*="border-radius:22px"] span {
  min-height: 20px !important;
  padding: 8px 20px !important;
  box-sizing: border-box !important;
  line-height: 1.25 !important;
}

/* Mobile responsiveness for buttons with icons */
@media (max-width: 768px) {
  .wp-block-button__link.wp-element-button {
    min-height: 44px !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
  }
  
  .wp-block-button__link.wp-element-button svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  a[style*="border-radius:22px"] span {
    min-height: 18px !important;
    padding: 6px 16px !important;
  }
}

/* Features Section Additional Styles */
.website-features {
  margin: 60px auto;
  max-width: 1200px;
  margin-bottom: 60px !important;
}

/* Override theme defaults for features */
.website-features h2.features-heading {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

/* Smooth transitions for all feature variants */
.feature-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
.feature-content:focus-within {
  outline: 2px solid var(--main-color);
  outline-offset: 4px;
}

/* Print styles for features */
@media print {
  .website-features {
    page-break-inside: avoid;
  }

  .feature-item {
    page-break-inside: avoid;
  }

  .feature-content {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .feature-heading,
  .feature-subheading {
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-content {
    border-width: 2px !important;
    border-color: currentColor !important;
  }

  .feature-heading {
    font-weight: 900 !important;
  }
}

/* Dark mode support for features */
@media (prefers-color-scheme: dark) {
  .features-variant-modern .feature-content,
  .features-variant-gradient .feature-content {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
  }

  .features-variant-cards .feature-content {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(75, 85, 99, 0.3);
  }

  .feature-heading {
    color: #f3f4f6;
  }

  .feature-subheading {
    color: #d1d5db;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .entry-content ul,
  .entry-content ol {
    margin: 1.5rem 0;
  }

  /* Mobile UL styles */
  .entry-content ul li {
    padding: 14px 16px 14px 48px;
    margin-bottom: 0.8rem;
    border-radius: 10px;
    font-size: 15px;
  }

  /* Mobile ul li:hover removed */

  .entry-content ul li:before {
    width: 20px;
    height: 20px;
    left: 16px;
    mask-size: 14px;
    -webkit-mask-size: 14px;
  }

  /* Mobile OL styles */
  .entry-content ol li {
    padding: 12px 16px 12px 52px;
    margin-bottom: 1rem;
    font-size: 15px;
  }

  /* Mobile ol li:hover removed */

  .entry-content ol li:before {
    width: 36px;
    height: 36px;
    font-size: 13px;
    border-radius: 6px;
  }

  /* Mobile nested lists */
  .entry-content ul ul,
  .entry-content ol ol,
  .entry-content ul ol,
  .entry-content ol ul {
    margin: 0.8rem 0 0.4rem 1.2rem;
  }

  .entry-content ul ul li {
    padding: 8px 12px 8px 32px;
    margin-bottom: 0.5rem;
    font-size: 14px;
  }

  .entry-content ul ul li:before {
    width: 5px;
    height: 5px;
    left: 14px;
  }

  .entry-content ol ol li {
    padding: 6px 10px 6px 38px;
    font-size: 14px;
  }

  .entry-content ol ol li:before {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 5px;
  }

  /* Mobile minimal list */
  .entry-content ul.minimal-list li {
    padding: 10px 14px 10px 32px;
    font-size: 15px;
  }

  .entry-content ul.minimal-list li:before {
    width: 6px;
    height: 6px;
    left: 10px;
  }

  /* Mobile special lists */
  .entry-content ul.icon-list li:before {
    font-size: 16px;
    left: 14px;
  }

  .entry-content ul.feature-list li {
    padding: 14px 16px 14px 48px;
  }
}
