/* Estilos Específicos para Widgets Elementor */

/* ============================================
   CSS VARIABLES - Customização Global
   ============================================ */
:root {
    /* Cores Principais */
    --ds-primary: #2563eb;
    --ds-primary-hover: #1d4ed8;
    --ds-secondary: #64748b;
    --ds-accent: #f59e0b;
    
    /* Cores de Texto */
    --ds-text-primary: #111827;
    --ds-text-secondary: #4b5563;
    --ds-text-muted: #9ca3af;
    
    /* Cores de Fundo */
    --ds-bg-primary: #ffffff;
    --ds-bg-secondary: #f9fafb;
    --ds-bg-dark: #1f2937;
    
    /* Cores de Status */
    --ds-success: #10b981;
    --ds-warning: #f59e0b;
    --ds-danger: #ef4444;
    --ds-info: #3b82f6;
    
    /* Bordas */
    --ds-border-color: #e5e7eb;
    --ds-border-radius: 8px;
    --ds-border-radius-lg: 12px;
    --ds-border-radius-sm: 4px;
    
    /* Sombras */
    --ds-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ds-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --ds-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ds-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Espaçamentos */
    --ds-spacing-xs: 0.25rem;
    --ds-spacing-sm: 0.5rem;
    --ds-spacing-md: 1rem;
    --ds-spacing-lg: 1.5rem;
    --ds-spacing-xl: 2rem;
    --ds-spacing-2xl: 3rem;
    
    /* Tipografia */
    --ds-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ds-font-size-xs: 0.75rem;
    --ds-font-size-sm: 0.875rem;
    --ds-font-size-base: 1rem;
    --ds-font-size-lg: 1.125rem;
    --ds-font-size-xl: 1.25rem;
    --ds-font-size-2xl: 1.5rem;
    --ds-font-size-3xl: 1.875rem;
    
    /* Transições */
    --ds-transition-fast: 150ms ease;
    --ds-transition-normal: 300ms ease;
    --ds-transition-slow: 500ms ease;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --ds-text-primary: #f9fafb;
        --ds-text-secondary: #d1d5db;
        --ds-text-muted: #6b7280;
        --ds-bg-primary: #111827;
        --ds-bg-secondary: #1f2937;
        --ds-border-color: #374151;
    }
}

