/* ==========================================================================
   WPGreeks Frontend Global Theme Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --wpgreeks-primary: #488729;
    --wpgreeks-primary-hover: #3b6e22;

    /* Typography */
    --wpgreeks-font-family: inherit;

    /* Text Colors */
    --wpgreeks-text-dark: #111827;
    --wpgreeks-text-body: #4b5563;

    /* Backgrounds & Borders */
    --wpgreeks-bg-light: #fafafa;
    --wpgreeks-border-light: #e5e7eb;
    --wpgreeks-border-divider: #f3f4f6;

    /* Spacing & Radii */
    --wpgreeks-radius-sm: 4px;
    --wpgreeks-radius-md: 6px;
    --wpgreeks-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   HTML Sitemap Frontend Layout
   ========================================================================== */
.wpgreeks-html-sitemap-frontend {
    column-count: 3;
    column-gap: 30px;
    font-family: var(--wpgreeks-font-family);
}

.wpgreeks-html-sitemap-frontend h2 {
    font-size: 1.5rem;
    color: var(--wpgreeks-text-dark);
    border-bottom: 2px solid var(--wpgreeks-border-divider);
    padding-bottom: 15px;
    margin: 10px 0;
    text-transform: uppercase;
    line-height: 20px;
}

.wpgreeks-html-sitemap-frontend ul {
    list-style-type: square;
    padding-left: 20px;
    margin-bottom: 20px;
}

.wpgreeks-html-sitemap-frontend li {
    margin-bottom: 6px;
}

.wpgreeks-html-sitemap-frontend a {
    color: var(--wpgreeks-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.wpgreeks-html-sitemap-frontend a:hover {
    color: var(--wpgreeks-primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .wpgreeks-html-sitemap-frontend {
        column-count: 1;
    }
}

/* ==========================================================================
   Lead Thank You Page Display Layout
   ========================================================================== */
.wpgreeks-thankyou-container {
    text-align: center; 
    padding: 40px 20px; 
    max-width: 600px; 
    margin: 0 auto;
    font-family: var(--wpgreeks-font-family);
}

.wpgreeks-thankyou-icon {
    font-size: 64px; 
    color: var(--wpgreeks-primary); 
    margin-bottom: 20px;
}

.wpgreeks-thankyou-title {
    font-size: 32px; 
    margin-bottom: 15px; 
    color: var(--wpgreeks-text-dark);
}

.wpgreeks-thankyou-message {
    font-size: 16px; 
    color: var(--wpgreeks-text-body); 
    line-height: 1.6;
}

/* ==========================================================================
   Table of Contents (TOC) Frontend Layout & Hierarchy Bullets
   ========================================================================== */
.wpgreeks-toc-container {
    background: var(--wpgreeks-bg-light);
    border: 1px solid var(--wpgreeks-border-light);
    border-left: 4px solid var(--wpgreeks-primary);
    border-radius: var(--wpgreeks-radius-md);
    padding: 18px 22px;
    margin: 20px 0;
    max-width: 100%;
    box-shadow: var(--wpgreeks-shadow-sm);
    font-family: var(--wpgreeks-font-family);
}

.wpgreeks-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 17px;
    color: var(--wpgreeks-text-dark);
    margin-bottom: 14px;
}

.wpgreeks-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wpgreeks-text-dark);
}

/* FIX: Theme CSS Override Reset for Toggle Hide/Show Button */
button.wpgreeks-toc-toggle-btn,
.wpgreeks-toc-toggle-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: var(--wpgreeks-radius-sm) !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--wpgreeks-text-body) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

button.wpgreeks-toc-toggle-btn:hover,
.wpgreeks-toc-toggle-btn:hover {
    background: #f3f4f6 !important;
    border-color: var(--wpgreeks-primary) !important;
    color: var(--wpgreeks-primary) !important;
}

/* STYLISH NESTING & HIERARCHY BULLETS ENHANCEMENT */
.wpgreeks-toc-list,
.wpgreeks-toc-sublist {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.wpgreeks-toc-item {
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Stylish Bullet Indicator for Root H2 Items */
.wpgreeks-toc-item > a {
    display: inline-flex;
    align-items: center;
    color: var(--wpgreeks-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.wpgreeks-toc-item > a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--wpgreeks-primary);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Stylish Nesting Connector Lines & Distinct Bullets for H3 / Sub-items */
.wpgreeks-toc-sublist {
    padding-left: 18px !important;
    border-left: 2px solid #e5e7eb;
}

.wpgreeks-toc-sublist .wpgreeks-toc-item > a {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.wpgreeks-toc-sublist .wpgreeks-toc-item > a::before {
    width: 8px;
    height: 2px;
    border-radius: 0;
    background-color: #9ca3af;
    margin-right: 8px;
}

.wpgreeks-toc-link:hover,
.wpgreeks-toc-item a:hover {
    color: var(--wpgreeks-primary-hover) !important;
    text-decoration: underline;
}