/* =============================================================================
   PandaX Post Ultimate — Stylesheet v1.0.0
   ============================================================================= */

/* =============================================================================
   Widget Header — Título e Subtítulo
   ============================================================================= */

.pandax-widget-header {
    margin-bottom: 24px;
}

.pandax-widget-title {
    margin: 0 0 6px;
    line-height: 1.3;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.pandax-widget-subtitle {
    margin: 0 0 6px;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.pandax-header-divider {
    display: block;
    width: 50px;
    height: 3px;
    background: #0073aa;
    border-radius: 2px;
    margin: 8px 0;
}

/* Alinhamento via selector do Elementor */
.pandax-widget-header[style*='text-align: center'] .pandax-header-divider,
.pandax-widget-header.text-center .pandax-header-divider {
    margin-left: auto;
    margin-right: auto;
}

.pandax-widget-header[style*='text-align: right'] .pandax-header-divider {
    margin-left: auto;
    margin-right: 0;
}

/* Debug info (apenas editor) */
.pandax-debug-info {
    display: block;
}

/* ─── Reset / Base ─── */
.pandax-post-ultimate *,
.pandax-post-ultimate *::before,
.pandax-post-ultimate *::after {
    box-sizing: border-box;
}

.pandax-post-ultimate a {
    text-decoration: none;
    transition: color .25s;
}

.pandax-no-posts {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

/* ─── Grid ─── */
.pandax-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ─── Post Item Base ─── */
.pandax-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.pandax-post-item:hover {
    transform: translateY(-4px);
}

/* ─── Thumbnail / Image ─── */
.pandax-post-thumb {
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.pandax-post-thumb a {
    display: block;
}

.pandax-post-thumb img,
.pandax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .4s ease;
}

/* Ratios */
.pandax-ratio-16-9 { padding-top: 56.25%; position: relative; }
.pandax-ratio-4-3  { padding-top: 75%;    position: relative; }
.pandax-ratio-1-1  { padding-top: 100%;   position: relative; }
.pandax-ratio-3-2  { padding-top: 66.66%; position: relative; }
.pandax-ratio-3-4  { padding-top: 133%;   position: relative; }

.pandax-ratio-16-9 a,
.pandax-ratio-4-3 a,
.pandax-ratio-1-1 a,
.pandax-ratio-3-2 a,
.pandax-ratio-3-4 a {
    position: absolute;
    inset: 0;
}

.pandax-ratio-16-9 a img,
.pandax-ratio-4-3 a img,
.pandax-ratio-1-1 a img,
.pandax-ratio-3-2 a img,
.pandax-ratio-3-4 a img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No thumb placeholder */
.pandax-no-thumb {
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    color: #bbb;
    font-size: 48px;
}

/* Hover effects */
.pandax-hover-zoom .pandax-img:hover,
.pandax-post-item:hover .pandax-hover-zoom .pandax-img {
    transform: scale(1.08);
}
.pandax-post-item:hover .pandax-hover-zoom img {
    transform: scale(1.08);
}
.pandax-post-item:hover .pandax-hover-bright img { filter: brightness(1.15); }
.pandax-post-item:hover .pandax-hover-dark img   { filter: brightness(0.75); }
.pandax-post-item:hover .pandax-hover-blur img   { filter: blur(2px); }
.pandax-post-item:hover .pandax-hover-slide-up img { transform: translateY(-6px); }

/* ─── Content Area ─── */
.pandax-post-content {
    padding: 20px;
}

/* ─── Meta ─── */
.pandax-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.pandax-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pandax-meta-item i {
    font-size: 11px;
    opacity: .7;
}

.pandax-cat-badge {
    background: #0073aa;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* ─── Title ─── */
.pandax-post-title {
    margin: 0 0 10px;
    line-height: 1.4;
}

.pandax-post-title a {
    color: #1a1a1a;
    font-weight: 700;
}

.pandax-post-title a:hover { color: #0073aa; }

/* ─── Excerpt ─── */
.pandax-post-excerpt {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* ─── Button ─── */
.pandax-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0073aa;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background .25s, color .25s, transform .2s;
    border: 2px solid transparent;
}

.pandax-btn:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================================================
   LAYOUT: Card Classic (default — handled by base styles above)
   ============================================================================= */

/* =============================================================================
   LAYOUT: Card Modern
   ============================================================================= */
.pandax-layout-card-modern .pandax-post-item {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.pandax-layout-card-modern .pandax-post-content {
    padding: 24px;
}

.pandax-layout-card-modern .pandax-post-title {
    font-size: 18px;
}

/* =============================================================================
   LAYOUT: Card Minimal
   ============================================================================= */
.pandax-layout-card-minimal .pandax-post-item {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.pandax-layout-card-minimal .pandax-post-item:hover {
    transform: none;
    background: transparent;
}

.pandax-layout-card-minimal .pandax-post-content {
    padding: 14px 0;
}

.pandax-layout-card-minimal .pandax-post-meta {
    font-size: 11px;
}

/* =============================================================================
   LAYOUT: Card Overlay
   ============================================================================= */
.pandax-layout-card-overlay .pandax-post-item {
    position: relative;
    overflow: hidden;
}

.pandax-post-thumb.pandax-full-thumb {
    padding-top: 70%;
    position: relative;
}

.pandax-post-thumb.pandax-full-thumb a {
    position: absolute;
    inset: 0;
}

.pandax-post-thumb.pandax-full-thumb a img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pandax-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.pandax-layout-card-overlay .pandax-post-title a,
.pandax-layout-card-overlay .pandax-post-meta,
.pandax-layout-card-overlay .pandax-post-meta a {
    color: #fff;
}

.pandax-layout-card-overlay .pandax-cat-badge {
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(4px);
}

/* =============================================================================
   LAYOUT: List Horizontal
   ============================================================================= */
.pandax-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pandax-layout-list-horizontal .pandax-post-item {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.pandax-post-thumb.pandax-thumb-left {
    width: 35%;
    flex-shrink: 0;
    padding-top: 0;
    min-height: 180px;
    position: relative;
}

.pandax-post-thumb.pandax-thumb-left a {
    position: absolute;
    inset: 0;
}

.pandax-post-thumb.pandax-thumb-left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pandax-content-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =============================================================================
   LAYOUT: Magazine
   ============================================================================= */
.pandax-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.pandax-magazine-featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.pandax-magazine-featured .pandax-post-thumb.pandax-full-thumb {
    padding-top: 100%;
}

.pandax-magazine-content {
    padding: 20px;
}

/* =============================================================================
   LAYOUT: Masonry
   ============================================================================= */
.pandax-masonry-grid {
    columns: 3;
    column-gap: 24px;
}

.pandax-layout-masonry .pandax-post-item {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

.pandax-post-thumb.pandax-masonry-thumb {
    padding-top: 0;
}

.pandax-post-thumb.pandax-masonry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================================================
   LAYOUT: Timeline
   ============================================================================= */
.pandax-timeline-wrap {
    position: relative;
    padding: 20px 0;
}

.pandax-timeline-wrap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.pandax-layout-timeline .pandax-post-item {
    width: 45%;
    margin-bottom: 40px;
    position: relative;
}

.pandax-timeline-left {
    margin-left: 0;
    margin-right: auto;
}

.pandax-timeline-right {
    margin-left: auto;
    margin-right: 0;
}

.pandax-timeline-dot {
    width: 14px;
    height: 14px;
    background: #0073aa;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0073aa;
    position: absolute;
    top: 20px;
}

.pandax-timeline-left .pandax-timeline-dot  { right: -35px; }
.pandax-timeline-right .pandax-timeline-dot { left: -35px; }

.pandax-timeline-card {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border-radius: 8px;
    overflow: hidden;
}

/* =============================================================================
   LAYOUT: News Feed
   ============================================================================= */
.pandax-news-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pandax-layout-news-feed .pandax-post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pandax-layout-news-feed .pandax-post-item:hover { transform: none; }

.pandax-post-thumb.pandax-news-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    padding-top: 0;
}

.pandax-post-thumb.pandax-news-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.pandax-post-thumb.pandax-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pandax-news-content {
    flex: 1;
}

.pandax-news-content .pandax-post-title {
    font-size: 14px;
    margin-bottom: 4px;
}

/* =============================================================================
   LAYOUT: Portfolio
   ============================================================================= */
.pandax-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pandax-layout-portfolio .pandax-post-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.pandax-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 115, 170, .9);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity .35s ease;
}

.pandax-layout-portfolio .pandax-post-item:hover .pandax-portfolio-overlay {
    opacity: 1;
}

.pandax-portfolio-overlay .pandax-post-title a,
.pandax-portfolio-overlay .pandax-post-meta,
.pandax-portfolio-overlay .pandax-post-meta a {
    color: #fff;
}

/* =============================================================================
   LAYOUT: Blog Standard
   ============================================================================= */
.pandax-blog-wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pandax-layout-blog-standard .pandax-post-item {
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding-bottom: 40px;
    background: transparent;
}

.pandax-layout-blog-standard .pandax-post-item:hover { transform: none; }

.pandax-blog-content .pandax-post-title {
    font-size: 22px;
}

.pandax-blog-content .pandax-post-excerpt {
    font-size: 15px;
    line-height: 1.7;
}

/* =============================================================================
   LAYOUT: Compact List
   ============================================================================= */
.pandax-compact-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: pandax-counter;
}

.pandax-layout-compact-list .pandax-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.pandax-layout-compact-list .pandax-post-item:hover { transform: none; }

.pandax-compact-index {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pandax-layout-compact-list .pandax-post-content { flex: 1; }

.pandax-layout-compact-list .pandax-post-title {
    font-size: 14px;
    margin-bottom: 2px;
}

/* =============================================================================
   LAYOUT: Featured + Grid
   ============================================================================= */
.pandax-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
}

.pandax-featured-item {
    grid-row: 1 / 3;
}

.pandax-featured-item .pandax-post-thumb.pandax-full-thumb {
    padding-top: 70%;
}

.pandax-grid-sub-item .pandax-post-content {
    padding: 14px;
}

.pandax-grid-sub-item .pandax-post-title {
    font-size: 14px;
}

/* =============================================================================
   LAYOUT: Metro
   ============================================================================= */
.pandax-metro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
}

.pandax-metro-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.pandax-metro-0 { grid-column: span 2; grid-row: span 2; }
.pandax-metro-1 { grid-column: span 1; grid-row: span 1; }
.pandax-metro-2 { grid-column: span 1; grid-row: span 1; }
.pandax-metro-3 { grid-column: span 2; grid-row: span 1; }
.pandax-metro-4 { grid-column: span 1; grid-row: span 1; }

.pandax-metro-item .pandax-post-thumb.pandax-full-thumb {
    position: absolute;
    inset: 0;
    padding-top: 0;
    width: 100%;
    height: 100%;
}

.pandax-metro-item .pandax-post-thumb.pandax-full-thumb a {
    width: 100%;
    height: 100%;
}

.pandax-metro-item .pandax-post-thumb.pandax-full-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pandax-metro-content {
    padding: 16px;
}

/* =============================================================================
   CAROUSEL — ESTILOS EXPANDIDOS
   ============================================================================= */

.pandax-pg-carousel-wrap {
    position: relative;
    padding: 0 10px;
}

.pandax-swiper {
    overflow: hidden;
    width: 100%;
}

.swiper-slide .pandax-post-item {
    height: 100%;
}

/* ─── Base das Setas ─── */
.pandax-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    border: none;
    outline: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.pandax-swiper-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.pandax-swiper-prev { left: -22px; }
.pandax-swiper-next { right: -22px; }

/* ─── 1. CIRCLE SOLID (Círculo Sólido) ─── */
.arrow-circle_solid .pandax-swiper-btn {
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 115, 170, 0.3);
    border: none;
}

.arrow-circle_solid .pandax-swiper-btn:hover {
    background: #005a87;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.5);
}

/* ─── 2. CIRCLE OUTLINE (Círculo com Borda) ─── */
.arrow-circle_outline .pandax-swiper-btn {
    background: transparent;
    color: #0073aa;
    border-radius: 50%;
    border: 2px solid #0073aa;
    box-shadow: none;
}

.arrow-circle_outline .pandax-swiper-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
}

/* ─── 3. SQUARE SOLID (Quadrado Sólido) ─── */
.arrow-square_solid .pandax-swiper-btn {
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
    border: none;
}

.arrow-square_solid .pandax-swiper-btn:hover {
    background: #005a87;
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

/* ─── 4. SQUARE OUTLINE (Quadrado com Borda) ─── */
.arrow-square_outline .pandax-swiper-btn {
    background: transparent;
    color: #0073aa;
    border-radius: 4px;
    border: 2px solid #0073aa;
    box-shadow: none;
}

.arrow-square_outline .pandax-swiper-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
}

/* ─── 5. SQUARE ROUNDED (Quadrado Arredondado) ─── */
.arrow-square_rounded .pandax-swiper-btn {
    background: #0073aa;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
    border: none;
}

.arrow-square_rounded .pandax-swiper-btn:hover {
    background: #005a87;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

/* ─── 6. MINIMAL (Só ícone) ─── */
.arrow-minimal .pandax-swiper-btn {
    background: transparent;
    color: #333;
    border: none;
    box-shadow: none;
    font-size: 24px;
    width: auto;
    height: auto;
}

.arrow-minimal .pandax-swiper-btn:hover {
    color: #0073aa;
    transform: translateY(-50%) scale(1.15);
}

/* ─── 7. BOLD (Negrito/Pesado) ─── */
.arrow-bold .pandax-swiper-btn {
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 3px 12px rgba(0, 115, 170, 0.35);
    border: none;
}

.arrow-bold .pandax-swiper-btn:hover {
    background: #005a87;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.5);
    transform: translateY(-50%) scale(1.12);
}

/* ─── 8. OUTLINE (Contorno) ─── */
.arrow-outline .pandax-swiper-btn {
    background: transparent;
    color: #0073aa;
    border-radius: 50%;
    border: 2px solid #0073aa;
    box-shadow: none;
}

.arrow-outline .pandax-swiper-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
    transform: translateY(-50%) scale(1.1);
}

/* ─── 9. GRADIENT (Gradiente) ─── */
.arrow-gradient .pandax-swiper-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.4);
    border: none;
}

