/* ==========================================================================
   WPGreeks Frontend Global Theme Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --wpgreeks-primary: #488729;
    --wpgreeks-secondary: #f7a644;
    --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: 25px;
    color: #fff;
    display: inline;
    font-weight: bold;
    background: var(--wpgreeks-primary);
    padding: 5px 12px;
    border-radius: 100%;
}

.wpgreeks-thankyou-title {
    font-size: 32px;
    margin-bottom: 15px;
    margin-top: 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;
}

/* Module 6: WPGreeks Author Box Component */
.wpgreeks-author-card {
    background-color: #f4f6fa;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.wpgreeks-share-header {
    background-color: #012C3D;
    color: #ffffff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wpgreeks-share-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wpgreeks-share-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wpgreeks-share-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpgreeks-share-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.wpgreeks-share-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.wpgreeks-x-svg {
    display: inline-flex;
    align-items: center;
}

.wpgreeks-vk-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.wpgreeks-author-body {
    padding: 28px 28px 32px 28px;
}

.wpgreeks-author-heading {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.2;
}

.wpgreeks-author-name {
    color: var(--wpgreeks-secondary);
    font-style: italic;
    font-weight: 700;
}

.wpgreeks-author-details {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.wpgreeks-author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.wpgreeks-author-bio {
    flex: 1;
}

.wpgreeks-author-bio p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .wpgreeks-share-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wpgreeks-author-details {
        flex-direction: column;
    }
}

/* Sitemap Frontend Duplicate Page Notice */
.wpgreeks-sitemap-duplicate-notice {
    padding: 15px;
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #555;
    margin: 20px 0;
    border-radius: 4px;
}

.wpgreeks-sitemap-duplicate-notice a {
    color: #0073aa;
    text-decoration: underline;
}

/* ==========================================================================
   FAQ Manager — Frontend Accordion (native <details>/<summary>, no JS needed)
   ========================================================================== */
.wpgreeks-faq-block {
    margin: 32px 0;
}

.wpgreeks-faq-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--wpgreeks-text-dark);
    margin-bottom: 16px;
}

.wpgreeks-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpgreeks-faq-item {
    border: 1px solid var(--wpgreeks-border-light);
    border-radius: var(--wpgreeks-radius-md);
    background: #ffffff;
    padding: 4px 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpgreeks-faq-item[open] {
    border-color: var(--wpgreeks-primary);
    box-shadow: var(--wpgreeks-shadow-sm);
}

.wpgreeks-faq-question {
    list-style: none;
    cursor: pointer;
    padding: 14px 28px 14px 0;
    font-weight: 600;
    color: var(--wpgreeks-text-dark);
    position: relative;
}

.wpgreeks-faq-question::-webkit-details-marker {
    display: none;
}

.wpgreeks-faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--wpgreeks-primary);
    transition: transform 0.2s ease;
}

.wpgreeks-faq-item[open] .wpgreeks-faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.wpgreeks-faq-answer {
    padding: 0 0 16px 0;
    color: var(--wpgreeks-text-body);
    line-height: 1.6;
}

.wpgreeks-faq-answer p:last-child {
    margin-bottom: 0;
}