/* TSG Whitepapers Shortcode Styles */

.tsg-category-whitepapers {
    margin: 2rem 0;
}

.tsg-category-whitepapers .sub_cat_title {
    margin-bottom: 2rem;
}

.tsg-category-whitepapers .wp-v-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

.whitepaper-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.whitepaper-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.whitepaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.whitepaper-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.whitepaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whitepaper-card:hover .whitepaper-image img {
    transform: scale(1.05);
}

.whitepaper-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.whitepaper-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.whitepaper-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.whitepaper-title a:hover {
    color: #007cba;
}

.whitepaper-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.whitepaper-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.whitepaper-button {
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #ff6b35;
}

.read-more-btn:hover {
    background: #e55a2b;
    border-color: #e55a2b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whitepaper-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .whitepaper-content {
        padding: 1.25rem;
    }
    
    .whitepaper-title {
        font-size: 1rem;
    }
    
    .tsg-category-whitepapers .wp-v-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .whitepaper-cards {
        gap: 1rem;
    }
    
    .whitepaper-content {
        padding: 1rem;
    }
    
    .whitepaper-image {
        height: 180px;
    }
}
