/* Nexa Blog Hero Section and Blog Listing Styles */

:root {
    --nexa-primary: #6366f1;
    --nexa-primary-dark: #4f46e5;
    --nexa-secondary: #10b981;
    --nexa-accent: #8b5cf6;
    --nexa-dark: #1f2937;
    --nexa-light: #f9fafb;
    --nexa-gray: #6b7280;
    --nexa-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --nexa-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
}

/* Hero Section */
.nexa-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 0;
    color: var(--nexa-dark);
    background-color: var(--nexa-light);
}

.nexa-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.nexa-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%236366f1'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%236366f1'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%236366f1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.nexa-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.nexa-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.nexa-hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
}

.nexa-hero-shapes .shape-1 {
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%);
    animation: float 8s ease-in-out infinite;
}

.nexa-hero-shapes .shape-2 {
    bottom: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
    animation: float 12s ease-in-out infinite;
}

.nexa-hero-shapes .shape-3 {
    top: 40%;
    left: 25%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
    animation: float 10s ease-in-out infinite 1s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.nexa-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
}

.nexa-hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
}

.nexa-hero-badge {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--nexa-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.nexa-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--nexa-dark);
    letter-spacing: -0.02em;
}

.nexa-hero-title .highlight {
    color: var(--nexa-primary);
    position: relative;
    display: inline-block;
}

.nexa-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--nexa-gray);
    margin-bottom: 30px;
}

.nexa-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.nexa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nexa-button.primary {
    background: var(--nexa-gradient);
    color: white;
    box-shadow: var(--nexa-shadow);
}

.nexa-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.2), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
}

.nexa-button.secondary {
    background-color: transparent;
    color: var(--nexa-primary);
    border: 2px solid var(--nexa-primary);
}

.nexa-button.secondary:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.nexa-hero-visual {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexa-visual-element {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexa-visual-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--nexa-gradient);
    opacity: 0.8;
    box-shadow: var(--nexa-shadow);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.nexa-visual-dots {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nexa-visual-dots span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
}

.nexa-visual-dots span:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nexa-visual-dots span:nth-child(2) {
    top: 14.64%;
    right: 14.64%;
    transform: translate(50%, -50%);
}

.nexa-visual-dots span:nth-child(3) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.nexa-visual-dots span:nth-child(4) {
    bottom: 14.64%;
    right: 14.64%;
    transform: translate(50%, 50%);
}

.nexa-visual-dots span:nth-child(5) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nexa-visual-dots span:nth-child(6) {
    bottom: 14.64%;
    left: 14.64%;
    transform: translate(-50%, 50%);
}

.nexa-visual-dots span:nth-child(7) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.nexa-visual-dots span:nth-child(8) {
    top: 14.64%;
    left: 14.64%;
    transform: translate(-50%, -50%);
}

.nexa-visual-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexa-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nexa-visual-icon svg {
    width: 40px;
    height: 40px;
}

/* Hero Features */
.nexa-hero-features {
    background-color: white;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.nexa-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.nexa-feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nexa-feature-item:hover {
    background-color: var(--nexa-light);
    transform: translateY(-5px);
}

.nexa-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--nexa-primary);
}

.nexa-feature-icon svg {
    width: 30px;
    height: 30px;
}

.nexa-feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--nexa-dark);
}

.nexa-feature-item p {
    color: var(--nexa-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.nexa-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.nexa-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nexa-dark);
    margin-bottom: 10px;
}

.nexa-section-header p {
    font-size: 1.125rem;
    color: var(--nexa-gray);
    max-width: 600px;
    margin: 0 auto;
}

.nexa-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.nexa-post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--nexa-shadow);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nexa-post-card:hover {
    transform: translateY(-5px);
}

.nexa-post-card .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

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

.nexa-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.nexa-post-card .post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nexa-post-card .post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.nexa-post-card .post-date {
    color: var(--nexa-gray);
}

