/*
 * WhitepaperVault Theme Styles - Premium Edition
 * A stunning, modern WordPress theme for whitepapers
 * Theme Color: Blue with Premium Effects
 */

/* ===========================
   CSS Variables
   =========================== */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --background-light: #f9fafb;
    --white: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --max-width: 1200px;
    --spacing: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--background-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ===========================
   Premium Header Navigation
   =========================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
}

.header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.15), transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

/* Brand Styling */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.brand-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.brand-icon svg {
    width: 28px;
    height: 28px;
}

.brand-text .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-text .site-title a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-text .site-description {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

.logo-wrapper img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
.main-navigation {
    flex: 0 0 auto;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.main-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.main-menu li a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.main-menu li.current-menu-item a {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
   background: rgba(37, 99, 235, 0.08);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.cta-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

/* ===========================
   Search Overlay
   =========================== */

.header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.header-search-overlay.active .search-overlay-content {
    transform: scale(1);
}

.close-search {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: var(--error-color);
    color: var(--white);
    transform: rotate(90deg);
}

.close-search svg {
    width: 20px;
    height: 20px;
}

.search-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 800;
    text-align: center;
}

.overlay-search-form {
    margin-bottom: 1rem;
}

.search-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-group .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-light);
    pointer-events: none;
}

.overlay-search-form .search-field {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.75rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.overlay-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.search-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.search-hint kbd {
    background: var(--background-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 0.8125rem;
}

/* ===========================
   Hero Section (Homepage)
   =========================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 2rem;
    margin: -3rem -1rem 4rem -1rem;
    border-radius: 0 0 32px 32px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-search {
    max-width: 750px;
    margin: 0 auto;
}

.hero-search .search-form {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    width: 22px;
    height: 22px;
    color: var(--text-light);
    pointer-events: none;
}

.hero-search .search-field {
    flex: 1;
    padding: 1.125rem 1.25rem 1.125rem 3.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    background: transparent;
}

.hero-search .search-field:focus {
    outline: none;
}

.hero-search .search-field::placeholder {
    color: var(--text-light);
}

.hero-search .search-submit {
    padding: 1.125rem 2.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.hero-search .search-submit:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

/* Compact Hero for Homepage */
.hero-compact {
    padding: 3rem 2rem;
    margin: -3rem -1rem 3rem -1rem;
}

.hero-compact .hero-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero-compact .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===========================
   Section Headers
   =========================== */

.section-header,
.search-results-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
}

.section-header h2,
.search-results-header h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.search-results-header h2 span {
    color: var(--primary-color);
}

.section-header p,
.search-results-header p {
    color: var(--text-light);
    font-size: 1.1875rem;
    font-weight: 400;
}

/* ===========================
   Main Content Area
   =========================== */

.site-main {
    min-height: calc(100vh - 300px);
    padding: 3rem 0;
}

.content-area {
    width: 100%;
}

/* ===========================
   Archive Header
   =========================== */

.archive-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 2rem;
    margin: -3rem -1rem 4rem -1rem;
    border-radius: 0 0 32px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: var(--white);
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.archive-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    position: relative;
}

/* ===========================
   Whitepaper Search (Archive)
   =========================== */

.whitepaper-search {
    margin-bottom: 3.5rem;
}

.whitepaper-search .search-form {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.whitepaper-search .search-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    background: var(--background-light);
    transition: all 0.3s ease;
}

