/* ==========================================================================
   Trusted Partners — trusted-partners.css
   Loaded on single partner pages and the staging listing page.
   Scoped with .trusted-partner-single and .tp-partners-grid to avoid
   conflicting with the existing theme stylesheet.
   ========================================================================== */

/* ── 1. LISTING GRID (shortcode output) ──────────────────────────────────── */

.tp-partners-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.tp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .tp-cols-3,
    .tp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .tp-cols-3,
    .tp-cols-4 { grid-template-columns: 1fr; }
}

.tp-partner-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.tp-partner-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.tp-partner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-decoration: none;
    color: #1a2e4a;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 80px;
    text-align: center;
    transition: color 0.2s ease;
}

.tp-partner-link:hover {
    color: #c0392b;
}

.tp-partner-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.tp-partner-name {
    font-size: 0.85rem;
    color: #555;
    font-weight: 400;
}

.tp-no-partners {
    color: #777;
    font-style: italic;
}

/* ── 2. SINGLE PARTNER PAGE — MODULE 1 HEADER ───────────────────────────── */

.trusted-partner-single {
    font-family: inherit;
}

/* Banner */
.header-two.stratpart .header-two__banner {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

.header-two__banner-inner {
    padding: 40px 60px;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 40%, transparent 100%);
    width: 100%;
}

.header-two__title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    margin: 0;
    max-width: 600px;
}

/* Content row below banner */
.header-two__content-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 48px 60px 56px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-two__content-left {
    flex: 1 1 60%;
}

.header-two__content-right {
    flex: 0 0 220px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.header-two__intro-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #1a2e4a;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 20px;
    line-height: 1.25;
}

.header-two__first-para {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 28px;
}

.header-two__first-para p {
    margin: 0 0 1em;
}

/* Partner logo box */
.partnerlogo-wrap {
    border: 1px solid #e0e0e0;
    border-top: 4px solid #c0392b;
    padding: 20px;
    display: inline-block;
    background: #fff;
}

.partnerlogo {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Request Info button */
.btn--request-info,
.btn--prefooter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c0392b;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn--request-info:hover,
.btn--prefooter:hover {
    background-color: #a93226;
    color: #fff;
    transform: translateY(-1px);
}

.btn__arrow {
    font-size: 1.3em;
    line-height: 1;
}

@media (max-width: 768px) {
    .header-two__content-row {
        flex-direction: column;
        padding: 32px 24px 40px;
    }
    .header-two__content-right {
        align-self: flex-start;
    }
    .header-two__banner-inner {
        padding: 24px;
    }
}

/* ── 3. SHARED SECTION STYLES (Modules 2–6) ─────────────────────────────── */

.tp-section {
    padding: 56px 0;
}

.tp-section:nth-child(even) {
    background-color: #f7f6f4;
}

.tp-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 56px;
}

.tp-section__inner--reversed {
    flex-direction: row-reverse;
}

.tp-section__inner--centered {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.tp-section__content {
    flex: 1 1 55%;
}

.tp-section__media {
    flex: 0 0 40%;
}

.tp-section__media img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.tp-section__headline {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #1a2e4a;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 20px;
    line-height: 1.25;
}

.tp-section__headline--centered {
    text-align: center;
    width: 100%;
}

.tp-section__para {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.tp-section__para p {
    margin: 0 0 1em;
}

@media (max-width: 900px) {
    .tp-section__inner,
    .tp-section__inner--reversed {
        flex-direction: column;
        padding: 0 24px;
        gap: 28px;
    }
    .tp-section {
        padding: 36px 0;
    }
}

/* ── 4. ACCORDION ────────────────────────────────────────────────────────── */

.tp-section--faq .tp-section__inner {
    flex-direction: column;
    align-items: stretch;
}

.tp-accordion {
    width: 100%;
    margin-top: 8px;
}

.tp-accordion__item {
    border-bottom: 1px solid #ddd;
}

.tp-accordion__item:first-child {
    border-top: 1px solid #ddd;
}

.tp-accordion__trigger {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2e4a;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s;
}

.tp-accordion__trigger:hover {
    color: #c0392b;
}

.tp-accordion__trigger[aria-expanded="true"] .tp-accordion__icon {
    transform: rotate(45deg);
    color: #c0392b;
}

.tp-accordion__icon {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.tp-accordion__panel {
    overflow: hidden;
}

.tp-accordion__panel[hidden] {
    display: none;
}

.tp-accordion__panel-inner {
    padding: 0 0 20px;
    font-size: 0.97rem;
    color: #444;
    line-height: 1.7;
}

.tp-accordion__panel-inner p {
    margin: 0 0 1em;
}

/* ── 5. CTA GRID ─────────────────────────────────────────────────────────── */

.tp-section--cta-grid .tp-section__inner {
    flex-direction: column;
    align-items: stretch;
}

.tp-cta-grid__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .tp-cta-grid__items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tp-cta-grid__items { grid-template-columns: 1fr; }
}

.tp-cta-grid__item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #1a2e4a;
    padding: 24px 20px;
    border-radius: 4px;
}

.tp-cta-grid__item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2e4a;
    margin: 0 0 10px;
}

.tp-cta-grid__item-text {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 14px;
}

.tp-cta-grid__item-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c0392b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.tp-cta-grid__item-link:hover {
    border-color: #c0392b;
}

/* ── 6. PREFOOTER CTA ────────────────────────────────────────────────────── */

.tp-section--prefooter {
    background-color: #1a2e4a;
    padding: 64px 0;
}

.tp-prefooter__headline {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #ffffff;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 16px;
}

.tp-prefooter__subtext {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 28px;
    max-width: 560px;
}

.tp-section--prefooter .btn--prefooter {
    background-color: #c0392b;
}

.tp-section--prefooter .btn--prefooter:hover {
    background-color: #a93226;
}
