/* ==========================================================================
   Grok News – Clean Card Grid Style
   v2.3 – 2026
========================================================================== */

.grok-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 2rem 0;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1),
                0 2px 4px -1px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -2px rgba(0,0,0,0.05);
}

.news-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.news-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-card-title a {
    color: #111827;
    text-decoration: none;
}

.news-card-title a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.news-card-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.875rem;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Single post */
.news-featured-image {
    margin-bottom: 2rem;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.entry-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.75;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Single news – Featured image floated right with text wrap
   ========================================================================== */

/* Main container – make sure it contains floats properly */
.single .entry-content,
.single-news .entry-content,
.single .hentry,
.single-news article {
    overflow: hidden;          /* clearfix – contains floated elements */
}

/* Float the featured image to the right */
.single .news-featured-image,
.single-news .news-featured-image {
    float: right !important;
    width: 40% !important;               /* adjust: 35–50% depending on preference */
    max-width: 480px !important;         /* prevent too large on wide screens */
    margin: 0 0 1.5rem 2rem !important;  /* bottom + left space for text wrap */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Image inside must fill container */
.single .news-featured-image img,
.single-news-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: inherit;
}

/* Optional: nicer caption / alt text styling if you have captions */
.single .news-featured-image figcaption,
.wp-caption-text {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

/* Mobile – disable float, stack vertically */
@media (max-width: 860px) {
    .single .news-featured-image,
    .single-news .news-featured-image {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 2rem 0 !important;
    }
}
/* Responsive */
@media (max-width: 640px) {
    .grok-news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card-image {
        aspect-ratio: 4 / 3;
    }
}
.news-category-filter {
    margin: 1.5rem 0 2.5rem;
    text-align: center;
}

.news-category-filter label {
    font-weight: 600;
    margin-right: 0.8rem;
    color: #374151;
}

.news-category-filter select {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    min-width: 220px;
    cursor: pointer;
}

.news-category-filter select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
/*pagination*/
/* Updated pagination – no borders, #02977e color, #ccc on hover */
/* Updated pagination – no grey hover on container, active page grey text */
.grok-news-pagination {
    margin: 3rem 0 2rem;
    text-align: center;
    background: none !important;          /* no background on the whole block */
}

.grok-news-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.grok-news-pagination .page-numbers {
    display: inline-block;
    padding: 0.6rem 1rem;
    min-width: 2.2rem;
    text-align: center;
    color: #02977e;                       /* normal links in your green */
    background: none;                     /* no background */
    border: none;                         /* no border */
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease;
}

/* Active / current page – grey text, no background/tint */
.grok-news-pagination .page-numbers.current {
    color: #666;                          /* grey for active page */
    font-weight: bold;
    background: none !important;          /* remove any light green or tint */
    pointer-events: none;                 /* optional: disable click on current */
}

/* Hover – only subtle color change, no grey background */
.grok-news-pagination .page-numbers:hover:not(.current) {
    color: #017c68;                       /* darker green shade on hover */
    background: none !important;          /* no #ccc or any background */
}