.arrow-gradient .pandax-swiper-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.5);
}

/* ─── 10. GLASS (Efeito Vidro/Glassmorphism) ─── */
.arrow-glass .pandax-swiper-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #0073aa;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.arrow-glass .pandax-swiper-btn:hover {
    background: rgba(0, 115, 170, 0.2);
    border-color: rgba(0, 115, 170, 0.5);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

/* ─── Posições das Setas ─── */

/* Middle Outside (Padrão) */
.arrow-pos-middle_outside .pandax-swiper-prev { left: -22px; }
.arrow-pos-middle_outside .pandax-swiper-next { right: -22px; }

/* Middle Inside */
.arrow-pos-middle_inside .pandax-swiper-prev { left: 10px; }
.arrow-pos-middle_inside .pandax-swiper-next { right: 10px; }

/* Bottom Center */
.arrow-pos-bottom_center {
    padding-bottom: 60px;
}

.arrow-pos-bottom_center .pandax-swiper-prev,
.arrow-pos-bottom_center .pandax-swiper-next {
    top: auto;
    bottom: 10px;
    transform: none;
}

.arrow-pos-bottom_center .pandax-swiper-prev {
    left: 50%;
    margin-left: -50px;
}

.arrow-pos-bottom_center .pandax-swiper-next {
    right: auto;
    left: 50%;
    margin-left: 10px;
}

.arrow-pos-bottom_center .pandax-swiper-prev:hover,
.arrow-pos-bottom_center .pandax-swiper-next:hover {
    transform: scale(1.1);
}

/* Top Right */
.arrow-pos-top_right {
    padding-top: 50px;
}

.arrow-pos-top_

