@font-face {
    font-family: 'DaytonaPro-Regular';
    src: url('/fonts/DaytonaPro-Bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DaytonaPro-Regular';
    src: url('/fonts/DaytonaPro-Bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* ================================================================
   Custom Category Post List Plugin - Style v1.6
   Image: 25% width, 200px height
   Content: 75% width, AUTO height (grows with title)
   Title: NO OVERFLOW - Full heading visible
   Desktop (>1024px): Trim excerpt to 200 words
   Mobile (<1024px): Trim excerpt with responsive adjustments
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* Wrapper Container */
.ccpl-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

/* Card Layout - Main Container */
.ccpl-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ccpl-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ccpl-card-inner {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
    border: 2px solid #0000004D;
    border-radius: 11px;
    align-items: flex-start;
}

/* Thumbnail Section - Image Container - 25% WIDTH */
.ccpl-thumb {
    flex: 0 0 25%;
    width: 25%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccpl-thumb img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.ccpl-card:hover .ccpl-thumb img {
    transform: scale(1.05);
}

/* Content Section - 75% WIDTH - AUTO HEIGHT */
.ccpl-content {
    flex: 0 0 75%;
    width: 75%;
    height: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff00;
}

/* Post Title - NO OVERFLOW HIDDEN - Full heading visible */
.ccpl-title {
    margin: 0 0 0.75rem 0;
    font-family: "Verdana", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #2C2C2C;
    word-wrap: break-word;
    /* NO max-height, NO overflow, NO line clamp */
    overflow: visible;
    display: block;
    max-height: none;
}

/* Post Excerpt - TRIM ON DESKTOP (>1024px) to 200 words */
.ccpl-excerpt {
    margin: 0 0 0.75rem 0;
    font-size: 14px;
    font-weight: 400;
    font-family: "Verdana", Sans-serif;
    line-height: 1.5;
    color: #2C2C2C;
    flex: 1;
    word-wrap: break-word;
    /* Default: Desktop - Trim to 200 words with 3 lines max */
    overflow: hidden;
    max-height: 4.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Post Date */
.ccpl-date {
    font-size: 20px;
    color: #EB1F86;
    font-weight: 400;
    font-family: 'DaytonaPro-Regular';
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Alternating Card (Image on right) */
.ccpl-card.ccpl-card-reverse .ccpl-card-inner {
    flex-direction: row-reverse;
}

/* No Posts Message */
.ccpl-no-posts {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1rem;
    color: #666;
    background: #f9f9f9;
    border-radius: 4px;
}

/* ================================================================
   PAGINATION STYLES
   ================================================================ */

.ccpl-pagination {
    margin: 2.5rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
}

.ccpl-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.ccpl-pagination li {
    margin: 0;
    padding: 0;
}

/* Pagination Links & Buttons */
.ccpl-pagination a,
.ccpl-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    min-width: 2.4rem;
    height: 2.4rem;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ccpl-pagination a:hover {
    border-color: #0066cc;
    color: #0066cc;
    background: #f8f8f8;
}

/* Current Page - Active State */
.ccpl-pagination .page-numbers.current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    cursor: default;
    font-weight: 600;
}

.ccpl-pagination .page-numbers.current:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Previous & Next Buttons */
.ccpl-pagination a.prev,
.ccpl-pagination a.next {
    font-weight: 600;
    padding: 0.6rem 1rem;
    min-width: auto;
}

.ccpl-pagination a.prev:hover,
.ccpl-pagination a.next:hover {
    background: #f0f0f0;
    color: #0066cc;
}

/* Dots/Ellipsis */
.ccpl-pagination span.page-numbers.dots {
    border: none;
    color: #999;
    padding: 0.6rem 0.3rem;
    cursor: default;
    background: transparent;
}

/* ================================================================
   RESPONSIVE DESIGN
   Desktop (1920px+) - TRIM 200 words (3 lines)
   ================================================================ */

@media (min-width: 1920px) {
    .ccpl-wrapper {
        gap: 2rem;
    }

    .ccpl-content {
        padding: 1.75rem;
    }

    .ccpl-title {
        font-size: 18px;
        margin-bottom: 0.85rem;
        /* NO overflow */
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 14px;
        margin-bottom: 0.85rem;
        /* TRIM: 200 words, 3 lines max */
        overflow: hidden;
        max-height: 4.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Desktop (1440px - 1919px) - TRIM 200 words (3 lines) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .ccpl-content {
        padding: 1.6rem;
    }

    .ccpl-title {
        font-size: 18px;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 14px;
        overflow: hidden;
        max-height: 4.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Desktop Large (1200px - 1439px) - TRIM 200 words (3 lines) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .ccpl-content {
        padding: 1.5rem;
    }

    .ccpl-title {
        font-size: 18px;
        margin-bottom: 0.75rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 14px;
        margin-bottom: 0.75rem;
        overflow: hidden;
        max-height: 4.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Desktop Medium (1024px - 1199px) - TRIM 200 words (3 lines) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .ccpl-wrapper {
        gap: 2rem;
    }

    .ccpl-content {
        padding: 1.4rem;
    }

    .ccpl-title {
        font-size: 18px;
        margin-bottom: 0.7rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 13px;
        margin-bottom: 0.7rem;
        overflow: hidden;
        max-height: 4.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ccpl-date {
        font-size: 18px;
    }
}

/* ================================================================
   RESPONSIVE DESIGN - TABLET & BELOW
   Smart trim content according to screen size
   ================================================================ */

/* Tablet Large (768px - 1023px) - TRIM 2 lines */
@media (min-width: 768px) and (max-width: 1023px) {
    .ccpl-wrapper {
        gap: 1.75rem;
    }

    .ccpl-content {
        padding: 1.3rem;
    }

    .ccpl-title {
        font-size: 1.15rem;
        margin-bottom: 0.65rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 13px;
        margin-bottom: 0.65rem;
        overflow: hidden;
        max-height: 2.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ccpl-date {
        font-size: 18px;
    }

    .ccpl-pagination a,
    .ccpl-pagination span {
        padding: 0.55rem 0.8rem;
        min-width: 2.2rem;
        height: 2.2rem;
        font-size: 0.85rem;
    }
}

/* Tablet Small (600px - 767px) - TRIM 2 lines */
@media (min-width: 600px) and (max-width: 767px) {
    .ccpl-wrapper {
        gap: 1.5rem;
    }

    .ccpl-card-inner {
        flex-direction: column;
    }

    .ccpl-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }

    .ccpl-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 1.25rem;
    }

    .ccpl-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 13px;
        margin-bottom: 0.6rem;
        overflow: hidden;
        max-height: 2.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ccpl-date {
        font-size: 18px;
    }

    .ccpl-pagination ul {
        gap: 0.4rem;
    }

    .ccpl-pagination a,
    .ccpl-pagination span {
        padding: 0.5rem 0.75rem;
        min-width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
}

/* Mobile (480px - 599px) - TRIM 1 line */
@media (min-width: 480px) and (max-width: 599px) {
    .ccpl-wrapper {
        gap: 1.25rem;
        margin: 1.5rem 0;
    }

    .ccpl-card-inner {
        flex-direction: column;
    }

    .ccpl-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
    }

    .ccpl-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 1.15rem;
    }

    .ccpl-title {
        font-size: 1.05rem;
        margin-bottom: 0.55rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 12px;
        margin-bottom: 0.55rem;
        overflow: hidden;
        max-height: 1.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .ccpl-date {
        font-size: 16px;
    }

    .ccpl-pagination a,
    .ccpl-pagination span {
        padding: 0.45rem 0.7rem;
        min-width: 1.9rem;
        height: 1.9rem;
        font-size: 0.75rem;
    }

    .ccpl-pagination a.prev,
    .ccpl-pagination a.next {
        font-size: 0.7rem;
        padding: 0.45rem 0.75rem;
    }
}

/* Mobile Small (360px - 479px) - TRIM 1 line */
@media (min-width: 360px) and (max-width: 479px) {
    .ccpl-wrapper {
        gap: 1rem;
        margin: 1rem 0;
    }

    .ccpl-card-inner {
        flex-direction: column;
    }

    .ccpl-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 150px;
    }

    .ccpl-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 1rem;
    }

    .ccpl-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 11px;
        margin-bottom: 0.5rem;
        overflow: hidden;
        max-height: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .ccpl-date {
        font-size: 16px;
    }

    .ccpl-pagination a,
    .ccpl-pagination span {
        padding: 0.4rem 0.6rem;
        min-width: 1.8rem;
        height: 1.8rem;
        font-size: 0.7rem;
    }

    .ccpl-pagination a.prev,
    .ccpl-pagination a.next {
        font-size: 0.65rem;
        padding: 0.4rem 0.65rem;
    }
}

/* Mobile Extra Small (<360px) - TRIM 1 line */
@media (max-width: 359px) {
    .ccpl-wrapper {
        gap: 0.8rem;
        margin: 0.8rem 0;
    }

    .ccpl-card-inner {
        flex-direction: column;
    }

    .ccpl-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 140px;
    }

    .ccpl-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 0.9rem;
    }

    .ccpl-title {
        font-size: 0.95rem;
        margin-bottom: 0.45rem;
        overflow: visible;
        max-height: none;
    }

    .ccpl-excerpt {
        font-size: 10px;
        margin-bottom: 0.45rem;
        overflow: hidden;
        max-height: 1.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .ccpl-date {
        font-size: 14px;
    }

    .ccpl-pagination a,
    .ccpl-pagination span {
        padding: 0.35rem 0.55rem;
        min-width: 1.7rem;
        height: 1.7rem;
        font-size: 0.65rem;
    }

    .ccpl-pagination a.prev,
    .ccpl-pagination a.next {
        font-size: 0.6rem;
        padding: 0.35rem 0.6rem;
    }
}

/* ================================================================
   ACCESSIBILITY & UTILITY
   ================================================================ */

/* Focus states for keyboard navigation */
.ccpl-card:focus-within {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.ccpl-pagination a:focus,
.ccpl-pagination a:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ccpl-thumb img,
    .ccpl-card {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ccpl-card {
        background: #2a2a2a;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .ccpl-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .ccpl-content {
        background: #2a2a2a;
    }

    .ccpl-title {
        color: #f0f0f0;
    }

    .ccpl-excerpt {
        color: #ccc;
    }

    .ccpl-thumb {
        background: #1a1a1a;
    }

    .ccpl-pagination a,
    .ccpl-pagination span {
        background: #2a2a2a;
        color: #ccc;
        border-color: #444;
    }

    .ccpl-pagination a:hover {
        background: #333;
        border-color: #0066cc;
    }

    .ccpl-pagination .page-numbers.current {
        background: #0066cc;
    }
}

/* Print Styles */
@media print {
    .ccpl-pagination {
        display: none;
    }

    .ccpl-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }

    .ccpl-card:hover {
        transform: none;
    }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ccpl-card {
    animation: fadeIn 0.5s ease-out;
}

.ccpl-card:nth-child(1) {
    animation-delay: 0.05s;
}

.ccpl-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ccpl-card:nth-child(3) {
    animation-delay: 0.15s;
}

.ccpl-card:nth-child(4) {
    animation-delay: 0.2s;
}

.ccpl-card:nth-child(5) {
    animation-delay: 0.25s;
}

.ccpl-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* ================================================================
   TEXT RENDERING & OPTIMIZATION
   ================================================================ */

.ccpl-title,
.ccpl-excerpt,
.ccpl-date {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   END OF STYLES
   ================================================================ */