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

.main-navigation,
.site-header {
  background: linear-gradient(90deg, #071F5B 0%, #111844 100%);
}

/* Make nav inherit header background (no second bar) */
.main-navigation,
.inside-navigation {
  background: transparent !important;
}

/* Footer text links only */
.site-footer a:not(.gb-button),
.site-footer a:not(.gb-button):visited {
    color: #ffffff !important;
    text-decoration: none;
}

.site-footer a:not(.gb-button):hover,
.site-footer a:not(.gb-button):focus {
    color: #FFC800 !important;
}

/* FAQ wrapper */
.timeless-faq {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    background: #F4F6FA;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(7, 31, 91, 0.12);
    overflow: hidden;
    box-sizing: border-box;
}

/* Force all inner GenerateBlocks items to stay same width */
.timeless-faq *,
.timeless-faq *::before,
.timeless-faq *::after {
    box-sizing: border-box;
}

/* Each details item */
.timeless-faq details {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid rgba(7, 31, 91, 0.15);
    background: #F4F6FA;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Remove last border */
.timeless-faq details:last-child {
    border-bottom: none;
}

/* Question row */
.timeless-faq summary {
    width: 100%;
    max-width: 100%;
    display: block;
    text-align: left;
    padding: 18px 52px 18px 24px;
    font-size: 18px;
    line-height: 1.4;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    color: #071F5B;
    font-weight: 600;
    list-style: none;
    margin: 0;
}

/* Remove browser default marker */
.timeless-faq summary::-webkit-details-marker {
    display: none;
}

.timeless-faq summary::marker {
    content: "";
}

/* Remove GenerateBlocks/details default icon if present */
.timeless-faq summary .gb-icon,
.timeless-faq summary svg {
    display: none !important;
}

/* Hover */
.timeless-faq summary:hover {
    background: #E9EEF8;
    color: #071F5B;
}

/* Focus */
.timeless-faq summary:focus {
    outline: none;
    box-shadow: none;
}

.timeless-faq summary:focus-visible {
    outline: 2px solid #D52B1E;
    outline-offset: 2px;
}

/* Plus icon */
.timeless-faq summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    color: #D52B1E;
    pointer-events: none;
}

/* Open question styling */
.timeless-faq details[open] summary {
    background: #071F5B;
    border-left: 6px solid #D52B1E;
    color: #FFFFFF;
    padding-left: 18px;
}

/* Open hover */
.timeless-faq details[open] summary:hover {
    background: #061944;
    color: #FFFFFF;
}

/* Minus icon when open */
.timeless-faq details[open] summary::after {
    content: "–";
    color: #FFFFFF;
}

/* Answer area */
.timeless-faq details > *:not(summary) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 24px 20px 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #1F2937;
    background: #F4F6FA;
}

/* Tidy answer paragraphs */
.timeless-faq details > *:not(summary) p {
    margin-top: 0;
}

.timeless-faq details > *:not(summary) p:last-child {
    margin-bottom: 0;
}

/* Closed question reset */
.timeless-faq details:not([open]) summary,
.timeless-faq details:not([open]) summary:hover,
.timeless-faq details:not([open]) summary:focus {
    background: #FFFFFF !important;
    color: #071F5B !important;
    border-left: none !important;
}

/* Mobile */
@media (max-width: 600px) {
    .timeless-faq {
        margin: 30px 0;
        border-radius: 10px;
    }

    .timeless-faq summary {
        padding: 16px 48px 16px 18px;
        font-size: 16px;
    }

    .timeless-faq summary::after {
        right: 18px;
        font-size: 24px;
    }

    .timeless-faq details[open] summary {
        padding-left: 12px;
    }

    .timeless-faq details > *:not(summary) {
        padding: 14px 18px 18px 22px;
        font-size: 15px;
    }
}