/* Whitepapers Page Styles */

/* Basic Layout */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Whitepapers Page Header */
.whitepapers-page-header.section-padding {
    padding: 10rem 0 5rem;
}

.whitepapers-page-header {
    background: linear-gradient(135deg, #111d31 0%, #273039 100%);
    text-align: center;
    position: relative;
}

.whitepapers-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(155, 89, 182, 0.5);
    z-index: 1;
}

.whitepapers-page-header .container {
    position: relative;
    z-index: 2;
}

.whitepapers-page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Whitepapers Search Section */
.whitepapers-search-section {
    margin-top: 2rem;
    position: relative;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Filter Section */
.whitepapers-filter-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.filter-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-align: center;
}

.filter-dropdown {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 35px;
    min-width: 150px;
    max-width: 200px;
    height: 36px;
    line-height: 1;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #bdd653;
    box-shadow: 0 0 0 3px rgba(189, 214, 83, 0.1);
}

.clear-filters-btn {
    background: #273039;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    line-height: 1;
    margin-top: 24px;
}

.clear-filters-btn:hover {
    background: #1a2329;
    transform: translateY(-1px);
}

.filter-results {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-results p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Whitepapers Grid */
.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Whitepaper Card */
.whitepaper-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.whitepaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #bdd653;
}

/* Whitepaper Image */
.whitepaper-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.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-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #bdd653;
    font-size: 3rem;
}

.whitepaper-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(189, 214, 83, 0.9);
    color: #273039;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Whitepaper Content */
.whitepaper-content {
    padding: 1.5rem;
}

.whitepaper-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.whitepaper-date,
.whitepaper-size {
    display: flex;
    align-items: center;
    gap: 4px;
}

.whitepaper-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.whitepaper-size::before {
    content: '\f15c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.whitepaper-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #273039;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.whitepaper-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Whitepaper Tags */
.whitepaper-categories,
.whitepaper-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.whitepaper-category-tag {
    background: rgba(189, 214, 83, 0.1);
    color: #273039;
    padding: 4px 10px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(189, 214, 83, 0.3);
}

.whitepaper-industry-tag {
    background: rgba(39, 48, 57, 0.1);
    color: #273039;
    padding: 4px 10px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(39, 48, 57, 0.3);
}

/* Whitepaper Actions */
.whitepaper-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: #bdd653;
    color: #273039;
}

.btn-primary:hover {
    background: #a8c442;
    color: #273039;
}

.btn-secondary {
    background: #273039;
    color: white;
}

.btn-secondary:hover {
    background: #1a2329;
    color: white;
}

.download-btn {
    background: #bdd653;
    color: #273039;
}

.preview-btn {
    background: #273039;
    color: white;
}

/* No Whitepapers Message */
.no-whitepapers-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-whitepapers-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* Whitepapers CTA Section */
.whitepapers-cta-section {
    background: #f8f9fa;
}

.whitepapers-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filter-dropdowns {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .filter-dropdown-group {
        width: 100%;
        max-width: 300px;
    }
    
    .filter-dropdown {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 1rem;
    }
    
    .search-icon {
        right: 15px;
        font-size: 1.1rem;
    }
    
    .whitepapers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .whitepaper-content {
        padding: 1.25rem;
    }
    
    .whitepaper-title {
        font-size: 1.2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .whitepaper-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .whitepaper-content {
        padding: 1rem;
    }
    
    .whitepaper-title {
        font-size: 1.1rem;
    }
    
    .whitepaper-excerpt {
        font-size: 0.9rem;
    }
    
    .filter-dropdown {
        font-size: 0.9rem;
        padding: 6px 12px;
        height: 32px;
    }
    
    .clear-filters-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        height: 32px;
    }
}
