/* ==========================================================================
   FOUNDERS / OUR HISTORY PAGE (V2 Redesign)
   ========================================================================== */

.page-founders {
    background-color: #fff;
}

/* --- PAGE TITLE --- */
.founders-title {
    font-family: 'Keep Calm', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    color: #333;
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: center;
}

/* --- CONTENT SECTION --- */
.founders-content {
    padding: 40px 0 60px;
}

/* -----------------------------------------------------------------------
   Content inner: neutralise old Bootstrap / inline styles from the editor
   ----------------------------------------------------------------------- */
.founders-content__inner {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

/* Reset Bootstrap grid inside content */
.founders-content__inner .container,
.founders-content__inner .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.founders-content__inner .row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0 0 32px !important;
}

.founders-content__inner [class*="col-"] {
    padding: 0 !important;
    float: none !important;
    flex: 1 1 260px;
    min-width: 0;
}

/* Make tables & old wrappers responsive */
.founders-content__inner .content-wrapper,
.founders-content__inner #page-info,
.founders-content__inner article {
    display: block;
    width: 100%;
}

/* --- Typography --- */
.founders-content__inner p {
    margin-bottom: 1.25em;
}

.founders-content__inner h2,
.founders-content__inner h3,
.founders-content__inner h4 {
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

/* --- Images --- */
.founders-content__inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Post thumbnail (featured image) */
.founders-content__inner .wp-post-image {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    max-height: 480px;
}

/* WP block columns */
.founders-content__inner .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.founders-content__inner .wp-block-column {
    flex: 1 1 260px;
    min-width: 0;
}

/* Stats / highlight numbers often displayed in a grid */
.founders-content__inner .stat-row,
.founders-content__inner .stats-row,
.founders-content__inner .numbers-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--pa-primary-light);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 40px;
}

/* Timeline items from old markup */
.founders-content__inner .timeline-item,
.founders-content__inner .history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.founders-content__inner .timeline-item:last-child,
.founders-content__inner .history-item:last-child {
    border-bottom: none;
}

/* Inline width styles on images — override to be responsive */
.founders-content__inner img[style*="width"] {
    max-width: 100% !important;
    height: auto !important;
}

/* Tables */
.founders-content__inner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 15px;
}

.founders-content__inner td,
.founders-content__inner th {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

/* Shortcode / widget containers – hide them so only v2 sections show */
.founders-content__inner .homepage-our-works-section,
.founders-content__inner .latest-blog-slider {
    display: none;
}

/* -----------------------------------------------------------------------
   Sponsor slider spacing (for template-founders.php)
   ----------------------------------------------------------------------- */
.founders-sponsors {
    padding: 40px 0;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1230px) {
    .founders-content {
        padding: 24px 0 40px;
    }

    .founders-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .founders-content__inner .row,
    .founders-content__inner .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }

    .founders-content__inner [class*="col-"],
    .founders-content__inner .wp-block-column {
        flex: 1 1 100%;
    }
}