/* Dark Mode Forçado */
.ds-dark-mode {
    --ds-text-primary: #f9fafb;
    --ds-text-secondary: #d1d5db;
    --ds-text-muted: #6b7280;
    --ds-bg-primary: #111827;
    --ds-bg-secondary: #1f2937;
    --ds-border-color: #374151;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Base state - hidden before animation */
.ds-scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from left */
.ds-scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.ds-scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal scale */
.ds-scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Reveal rotate */
.ds-scroll-reveal-rotate {
    opacity: 0;
    transform: rotate(-10deg) translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-scroll-reveal-rotate.revealed {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.ds-parallax-container {
    position: relative;
    overflow: hidden;
}

.ds-parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.ds-parallax-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   SKELETON LOADING STATES
   ============================================ */

.ds-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ds-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes ds-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ds-skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.ds-skeleton-text:last-child {
    width: 70%;
}

.ds-skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.ds-skeleton-image {
    width: 100%;
    aspect-ratio: 16/9;
}

.ds-skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 8px;
}

.ds-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Dark Mode Skeleton */
@media (prefers-color-scheme: dark) {
    .ds-skeleton {
        background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
        background-size: 200% 100%;
    }
}

/* ============================================
   FOCUS VISIBLE - Acessibilidade
   ============================================ */

.ds-focus-visible:focus {
    outline: 2px solid var(--ds-primary);
    outline-offset: 2px;
}

.ds-focus-visible:focus:not(:focus-visible) {
    outline: none;
}

.ds-focus-visible:focus-visible {
    outline: 2px solid var(--ds-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.ds-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ds-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 500;
    transition: top 0.3s ease;
}

.ds-skip-link:focus {
    top: 0;
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    .ds-solucao-card {
        border-width: 2px;
    }
    
    .ds-card-button,
    .ds-destaque-button,
    .ds-hero-button,
    .ds-expanded-button {
        border: 2px solid currentColor;
    }
    
    .ds-meta-badge,
    .ds-badge {
        border: 1px solid currentColor;
    }
}

/* ============================================
   RESPONSIVE FONT SIZES (clamp)
   ============================================ */

.ds-responsive-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.ds-responsive-text {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.ds-responsive-excerpt {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* ============================================
   DEVICE VISIBILITY CONTROLS
   ============================================ */

.ds-hide-desktop {
    display: none !important;
}

.ds-hide-tablet {
    display: block !important;
}

.ds-hide-mobile {
    display: block !important;
}

@media (max-width: 1024px) {
    .ds-hide-desktop {
        display: block !important;
    }
    
    .ds-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ds-hide-tablet {
        display: block !important;
    }
    
    .ds-hide-mobile {
        display: none !important;
    }
}



/* Container Principal dos Widgets */
.ds-solucoes-elementor-lista,
.ds-solucoes-elementor-tipo,
.ds-solucao-elementor-destaque {
    width: 100%;
    margin: 0 auto;
}

/* Grid Limpo e Organizado */
.ds-solucoes-elementor-lista,
.ds-solucoes-elementor-tipo {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Card Limpo e Profissional */
.ds-solucao-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.ds-solucao-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Imagem do Card */
.ds-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.ds-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ds-solucao-card:hover .ds-card-image img {
    transform: scale(1.05);
}

/* Conteúdo do Card */
.ds-solucao-card > * {
    padding: 0 24px;
}

.ds-card-image {
    padding: 0;
}

/* Título */
.ds-card-title {
    margin: 20px 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
}

.ds-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ds-card-title a:hover {
    color: #2563eb;
}

/* Excerpt */
.ds-card-excerpt {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    flex-grow: 1;
}

/* Botão */
.ds-card-button {
    display: inline-block;
    margin: 0 0 24px;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.ds-card-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Widget Destaque - Layout Especial */
.ds-solucao-elementor-destaque .ds-solucao-card {
    max-width: 600px;
    margin: 0 auto;
}

.ds-solucao-elementor-destaque .ds-card-title {
    font-size: 24px;
}

.ds-solucao-elementor-destaque .ds-card-excerpt {
    font-size: 16px;
}

/* Estado Vazio - Melhorado */
.ds-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.ds-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.4;
    color: #9ca3af;
}

.ds-empty-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .ds-solucoes-elementor-lista,
    .ds-solucoes-elementor-tipo {
        gap: 24px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .ds-solucoes-elementor-lista,
    .ds-solucoes-elementor-tipo {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .ds-solucao-card > * {
        padding: 0 20px;
    }
    
    .ds-card-title {
        font-size: 18px;
        margin: 16px 0 10px;
    }
    
    .ds-card-excerpt {
        font-size: 14px;
        margin: 0 0 16px;
    }
    
    .ds-card-button {
        margin: 0 0 20px;
        padding: 10px 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ds-solucao-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-card-title {
        color: #f9fafb;
    }
    
    .ds-card-title a:hover {
        color: #60a5fa;
    }
    
    .ds-card-excerpt {
        color: #d1d5db;
    }
    
    .ds-empty-state {
        background: #1f2937;
        border-color: #374151;
    }
}

/* ============================================
   HOVER ANIMATIONS - Animações de Hover
   ============================================ */

/* Scale Up */
.ds-card-hover-scale-up .ds-solucao-card:hover {
    transform: scale(1.05);
}

/* Scale Down */
.ds-card-hover-scale-down .ds-solucao-card:hover {
    transform: scale(0.98);
}

/* Move Up */
.ds-card-hover-move-up .ds-solucao-card:hover {
    transform: translateY(-8px);
}

/* Move Down */
.ds-card-hover-move-down .ds-solucao-card:hover {
    transform: translateY(4px);
}

/* Rotate */
.ds-card-hover-rotate .ds-solucao-card:hover {
    transform: rotate(1deg);
}

/* ============================================
   ENTRANCE ANIMATIONS - Animações de Entrada
   ============================================ */

/* Fast Duration */
.animated-fast .ds-solucao-card {
    animation-duration: 0.5s;
}

/* Faster Duration */
.animated-faster .ds-solucao-card {
    animation-duration: 0.3s;
}

/* Slow Duration */
.animated-slow .ds-solucao-card {
    animation-duration: 1.5s;
}

/* Slower Duration */
.animated-slower .ds-solucao-card {
    animation-duration: 2s;
}

/* Staggered Animation for Grid Items */
.ds-solucoes-grid .ds-solucao-card:nth-child(1) { animation-delay: 0ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(2) { animation-delay: 100ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(3) { animation-delay: 200ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(4) { animation-delay: 300ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(5) { animation-delay: 400ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(6) { animation-delay: 500ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(7) { animation-delay: 600ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(8) { animation-delay: 700ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(9) { animation-delay: 800ms; }
.ds-solucoes-grid .ds-solucao-card:nth-child(10) { animation-delay: 900ms; }

/* ============================================
   LAYOUT LIST - Lista Vertical
   ============================================ */

.ds-layout-list .ds-solucoes-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ds-layout-list .ds-solucao-card {
    flex-direction: row;
    align-items: stretch;
    max-width: none;
}

.ds-layout-list .ds-card-image {
    width: 250px;
    min-width: 250px;
    aspect-ratio: auto;
    height: auto;
}

.ds-layout-list .ds-card-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.ds-layout-list .ds-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 24px;
}

.ds-layout-list .ds-card-title {
    margin-top: 0;
}

.ds-layout-list .ds-card-excerpt {
    flex-grow: 1;
}

.ds-layout-list .ds-card-button {
    align-self: flex-start;
    margin-top: auto;
}

/* List Layout Responsive */
@media (max-width: 768px) {
    .ds-layout-list .ds-solucao-card {
        flex-direction: column;
    }
    
    .ds-layout-list .ds-card-image {
        width: 100%;
        min-width: 100%;
    }
    
    .ds-layout-list .ds-card-image img {
        min-height: 200px;
    }
}

/* ============================================
   LAYOUT MASONRY
   ============================================ */

.ds-layout-masonry .ds-solucoes-grid {
    display: grid;
    grid-template-columns: repeat(var(--ds-columns, 3), 1fr);
    gap: 30px;
    align-items: start;
}

.ds-layout-masonry .ds-solucao-card {
    height: auto;
}

.ds-layout-masonry .ds-card-image {
    aspect-ratio: auto;
}

.ds-layout-masonry .ds-card-image img {
    aspect-ratio: auto;
    height: auto;
}

/* Masonry Responsive */
@media (max-width: 1024px) {
    .ds-layout-masonry .ds-solucoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ds-layout-masonry .ds-solucoes-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAGINAÇÃO
   ============================================ */

.ds-pagination {
    margin-top: 40px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.ds-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-pagination .page-numbers li {
    display: inline-block;
}

.ds-pagination .page-numbers a,
.ds-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Span Tag - Melhorado */
.ds-pagination span {
    padding-right: 10px;
    padding-left: 10px;
}

/* Page numbers - Melhorado */
.ds-pagination a.page-numbers {
    padding-left: 10px;
    padding-right: 10px;
}

.ds-pagination .page-numbers a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.ds-pagination .page-numbers .current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ds-pagination .page-numbers .dots {
    border: none;
    background: transparent;
}

/* Archive Grid Pagination - Específico */
.elementor-widget-ds_archive_grid .ds-pagination {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.elementor-widget-ds_archive_grid .ds-pagination span {
    padding-right: 10px;
    padding-left: 10px;
}

.elementor-widget-ds_archive_grid .ds-pagination a.page-numbers {
    padding-left: 10px;
    padding-right: 10px;
}

/* Dark Mode Pagination */
@media (prefers-color-scheme: dark) {
    .ds-pagination .page-numbers a,
    .ds-pagination .page-numbers span {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    
    .ds-pagination .page-numbers a:hover {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .ds-pagination .page-numbers .current {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.ds-breadcrumbs {
    margin-bottom: 20px;
}

.ds-breadcrumbs a:hover {
    color: #2563eb !important;
}

/* ============================================
   POST NAVIGATION
   ============================================ */

.ds-post-navigation .ds-nav-link:hover .ds-nav-title {
    color: #2563eb;
}

/* ============================================
   SKELETON LOADER
   ============================================ */

.ds-skeleton-card {
    pointer-events: none;
}

@keyframes ds-skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.ds-skeleton-image,
.ds-skeleton-title,
.ds-skeleton-text {
    animation: ds-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* ============================================
   WIDGET DESTAQUE - Layouts
   ============================================ */

/* Layout Horizontal */
.ds-solucao-destaque-horizontal {
    width: 100%;
}

.ds-destaque-horizontal-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ds-destaque-horizontal-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.ds-content-position-right .ds-destaque-horizontal-card {
    flex-direction: row-reverse;
}

.ds-destaque-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.ds-destaque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-destaque-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ds-destaque-title {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.ds-destaque-title a {
    color: #111827;
    text-decoration: none;
}

.ds-destaque-title a:hover {
    color: #2563eb;
}

.ds-destaque-excerpt {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.ds-destaque-button {
    display: inline-block;
    padding: 12px 28px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.ds-destaque-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Layout Hero */
.ds-solucao-destaque-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
}

.ds-destaque-hero-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    min-height: 400px;
}

.ds-content-position-left .ds-destaque-hero-overlay {
    justify-content: flex-start;
}

.ds-content-position-right .ds-destaque-hero-overlay {
    justify-content: flex-end;
}

.ds-destaque-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
}

.ds-content-position-left .ds-destaque-hero-content,
.ds-content-position-right .ds-destaque-hero-content {
    text-align: left;
}

.ds-hero-title {
    margin: 0 0 15px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ds-hero-title a {
    color: inherit;
    text-decoration: none;
}

.ds-hero-excerpt {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.ds-hero-button {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ds-hero-button:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

/* Layout Expandido */
.ds-solucao-destaque-expanded {
    width: 100%;
}

.ds-expanded-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.ds-expanded-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.ds-expanded-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ds-expanded-content {
    padding: 30px;
}

.ds-expanded-meta {
    margin-bottom: 15px;
}

.ds-expanded-title {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.ds-expanded-title a {
    color: inherit;
    text-decoration: none;
}

.ds-expanded-title a:hover {
    color: #2563eb;
}

.ds-expanded-excerpt {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

.ds-expanded-description {
    margin: 0 0 25px;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.ds-expanded-button {
    display: inline-block;
    padding: 14px 32px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ds-expanded-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Meta Fields */
.ds-meta-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ds-meta-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ds-meta-badge.ds-status-lancado {
    background: #d1fae5;
    color: #065f46;
}

.ds-meta-badge.ds-status-beta {
    background: #dbeafe;
    color: #1e40af;
}

.ds-meta-badge.ds-status-em-desenvolvimento {
    background: #fef3c7;
    color: #92400e;
}

.ds-meta-badge.ds-status-descontinuado {
    background: #fee2e2;
    color: #991b1b;
}

.ds-meta-badge.ds-version {
    background: #f3f4f6;
    color: #374151;
}

.ds-meta-badge.ds-price {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.ds-meta-badge.ds-category {
    background: #eff6ff;
    color: #1e40af;
}

.ds-meta-badge.ds-category:hover {
    background: #dbeafe;
}

/* Hero Meta Fields */
.ds-destaque-hero-content .ds-meta-fields {
    justify-content: center;
}

.ds-content-position-left .ds-destaque-hero-content .ds-meta-fields,
.ds-content-position-right .ds-destaque-hero-content .ds-meta-fields {
    justify-content: flex-start;
}

.ds-destaque-hero-content .ds-meta-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .ds-destaque-horizontal-card {
        flex-direction: column !important;
    }
    
    .ds-destaque-image {
        flex: none;
        max-width: 100%;
        max-height: 250px;
    }
    
    .ds-destaque-title {
        font-size: 22px;
    }
    
    .ds-hero-title {
        font-size: 28px;
    }
    
    .ds-hero-excerpt {
        font-size: 16px;
    }
    
    .ds-expanded-title {
        font-size: 22px;
    }
    
    .ds-destaque-hero-overlay {
        padding: 40px 20px;
    }
}

/* Elementor Editor - Preview */
.elementor-editor-active .ds-solucao-card {
    pointer-events: none;
}

.elementor-editor-active .ds-card-button {
    pointer-events: auto;
}

/* Widget Campo de Detalhe */
.ds-detalhe-campo {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.ds-detalhe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.ds-detalhe-icon {
    font-size: 24px;
    line-height: 1;
}

.ds-detalhe-titulo {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ds-detalhe-conteudo {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* Badges */
.ds-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.ds-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.ds-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.ds-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.ds-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.ds-badge-version,
.ds-badge-warranty,
.ds-badge-arquitetura,
.ds-badge-database,
.ds-badge-license {
    background: #f3f4f6;
    color: #374151;
}

/* Plataformas Grid */
.ds-plataformas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.ds-plataforma-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ds-plataforma-icon {
    font-size: 20px;
}

/* Tecnologias e Tags */
.ds-tecnologias-list,
.ds-taxonomia-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ds-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ds-tag-link:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

/* Suporte List */
.ds-suporte-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ds-suporte-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 14px;
    color: #166534;
}

/* Preço */
.ds-preco {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
}

.ds-preco-wc {
    font-size: 24px;
}

/* Responsivo */
@media (max-width: 768px) {
    .ds-detalhe-campo {
        padding: 20px;
    }
    
    .ds-detalhe-titulo {
        font-size: 16px;
    }
    
    .ds-plataformas-grid {
        grid-template-columns: 1fr;
    }
    
    .ds-preco {
        font-size: 24px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .ds-detalhe-campo {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-detalhe-titulo {
        color: #f9fafb;
    }
    
    .ds-detalhe-conteudo {
        color: #d1d5db;
    }
    
    .ds-plataforma-item {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }
}

/* Widget Página Completa */
.ds-solucao-pagina-completa {
    width: 100%;
}

.ds-layout-full .ds-solucao-body {
    max-width: 1200px;
    margin: 0 auto;
}

.ds-layout-sidebar .ds-solucao-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.ds-solucao-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.ds-section-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

/* Header */
.ds-header .ds-solucao-title {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 700;
    color: #111827;
}

.ds-featured-image {
    border-radius: 8px;
    overflow: hidden;
}

.ds-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Galeria */
.ds-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ds-gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

.ds-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Specs e Business Grid */
.ds-specs-grid,
.ds-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ds-spec-item,
.ds-business-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ds-spec-item strong,
.ds-business-item strong {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recursos Grid */
.ds-recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.ds-recurso-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ds-recurso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ds-recurso-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ds-recurso-content {
    padding: 20px;
}

.ds-recurso-content h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ds-recurso-content p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.6;
}

.ds-recurso-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ds-recurso-link:hover {
    color: #1d4ed8;
}

/* Materiais List */
.ds-materiais-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ds-material-item {
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ds-material-item h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.ds-material-item p {
    margin: 0 0 20px;
    color: #6b7280;
    line-height: 1.6;
}

.ds-material-video {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.ds-material-video iframe {
    width: 100%;
    height: 315px;
    border: none;
}

.ds-material-download {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ds-material-download:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Sidebar */
.ds-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.ds-sidebar .ds-solucao-section {
    margin-bottom: 24px;
}

.ds-sidebar .ds-section-title {
    font-size: 18px;
}

/* WooCommerce */
.ds-wc-product h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ds-wc-price {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.ds-wc-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #059669;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ds-wc-button:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* Taxonomias */
.ds-tax-group {
    margin-bottom: 16px;
}

.ds-tax-group:last-child {
    margin-bottom: 0;
}

.ds-tax-group strong {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ds-badge-platform {
    background: #dbeafe;
    color: #1e40af;
}

.ds-badge-support {
    background: #d1fae5;
    color: #065f46;
}

.ds-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.ds-support-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsivo */
@media (max-width: 1024px) {
    .ds-layout-sidebar .ds-solucao-body {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .ds-layout-sidebar .ds-solucao-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ds-sidebar {
        position: static;
    }
    
    .ds-header .ds-solucao-title {
        font-size: 28px;
    }
    
    .ds-section-title {
        font-size: 20px;
    }
    
    .ds-solucao-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .ds-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .ds-specs-grid,
    .ds-business-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ds-recursos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   CAROUSEL WIDGET
   ============================================ */

.ds-carousel-wrapper {
    position: relative;
    width: 100%;
}

.ds-carousel {
    position: relative;
    overflow: hidden;
}

.ds-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.ds-carousel-slide {
    flex: 0 0 auto;
    width: calc((100% - 40px) / 3);
    margin-right: 20px;
}

.ds-carousel-slide:last-child {
    margin-right: 0;
}

.ds-carousel-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ds-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.ds-carousel-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ds-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ds-carousel-card:hover .ds-carousel-image img {
    transform: scale(1.05);
}

.ds-carousel-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ds-carousel-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.ds-carousel-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ds-carousel-title a:hover {
    color: #2563eb;
}

.ds-carousel-excerpt {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    flex: 1;
}

.ds-carousel-button {
    display: inline-block;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.ds-carousel-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Carousel Navigation Arrows */
.ds-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ds-carousel-arrow:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.ds-carousel-prev {
    left: -22px;
}

.ds-carousel-next {
    right: -22px;
}

/* Arrows Inside */
.ds-arrows-inside .ds-carousel-prev {
    left: 10px;
}

.ds-arrows-inside .ds-carousel-next {
    right: 10px;
}

/* Carousel Dots */
.ds-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ds-carousel-dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-carousel-dot:hover,
.ds-carousel-dot.active {
    background: #2563eb;
}

/* Carousel Responsive */
@media (max-width: 1024px) {
    .ds-carousel-slide {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .ds-carousel-slide {
        width: 100%;
        margin-right: 0;
    }
    
    .ds-carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .ds-carousel-prev {
        left: 5px;
    }
    
    .ds-carousel-next {
        right: 5px;
    }
}

/* Dark Mode Carousel */
@media (prefers-color-scheme: dark) {
    .ds-carousel-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-carousel-title a {
        color: #f9fafb;
    }
    
    .ds-carousel-title a:hover {
        color: #60a5fa;
    }
    
    .ds-carousel-excerpt {
        color: #d1d5db;
    }
    
    .ds-carousel-arrow {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .ds-carousel-arrow:hover {
        background: #4b5563;
    }
    
    .ds-carousel-dot {
        background: #4b5563;
    }
    
    .ds-carousel-dot:hover,
    .ds-carousel-dot.active {
        background: #60a5fa;
    }
}

/* ============================================
   TABLE OF CONTENTS (TOC)
   ============================================ */

.ds-table-of-contents {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.ds-toc-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.ds-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-toc-list li {
    margin-bottom: 8px;
}

.ds-toc-list li:last-child {
    margin-bottom: 0;
}

.ds-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ds-toc-link:before {
    content: "→";
    color: #9ca3af;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ds-toc-link:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.ds-toc-link:hover:before {
    transform: translateX(4px);
    color: #2563eb;
}

/* TOC Sticky */
.ds-toc-sticky {
    position: sticky;
    top: 20px;
}

/* ============================================
   POST NAVIGATION (Anterior/Próximo)
   ============================================ */

.ds-solucao-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.ds-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ds-nav-link:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.ds-nav-prev {
    justify-content: flex-start;
}

.ds-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.ds-nav-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.ds-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ds-nav-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    transition: color 0.2s ease;
}

.ds-nav-link:hover .ds-nav-title {
    color: #2563eb;
}

/* Navigation Responsive */
@media (max-width: 768px) {
    .ds-solucao-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ds-nav-link {
        padding: 16px;
    }
    
    .ds-nav-thumb {
        width: 60px;
        height: 60px;
    }
    
    .ds-nav-title {
        font-size: 14px;
    }
}

/* ============================================
   RELATED SOLUTIONS
   ============================================ */

.ds-related {
    margin-top: 40px;
}

.ds-related-grid {
    display: grid;
    gap: 24px;
}

.ds-columns-2 .ds-related-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ds-columns-3 .ds-related-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ds-columns-4 .ds-related-grid {
    grid-template-columns: repeat(4, 1fr);
}

.ds-related-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ds-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ds-related-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ds-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ds-related-item:hover .ds-related-image img {
    transform: scale(1.05);
}

.ds-related-title {
    margin: 0;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ds-related-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ds-related-title a:hover {
    color: #2563eb;
}

/* Related Responsive */
@media (max-width: 1024px) {
    .ds-columns-4 .ds-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ds-columns-2 .ds-related-grid,
    .ds-columns-3 .ds-related-grid,
    .ds-columns-4 .ds-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ds-related-title {
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .ds-columns-2 .ds-related-grid,
    .ds-columns-3 .ds-related-grid,
    .ds-columns-4 .ds-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HERO HEADER STYLES
   ============================================ */

.ds-header-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.ds-header-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.ds-header-hero .ds-solucao-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ds-header-hero .ds-solucao-excerpt {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-top: 16px;
}

.ds-header-hero .ds-header-meta {
    margin-bottom: 20px;
}

.ds-header-hero .ds-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Header Compact */
.ds-header-compact {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ds-header-compact .ds-featured-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.ds-header-compact .ds-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-header-compact .ds-solucao-title {
    font-size: 28px;
    margin-bottom: 8px;
}

/* Header Centered */
.ds-header-centered {
    text-align: center;
    padding: 40px 30px;
}

.ds-header-centered .ds-featured-image {
    max-width: 400px;
    margin: 20px auto 0;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .ds-solucao-section {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-section-title,
    .ds-header .ds-solucao-title {
        color: #f9fafb;
    }
    
    .ds-spec-item,
    .ds-business-item,
    .ds-material-item {
        background: #374151;
        border-color: #4b5563;
    }
    
    .ds-recurso-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-recurso-content h3,
    .ds-material-item h3,
    .ds-wc-product h4 {
        color: #f9fafb;
    }
    
    .ds-recurso-content p,
    .ds-material-item p {
        color: #d1d5db;
    }
    
    /* TOC Dark Mode */
    .ds-table-of-contents {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-toc-title {
        color: #f9fafb;
        border-bottom-color: #374151;
    }
    
    .ds-toc-link {
        color: #d1d5db;
    }
    
    .ds-toc-link:hover {
        background: #374151;
        color: #60a5fa;
    }
    
    /* Navigation Dark Mode */
    .ds-nav-link {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-nav-title {
        color: #f9fafb;
    }
    
    .ds-nav-link:hover .ds-nav-title {
        color: #60a5fa;
    }
    
    /* Related Dark Mode */
    .ds-related-item {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ds-related-title a {
        color: #f9fafb;
    }
    
    .ds-related-title a:hover {
        color: #60a5fa;
    }
    
    /* Header Styles Dark Mode */
    .ds-header-compact,
    .ds-header-centered {
        background: #1f2937;
    }
    
    .ds-header-compact .ds-solucao-title,
    .ds-header-centered .ds-solucao-title {
        color: #f9fafb;
    }
}

/* ============================================
   RECURSOS MODAL - Modal para Recursos Institucionais
   ============================================ */

/* Card clicável */
.ds-recurso-clickable {
    cursor: pointer;
    position: relative;
}

.ds-recurso-clickable:hover {
    border-color: #2563eb;
}

.ds-recurso-clickable:hover .ds-recurso-ver-mais {
    background: #2563eb;
    color: #fff;
}

.ds-recurso-ver-mais {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ds-recurso-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Overlay */
body .ds-recurso-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    background: transparent !important;
}

body .ds-recurso-modal.ds-modal-open {
    display: flex !important;
}

body .ds-recurso-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Modal Content */
.ds-recurso-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: ds-modal-slide-up 0.3s ease;
}

@keyframes ds-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Close Button */
.ds-recurso-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ds-recurso-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Modal Gallery */
.ds-recurso-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ds-recurso-modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Modal Title */
.ds-recurso-modal-title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    padding-right: 40px;
}

/* Modal Description */
.ds-recurso-modal-description {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 24px;
}

.ds-recurso-modal-description p {
    margin-bottom: 16px;
}

.ds-recurso-modal-description p:last-child {
    margin-bottom: 0;
}

/* Modal Video */
.ds-recurso-modal-video {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.ds-recurso-modal-video iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .ds-recurso-modal-content {
        padding: 24px;
        max-height: 85vh;
    }
    
    .ds-recurso-modal-title {
        font-size: 22px;
    }
    
    .ds-recurso-modal-video iframe {
        height: 250px;
    }
    
    .ds-recurso-modal-gallery {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Modal */
@media (prefers-color-scheme: dark) {
    .ds-recurso-modal-content {
        background: #1f2937;
    }
    
    .ds-recurso-modal-title {
        color: #f9fafb;
    }
    
    .ds-recurso-modal-description {
        color: #d1d5db;
    }
    
    .ds-recurso-modal-close {
        background: #374151;
        color: #f9fafb;
    }
    
    .ds-recurso-modal-close:hover {
        background: #4b5563;
    }
}
