/* ====================================
   Insights List Page Styles
   ==================================== */

.page-insights {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    flex: 1;
}

/* Page Header */
.insights-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.insights-header h1 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.insights-header p {
    font-size: 16px;
    line-height: 1.6;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Insight Card */
.insight-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--color-border);
}

.insight-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.insight-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #f5f5f5;
}

.insight-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insight-card:hover .insight-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.insight-card-content {
    padding: 24px;
}

.insight-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Footer */
.insight-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.insight-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1E3A8A;
    transition: all 0.2s ease;
}

.insight-card-readmore svg {
    transition: transform 0.2s ease;
}

.insight-card:hover .insight-card-readmore {
    gap: 10px;
}

.insight-card:hover .insight-card-readmore svg {
    transform: translateX(4px);
}

/* Empty State */
.insights-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999999;
}

.insights-empty svg {
    margin-bottom: 20px;
    color: #cccccc;
}

.insights-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #666666;
    margin: 0 0 10px 0;
}

.insights-empty p {
    margin: 0;
    font-size: 15px;
}

/* ====================================
   Responsive Styles
   ==================================== */

@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-insights {
        padding: 40px 0;
    }
    
    .insights-header {
        margin-bottom: 40px;
    }
    
    .insights-header h1 {
        font-size: 24px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .insight-card-content {
        padding: 20px;
    }
    
    .insight-card-title {
        font-size: 18px;
    }
    
    .insight-card-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-insights {
        padding: 30px 0;
    }
    
    .insights-header {
        margin-bottom: 30px;
    }
    
    .insights-header h1 {
        font-size: 22px;
    }
    
    .insights-header p {
        font-size: 14px;
    }
    
    .insight-card-content {
        padding: 16px;
    }
}

/* ====================================
   Pagination Styles
   ==================================== */

.pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Pagination Buttons */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: #f8f9fa;
    border-color: #1E3A8A;
    color: #1E3A8A;
}

.pagination-btn svg {
    transition: transform 0.2s ease;
}

.pagination-btn.pagination-prev:hover svg {
    transform: translateX(-3px);
}

.pagination-btn.pagination-next:hover svg {
    transform: translateX(3px);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Page Numbers */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background-color: #f8f9fa;
    border-color: #1E3A8A;
    color: #1E3A8A;
}

.pagination-number.active {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
    color: #ffffff;
    cursor: default;
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--color-text);
    font-weight: 500;
}

/* ====================================
   Responsive Pagination
   ==================================== */

@media (max-width: 768px) {
    .pagination {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
    
    .pagination-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-numbers {
        order: -1;
    }
}

@media (max-width: 480px) {
    .pagination-btn span {
        display: none;
    }
    
    .pagination-btn {
        width: auto;
        padding: 10px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
    }
}