/**
 * Trust Centre — Standalone Stylesheet
 *
 * Cloned from: kicking-pixels-group-website /themes/bedrocktheme/style.css
 * Sections extracted: "TRUST CENTER" block (tabs, controls, subprocessors, FAQs).
 *
 * Brand colour: #29d3b9  (Gatheroo teal — update if brand differs)
 * Enqueued via: inc/scripts-styles.php  handle: gatheroo-trust-centre
 */

/* ─────────────────────────────────────────────────────────────────────────────
   Tab Navigation
───────────────────────────────────────────────────────────────────────────── */

.tab-nav {
    list-style: none;
    display: flex;
    gap: 2rem;
    border-bottom: solid 1px #ccc;
    padding: 0;
    margin: 0;
}

.tab-nav li.active button {
    font-weight: bold;
    border-bottom: solid 2px #29d3b9;
}

.tab-nav button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    font-size: inherit;
}

/* Mobile dropdown (hidden on desktop) */
.tab-nav-mobile {
    display: block;
}

.tab-nav-mobile select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.tab-nav-desktop {
    display: none;
}

/* Tab panels */
.tab-panels {
    padding-top: 2em;
}

.tab-panels .tab-panel {
    display: none;
}

.tab-panels .tab-panel.active {
    display: block;
}

.tab-panel-inner.has-sidebar {
    display: block;
    gap: 2rem;
    align-items: flex-start;
}

.tab-panel-inner.has-sidebar .sidebar {
    width: 100%;
}

.tab-content-main {
    flex: 1;
}

/* Sticky sidebar (desktop) */
aside.sidebar {
    position: sticky;
    top: 90px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Overview Tab
───────────────────────────────────────────────────────────────────────────── */

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tab-content-main .control-count a {
    color: #29d3b9;
}

.tab-content-main .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tab-content-main .overview-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

.tab-content-main .overview-box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.overview-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.5em;
}

.overview-title {
    font-weight: 600;
    margin: 0;
}

/* Right-arrow icon (SVG inline data URI — no external URL dependency) */
.overview-arrow {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.overview-box-header:hover .overview-arrow {
    color: #000;
}

.overview-box ul {
    margin: 1rem 0;
    list-style: none;
    padding-left: 0;
}

.overview-box ul li {
    margin-bottom: 0.5rem;
}

.overview-box ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0055aa;
}

.overview-box a {
    text-decoration: none;
    color: #0055aa;
}

.overview-box p {
    color: #29d3b9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Sidebar
───────────────────────────────────────────────────────────────────────────── */

.sidebar-block.boxed {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    margin-top: 2rem;
}

.sidebar-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-icon {
    display: flex;
}

.sidebar-buttons {
    display: inline;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.sidebar-button {
    display: inline-block;
    padding: 8px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-bottom: 6px;
    background: #f3f3f3;
    color: #333;
}

.sidebar-button:hover {
    background-color: #29d3b9;
    color: #ffffff !important;
}

.sidebar-button.is-active {
    background-color: #29d3b9;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Controls CPT
───────────────────────────────────────────────────────────────────────────── */

.tab-panel-inner.has-sidebar.controls .sidebar {
    width: 100%;
    margin-bottom: 2rem;
}

.controls-grid-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 1rem;
    font-weight: bold;
    border-bottom: 1px solid #cccccc;
    padding: 0.5rem 1rem;
    background: #faf8f8;
    border-radius: 8px 8px 0 0;
}

.header-label {
    text-align: left;
}

.header-status {
    text-align: center;
}

.controls-outer {
    border: solid 1px #ccc;
    border-radius: 8px;
    margin: 2rem 0 3rem 0;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr auto;
}

.control-card {
    display: contents;
}

.control-info {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.control-info strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.control-description,
.control-description p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5rem;
}

.control-description ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.control-status {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 1.25rem;
    color: #4caf50;
}

/* Check icon (used in controls + overview) */
.check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #29d3b9;
    border-radius: 50%;
    position: relative;
    margin-right: 8px;
    flex-shrink: 0;
}

.check-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Subprocessors CPT
───────────────────────────────────────────────────────────────────────────── */

.subprocessors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.subprocessors-grid {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    border: solid 1px #cccccc;
    border-radius: 8px;
}

.subprocessor-item {
    display: block;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #cccccc;
}

.subprocessor-item:last-child {
    border-bottom: 0;
}

.subprocessor-icon {
    padding-bottom: 1rem;
}

.subprocessor-icon svg,
.subprocessor-icon img {
    width: 64px;
    height: auto;
    display: block;
}

.subprocessor-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.subprocessor-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5rem;
}

.subprocessor-location {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: left;
    min-width: 100px;
    padding-top: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FAQs CPT
───────────────────────────────────────────────────────────────────────────── */

.faqs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.tab-panel-inner.has-sidebar.faqs .sidebar {
    width: 100%;
    margin-bottom: 2rem;
}

.faq-nav {
    margin-bottom: 2rem;
}

.faq-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-nav li {
    margin: 0.5rem 0;
}

.faq-nav a {
    text-decoration: underline;
    color: #005b99;
}

.faq-sections {
    margin-top: 2rem;
}

.faq-category-title {
    margin: 2rem 0 0.5rem;
}

.faq-accordion {
    border: solid 1px #cccccc;
    margin: 2rem 0 3rem;
    padding: 1rem 2rem;
    border-radius: 8px;
}

.faq-accordion .faq-item {
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
}

.faq-accordion .faq-item:last-child {
    border-bottom: 0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
}

.faq-toggle-icon {
    font-weight: normal;
    transition: transform 0.2s;
    font-size: 24px;
    color: #29d3b9;
    padding-left: 1rem;
    text-align: right;
}

.faq-answer {
    display: none;
    margin-top: 1rem;
}

.faq-answer.open {
    display: block;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive — Tablet (768px+)
───────────────────────────────────────────────────────────────────────────── */

@media only screen and (min-width: 768px) {

    .tab-nav-mobile { display: none; }
    .tab-nav-desktop { display: flex; }

    .tab-content-main .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive — Desktop (992px+)
───────────────────────────────────────────────────────────────────────────── */

@media only screen and (min-width: 992px) {

    .tab-panel-inner.has-sidebar {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
    }

    .tab-panel-inner.has-sidebar .sidebar {
        width: 30%;
    }

    .tab-panel-inner.has-sidebar.controls .sidebar {
        width: 22%;
    }

    .tab-panel-inner.has-sidebar.faqs .sidebar {
        width: 22%;
    }

    .sidebar-buttons { display: flex; }
    .sidebar-button  { padding: 8px; }

    .subprocessor-item     { display: grid; }
    .subprocessor-icon     { padding-bottom: 0; }
    .subprocessor-location { text-align: right; padding-top: 0; }
}
