/* Layout Wrappers */
.ptch-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 20px;
}
.ptch-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ptch-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ptch-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 850px) {
    .ptch-cols-2, .ptch-cols-3, .ptch-cols-4 { grid-template-columns: 1fr; }
}

/* Card Styling (Matches Exact Design) */
.ptch-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ptch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.ptch-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f3f4f6;
}
.ptch-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ptch-card:hover .ptch-card-image img {
    transform: scale(1.04);
}

/* Badges */
.ptch-pill-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}
.ptch-views-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Card Body & Typography */
.ptch-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ptch-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ptch-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ptch-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.ptch-author-name {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
}
.ptch-date {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.ptch-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 12px 0;
}
.ptch-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 16px 0;
    flex-grow: 1;
}
.ptch-read-trigger {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
}

/* List Layout Styling */
.ptch-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ptch-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ptch-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.ptch-list-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.ptch-list-body { flex-grow: 1; }
.ptch-list-title { margin: 8px 0 4px; font-size: 16px; font-weight: 700; color: #111827; }
.ptch-list-excerpt { font-size: 13px; color: #6b7280; margin: 0; }
.ptch-cta-btn {
    background: #000000;
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
}

/* AJAX Quick Read Modal Overlay */
.ptch-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ptch-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.ptch-modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ptch-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.ptch-modal-cat {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 12px;
}
.ptch-modal-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #0f172a;
}
.ptch-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.ptch-modal-banner img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}
.ptch-modal-body-text {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 32px;
}

.ptch-modal-cta-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}
.ptch-modal-cta-btn {
    display: inline-block;
    background: #000000;
    color: #ffffff !important;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    margin-top: 12px;
}

/* Swiper Carousel Tweaks */
.ptch-carousel-wrapper {
    position: relative;
    padding: 10px 0 50px 0;
}
.ptch-swiper {
    padding-bottom: 10px;
}
.ptch-swiper .swiper-slide {
    height: auto;
}
.ptch-swiper .swiper-button-next,
.ptch-swiper .swiper-button-prev {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
.ptch-swiper .swiper-button-next:after,
.ptch-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 800;
}
.ptch-swiper .swiper-button-next:hover,
.ptch-swiper .swiper-button-prev:hover {
    background: #2563eb;
    color: #ffffff;
}
.ptch-swiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.2s ease;
}
.ptch-swiper .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 24px;
    border-radius: 4px;
}