.cp-pope-widget {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 100%;
}

.cp-pope-widget img {
    width: 100%;
    height: auto;
    display: block;
}

.cp-pope-content {
    padding: 20px;
}

.cp-pope-title {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.cp-pope-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.cp-pope-excerpt {
    margin-bottom: 18px;
    line-height: 1.7;
}

.cp-pope-button {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.cp-pope-button:hover {
    opacity: .9;
}

.cp-pope-badges {
    margin-bottom: 14px;
}

.cp-pope-badge {
    display: inline-block;
    background: #f2f2f2;
    color: #111;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-weight: 600;
}

.cp-pope-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cp-pope-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.cp-pope-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 280px));

    gap: 30px;

    justify-content: start;
}

.cp-pope-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.cp-pope-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cp-pope-card-content {
    padding: 20px;
}

.cp-pope-card-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.cp-pope-card-title a {
    text-decoration: none;
    color: #111;
}

.cp-pope-card-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 14px;
}

.cp-pope-card-excerpt {
    line-height: 1.7;
}

.cp-pope-search {
    margin-bottom: 40px;
    display: flex;
    gap: 10px;
}

.cp-pope-search input[type="search"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.cp-pope-search button {
    padding: 12px 18px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.site-content {
    width: 100%;
}

.cp-pope-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cp-pope-card-content {
    flex-grow: 1;
}

.cp-single-wrapper {
    width: 100%;
    padding: 40px 20px;
}

.cp-single-container {
    max-width: 900px;
    margin: 0 auto;
}

.cp-single-pope {
    background: #fff;
}

.cp-single-header {
    margin-bottom: 30px;
}

.cp-single-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.cp-single-meta {
    font-size: 15px;
    color: #777;
    margin-bottom: 16px;
}

.cp-single-image {
    margin-bottom: 30px;
}

.cp-single-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.cp-single-content {
    font-size: 18px;
    line-height: 1.9;
}

.cp-single-content h2,
.cp-single-content h3,
.cp-single-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.cp-single-content p {
    margin-bottom: 24px;
}

.cp-pope-widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cp-pope-widget-link:hover {
    text-decoration: none;
    color: inherit;
}

.cp-pope-widget {
    transition: transform .2s ease,
                box-shadow .2s ease;
}

.cp-pope-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.cp-pope-navigation {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.cp-pope-nav-card {
    flex: 1;
    min-width: 260px;
    background: #f8f8f8;
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: #111;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}

.cp-pope-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.cp-pope-nav-next {
    text-align: right;
    align-items: flex-end;
}

.cp-nav-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cp-nav-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.cp-related-popes {
    margin-top: 80px;
}

.cp-related-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.cp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.cp-related-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: all .2s ease;
}

.cp-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.cp-related-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cp-related-content {
    padding: 20px;
}

.cp-related-content h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.4;
}

.cp-related-content h3 a {
    text-decoration: none;
    color: #111;
}

.cp-related-excerpt {
    line-height: 1.7;
}

.cp-timeline-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.cp-timeline-header {
    text-align: center;
    margin-bottom: 70px;
}

.cp-timeline-header h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.cp-timeline-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

.cp-timeline-list {
    position: relative;
}

.cp-timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

.cp-timeline-item {
    position: relative;
    width: 50%;
    padding: 0 35px;
    margin-bottom: 45px;
}

.cp-timeline-item:nth-child(odd) {
    left: 0;
}

.cp-timeline-item:nth-child(even) {
    left: 50%;
}

.cp-timeline-dot {
    position: absolute;
    top: 28px;
    width: 14px;
    height: 14px;
    background: #111;
    border-radius: 50%;
    z-index: 10;
}

.cp-timeline-item:nth-child(odd) .cp-timeline-dot {
    right: -42px;
}

.cp-timeline-item:nth-child(even) .cp-timeline-dot {
    left: -42px;
}

.cp-timeline-card {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    transition: all .2s ease;
    min-height: 120px;
}

.cp-timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.cp-timeline-image {
    flex-shrink: 0;
}

.cp-timeline-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.cp-timeline-content {
    padding: 18px 18px 18px 0;
}

.cp-timeline-number {
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 8px;
}

.cp-timeline-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cp-timeline-years {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    font-weight: 600;
}

.cp-timeline-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 991px) {

    .cp-timeline-list::before {
        left: 20px;
    }

    .cp-timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 55px;
        padding-right: 0;
    }

    .cp-timeline-dot {
        left: 13px !important;
        right: auto !important;
    }

    .cp-timeline-card {
        align-items: flex-start;
    }

    .cp-timeline-image img {
        width: 90px;
        height: 90px;
    }

    .cp-timeline-header h1 {
        font-size: 38px;
    }

    .cp-timeline-title {
        font-size: 20px;
    }

}

