/**
 * Insights Section Styles
 *
 * @package Zero_Qubit_Astra_Child
 * @since 1.0.0
 */

/* Insights Filter Styles */
.insights-filter-container {
    margin-bottom: 40px;
    text-align: center;
}

.insights-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.insights-filters li {
    margin: 0 10px 10px 0;
}

.insights-filters a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.insights-filters a:hover,
.insights-filters a.active {
    background-color: #0073e6;
    color: #fff;
}

/* Insights Grid Layout */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Insights Item Styles */
.insight-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.insight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.insight-thumbnail {
    position: relative;
    overflow: hidden;
}

.insight-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.insight-item:hover .insight-thumbnail img {
    transform: scale(1.05);
}

.insight-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.insight-date {
    margin-right: 15px;
}

.insight-categories a {
    color: #0073e6;
    text-decoration: none;
}

.insight-categories a:hover {
    text-decoration: underline;
}

.insight-item .entry-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.3;
}

.insight-item .entry-title a {
    color: #333;
    text-decoration: none;
}

.insight-item .entry-title a:hover {
    color: #0073e6;
}

.insight-item .entry-summary {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Video Placeholder Styles */
.video-placeholder {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.play-icon:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    margin-left: 5px;
}

.placeholder-video {
    background-color: #f0f0f0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
}

/* Download Button Styles */
.download-button {
    margin-left: 10px;
    background-color: #28a745 !important;
}

.download-button:hover {
    background-color: #218838 !important;
}

/* Pagination Styles */
.insights-pagination {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.insights-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.insights-pagination .page-numbers.current {
    background-color: #0073e6;
    color: #fff;
    border-color: #0073e6;
}

.insights-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}