.nexa-post-card .post-category {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--nexa-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.nexa-post-card .post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.nexa-post-card .post-title a {
    color: var(--nexa-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nexa-post-card .post-title a:hover {
    color: var(--nexa-primary);
}

.nexa-post-card .post-excerpt {
    color: var(--nexa-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    
    /* Fix for text wrapping and ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Limit to 3 lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;  /* 3 lines × 1.6 line-height */
    word-wrap: break-word;
}

.nexa-post-card .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--nexa-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: auto;
}

.nexa-post-card .read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.nexa-post-card .read-more:hover:after {
    transform: translateX(3px);
}

.no-posts-found {
    text-align: center;
    padding: 50px 0;
    grid-column: 1 / -1;
}

.no-posts-found p {
    font-size: 1.125rem;
    color: var(--nexa-gray);
}

/* Pagination */
.nexa-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    grid-column: 1 / -1;
}

.nexa-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 8px;
    background-color: white;
    color: var(--nexa-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nexa-pagination .page-numbers.current {
    background-color: var(--nexa-primary);
    color: white;
}

.nexa-pagination .page-numbers:hover {
    background-color: var(--nexa-primary-dark);
    color: white;
}

.nexa-pagination .page-numbers.prev,
.nexa-pagination .page-numbers.next {
    width: auto;
    padding: 0 15px;
}

.nexa-pagination .page-numbers svg {
    width: 18px;
    height: 18px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nexa-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nexa-hero-text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .nexa-hero-cta {
        justify-content: center;
    }
    
    .nexa-hero-title {
        font-size: 2.5rem;
    }
    
    .nexa-visual-element {
        width: 300px;
        height: 300px;
    }
    
    .nexa-visual-circle {
        width: 200px;
        height: 200px;
    }
    
    .nexa-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nexa-hero {
        padding: 60px 0 0;
    }
    
    .nexa-hero-title {
        font-size: 2rem;
    }
    
    .nexa-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nexa-visual-element {
        width: 250px;
        height: 250px;
    }
    
    .nexa-visual-circle {
        width: 180px;
        height: 180px;
    }
    
    .nexa-visual-icon {
        width: 60px;
        height: 60px;
    }
    
    .nexa-visual-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .nexa-features-grid {
        grid-template-columns: 1fr;
    }
    
    .nexa-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .nexa-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .nexa-hero {
        padding: 40px 0 0;
    }
    
    .nexa-hero-title {
        font-size: 1.75rem;
    }
    
    .nexa-hero-subtitle {
        font-size: 1rem;
    }
    
    .nexa-button {
        width: 100%;
    }
    
    .nexa-hero-wave {
        height: 100px;
    }
    
    .nexa-visual-element {
        width: 200px;
        height: 200px;
    }
    
    .nexa-visual-circle {
        width: 150px;
        height: 150px;
    }
    
    .nexa-section-header h2 {
        font-size: 1.75rem;
    }
    
    .nexa-section-header p {
        font-size: 1rem;
    }
}

/* View All Button Styles */
.view-all-posts {
    margin-top: 50px;
    text-align: center;
}

.nexa-button.view-all {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.nexa-button.view-all svg {
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.nexa-button.view-all:hover svg {
    transform: translateX(5px);
}

/* Blog Archive Page Styles */
.nexa-blog-archive {
    background-color: var(--nexa-light);
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--nexa-dark);
    margin-bottom: 15px;
}

.archive-description {
    font-size: 1.25rem;
    color: var(--nexa-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Make pagination more visible */
.nexa-pagination {
    margin-top: 50px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
    clear: both;
    width: 100%;
    display: block;
}

.nexa-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 8px;
    background-color: white;
    color: var(--nexa-dark);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 16px;
}

.nexa-pagination .page-numbers.current {
    background-color: var(--nexa-primary);
    color: white;
}

.nexa-pagination .page-numbers:hover:not(.current) {
    background-color: var(--nexa-light);
}

.nexa-pagination .page-numbers.prev,
.nexa-pagination .page-numbers.next {
    width: auto;
    padding: 0 15px;
}

.nexa-pagination svg {
    width: 18px;
    height: 18px;
}

.entry-content > p:first-child {
  display: none;
}