.cp-pagination {
    margin-top: 60px;
    text-align: center;
}

.cp-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    transition: all .2s ease;
}

.cp-pagination .page-numbers:hover,
.cp-pagination .page-numbers.current {
    background: #111;
    color: #fff;
}

.cp-pope-card {
    text-decoration: none !important;
    color: inherit !important;
}

.cp-pope-card * {
    text-decoration: none !important;
}

.cp-pope-card-title {
    color: #111;
}

.cp-pope-card-meta {
    color: #666;
}

.cp-pope-card-excerpt {
    color: #555;
}

.cp-pope-card:hover .cp-pope-card-title {
    opacity: .75;
}

.cp-load-more-wrap {
    text-align: center;
    margin-top: 50px;
}

.cp-load-more-button {
    background: #111;
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all .2s ease;
}

.cp-load-more-button:hover {
    opacity: .85;
}

.cp-archive-filters {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.cp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: #f5f5f5;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: all .2s ease;
}

.cp-filter-pill:hover {
    transform: translateY(-2px);
    background: #111;
    color: #fff;
}

.cp-filter-pill.active {
    background: #111;
    color: #fff;
}

.cp-filter-icon {
    font-size: 18px;
}

/*
|--------------------------------------------------------------------------
| PAPAL STATISTICS
|--------------------------------------------------------------------------
*/

.cp-stats-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 90px 24px;
}

.cp-stats-header {
    text-align: center;
    margin-bottom: 70px;
}

.cp-stats-header h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #111827;
    font-weight: 800;
}

.cp-stats-header p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: #6b7280;
}

.cp-stats-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 28px;
}

.cp-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 36px 30px;
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
    box-shadow:
        0 8px 30px rgba(0,0,0,0.06);
}

.cp-stat-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.12);
}

/*
|--------------------------------------------------------------------------
| CARD COLORS
|--------------------------------------------------------------------------
*/

.cp-stat-card:nth-child(1) {
    background:
        linear-gradient(
            135deg,
            #fef3c7,
            #fde68a
        );
}

.cp-stat-card:nth-child(2) {
    background:
        linear-gradient(
            135deg,
            #ede9fe,
            #ddd6fe
        );
}

.cp-stat-card:nth-child(3) {
    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #bfdbfe
        );
}

.cp-stat-card:nth-child(4) {
    background:
        linear-gradient(
            135deg,
            #fee2e2,
            #fecaca
        );
}

.cp-stat-card:nth-child(5) {
    background:
        linear-gradient(
            135deg,
            #dcfce7,
            #bbf7d0
        );
}

.cp-stat-card:nth-child(6) {
    background:
        linear-gradient(
            135deg,
            #fae8ff,
            #f5d0fe
        );
}

.cp-stat-card:nth-child(7) {
    background:
        linear-gradient(
            135deg,
            #fef9c3,
            #fde047
        );
}

.cp-stat-card:nth-child(8) {
    background:
        linear-gradient(
            135deg,
            #e0f2fe,
            #bae6fd
        );
}

/*
|--------------------------------------------------------------------------
| ICON
|--------------------------------------------------------------------------
*/

.cp-stat-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

/*
|--------------------------------------------------------------------------
| TITLE
|--------------------------------------------------------------------------
*/

.cp-stat-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(17,24,39,0.7);
    margin-bottom: 18px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| NUMBER
|--------------------------------------------------------------------------
*/

.cp-stat-number {
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
}

/*
|--------------------------------------------------------------------------
| TEXT
|--------------------------------------------------------------------------
*/

.cp-stat-text {
    font-size: 30px;
    line-height: 1.35;
    font-weight: 800;
    color: #111827;
}

/*
|--------------------------------------------------------------------------
| DURATION
|--------------------------------------------------------------------------
*/

.cp-stat-duration {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(17,24,39,0.75);
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .cp-stats-wrapper {
        padding: 60px 18px;
    }

    .cp-stats-header h1 {
        font-size: 40px;
    }

    .cp-stat-number {
        font-size: 48px;
    }

    .cp-stat-text {
        font-size: 24px;
    }

}