.whitepaper-search .search-field:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.whitepaper-search .search-submit {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.whitepaper-search .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* ===========================
   Whitepaper Grid
   =========================== */

.whitepaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.whitepaper-item {
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.whitepaper-item.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whitepaper-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.whitepaper-item:hover .whitepaper-card {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.whitepaper-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.whitepaper-thumbnail {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.whitepaper-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whitepaper-item:hover .whitepaper-thumbnail img {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.whitepaper-item:hover .thumbnail-overlay {
    opacity: 1;
}

.view-details-text {
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.whitepaper-thumbnail-placeholder {
    color: var(--text-light);
}

.placeholder-content {
    width: 100px;
    height: 100px;
    color: var(--primary-light);
}

.placeholder-content svg {
    width: 100%;
    height: 100%;
}

.whitepaper-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-logo {
    margin-bottom: 1.25rem;
    height: 45px;
    display: flex;
    align-items: center;
}

.company-logo img {
    max-height: 45px;
    max-width: 160px;
    width: auto;
}

.whitepaper-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.company-name {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.company-name svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.whitepaper-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: auto;
    flex: 1;
}

.whitepaper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--background-light);
}

.download-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 600;
}

.download-count svg {
    width: 18px;
    height: 18px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.download-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.whitepaper-item:hover .download-btn {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.whitepaper-item:hover .download-btn svg {
    transform: translateX(3px);
}

/* ===========================
   Search Results Page
   =========================== */

.search-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 2rem;
    margin: -3rem -1rem 4rem -1rem;
    border-radius: 0 0 32px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.search-hero-content {
    position: relative;
    z-index: 1;
}

.search-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.search-icon-large svg {
    width: 40px;
    height: 40px;
}

.search-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

.search-query {
    color: rgba(255, 255, 255, 0.9);
}

.search-count {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin: 0;
}

.search-count strong {
    color: var(--white);
    font-weight: 800;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.search-result-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(37, 99, 235, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.search-result-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.search-result-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.result-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.result-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.search-result-card:hover .result-thumbnail img {
    transform: scale(1.1);
}

.result-thumbnail-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--primary-light);
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-result-card:hover .result-overlay {
    opacity: 1;
}

.view-text {
    color: var(--white);
    font-weight: 800;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-content {
    padding: 2rem;
}

.result-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-type-badge svg {
    width: 16px;
    height: 16px;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.post-date svg {
    width: 14px;
    height: 14px;
}

.result-company-logo {
    margin-bottom: 1rem;
    height: 40px;
    display: flex;
    align-items: center;
}

.result-company-logo img {
    max-height: 40px;
    max-width: 150px;
    width: auto;
}

.result-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.result-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.result-company svg {
    width: 16px;
    height: 16px;
}

.result-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 2px solid var(--background-light);
}

.download-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.download-stat svg {
    width: 16px;
    height: 16px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.search-result-card:hover .read-more-btn {
    gap: 0.75rem;
}

.search-result-card:hover .read-more-btn svg {
    transform: translateX(3px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
}

.no-results h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 800;
}

.no-results p {
    color: var(--text-light);
    font-size: 1.1875rem;
    margin-bottom: 3rem;
}

.search-suggestions {
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: left;
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
}

.search-suggestions h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 0.75rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-suggestions li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.125rem;
}

/* ===========================
   Single Whitepaper Page
   =========================== */

.single-whitepaper {
    max-width: 1200px;
    margin: 0 auto;
}

.whitepaper-meta-section {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.company-logo-large {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.company-logo-large img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.meta-right h1.whitepaper-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.meta-right .company-name {
    font-size: 1.1875rem;
    margin-bottom: 1.5rem;
}

.meta-details {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    padding-top: 1.25rem;
    border-top: 2px solid var(--background-light);
}

.meta-item {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
}

.meta-item strong {
    color: var(--text-color);
    font-weight: 800;
}

.meta-item svg {
    width: 18px;
    height: 18px;
}

/* Two Column Layout */
.whitepaper-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.whitepaper-description {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.whitepaper-description h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.whitepaper-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
}

.whitepaper-description p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 3.5rem;
    border-radius: 20px;
    margin-bottom: 3.5rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border: 2px solid rgba(37, 99, 235, 0.15);
}

.download-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 800;
}

.download-description {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.download-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success-color);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.success-message {
    color: #065f46;
    margin: 0;
    font-weight: 700;
    font-size: 1.0625rem;
}

/* Download Form */
.download-form {
    max-width: 550px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.875rem;
    color: var(--text-color);
    font-size: 1.0625rem;
}

.required {
    color: var(--error-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%236b7280"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid var(--border-color);
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    display: none;
}

.privacy-note {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.no-pdf-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--error-color);
    padding: 2rem;
    border-radius: 16px;
}

.no-pdf-message p {
    color: #991b1b;
    margin: 0;
    font-weight: 700;
    font-size: 1.0625rem;
}

/* ===========================
   Common Elements
   =========================== */

.no-posts {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.no-posts-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
}

.no-posts-icon svg {
    width: 100%;
    height: 100%;
}

.no-posts h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 800;
}

.no-posts p {
    color: var(--text-light);
    font-size: 1.1875rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* ===========================
   Pagination
   =========================== */

.pagination {
    margin-top: 4rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 700;
    background: var(--white);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===========================
   Footer
   =========================== */

.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
    padding: 3.5rem 0;
    margin-top: 5rem;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.625rem 0;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.footer-content a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--white);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    /* Header */
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-actions {
        justify-content: space-between;
    }
    
    /* Hero */
    .hero-section {
        padding: 3.5rem 1.5rem;
        margin: -3rem -0.5rem 3rem -0.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-search .search-form {
        flex-direction: column;
    }
    
    .hero-search .search-submit {
        width: 100%;
    }
    
    /* Archive Header */
    .archive-header, .search-hero {
        padding: 3rem 1.5rem;
        margin: -3rem -0.5rem 3rem -0.5rem;
    }
    
    .archive-title, .search-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Grid */
    .whitepaper-grid, .search-results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Single Whitepaper */
    .whitepaper-meta-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .company-logo-large {
        width: 120px;
        height: 120px;
    }
    
    .meta-right h1.whitepaper-title {
        font-size: 2rem;
    }
    
    .whitepaper-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .whitepaper-description,
    .download-section {
        padding: 2rem;
    }
    
    /* Search Form */
    .whitepaper-search .search-form {
        flex-direction: column;
    }
    
    .whitepaper-search .search-submit {
        width: 100%;
    }
    
    /* Search Overlay */
    .search-overlay-content {
        padding: 2rem;
    }
    
    .search-form-wrapper h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .archive-title, .search-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .whitepaper-title, .result-title {
        font-size: 1.25rem;
    }
    
    .whitepaper-thumbnail, .result-thumbnail {
        height: 220px;
    }
    
    .download-section {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 0.675rem 1.25rem;
        font-size: 0.875rem;
    }
}
