/* Whitepapers Page Styles */
body {
    background: linear-gradient(180deg, #F9F8F4 0%, #EFFAEA 32.22%, #F5EEF5 51.58%, #EEF7FF 75.82%);
}

/* Single Whitepaper - Plain white background */
body.single-whitepaper {
    background: #ffffff;
}

/* Banner Section */
.whitepaper-banner {
    text-align: center;
    padding-top: 11.6vw;
    padding-bottom: 6vw;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.whitepaper-banner h2 {
    font-weight: 500;
    font-size: 3.2vw;
    color: #ffffff;
    margin-bottom: 1vw;
}

.whitepaper-banner p {
    font-size: 1.2vw;
    color: rgba(255, 255, 255, 0.7);
    max-width: 40vw;
    margin: 0 auto;
}

/* Container */
.whitepaper_container {
    margin-left: 14.7vw;
    margin-right: 14.7vw;
    margin-top: 4vw;
    margin-bottom: 8vw;
}

/* Grid */
.whitepaper_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

/* Card */
.whitepaper_card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border-radius: 1.2vw;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.whitepaper_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.whitepaper_card_image {
    width: 100%;
    height: 14vw;
    overflow: hidden;
}

.whitepaper_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whitepaper_card:hover .whitepaper_card_image img {
    transform: scale(1.05);
}

.whitepaper_placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.whitepaper_card_content {
    padding: 1.5vw 2vw 2vw;
}

.whitepaper_card_content h3 {
    font-size: 1.3vw;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8vw;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whitepaper_card_content p {
    font-size: 0.95vw;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5vw;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download_btn {
    display: inline-block;
    padding: 0.7vw 1.5vw;
    background: #1e1614;
    color: #ffffff;
    border: none;
    border-radius: 0.4vw;
    font-size: 0.9vw;
    font-weight: 500;
    font-family: Satoshi, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download_btn:hover {
    background: #2d2320;
    transform: scale(1.02);
}

/* Read More Link */
.read_more_link {
    display: inline-block;
    padding: 0.7vw 1.5vw;
    background: #1e1614;
    color: #ffffff;
    border: none;
    border-radius: 0.4vw;
    font-size: 0.9vw;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whitepaper_card:hover .read_more_link {
    background: #2d2320;
}

/* No whitepapers message */
.no_whitepapers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4vw;
    color: #666;
    font-size: 1.1vw;
}

/* Modal Styles */
.whitepaper_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.whitepaper_modal.active {
    display: flex;
}

.whitepaper_modal_content {
    background: #ffffff;
    border-radius: 1.2vw;
    padding: 2.5vw 3vw;
    width: 100%;
    max-width: 30vw;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal_close {
    position: absolute;
    top: 1vw;
    right: 1.5vw;
    background: none;
    border: none;
    font-size: 2vw;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal_close:hover {
    color: #333;
}

.whitepaper_modal_content h3 {
    font-size: 1.6vw;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5vw;
}

.modal_subtitle {
    font-size: 1vw;
    color: #666;
    margin-bottom: 2vw;
    padding-bottom: 1.5vw;
    border-bottom: 1px solid #eee;
}

.form_field {
    margin-bottom: 1.2vw;
}

.form_field label {
    display: block;
    font-size: 0.9vw;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4vw;
}

.form_field label span {
    color: #cc0000;
}

.form_field input {
    width: 100%;
    padding: 0.8vw 1vw;
    border: 1px solid #ddd;
    border-radius: 0.4vw;
    font-size: 0.95vw;
    font-family: Satoshi, sans-serif;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form_field input:focus {
    outline: none;
    border-color: #1e1614;
}

.form_field input::placeholder {
    color: #999;
}

#formResponse {
    margin-bottom: 1vw;
    font-size: 0.9vw;
    min-height: 1.2vw;
}

.submit_btn {
    width: 100%;
    padding: 1vw;
    background: #1e1614;
    color: #ffffff;
    border: none;
    border-radius: 0.4vw;
    font-size: 1vw;
    font-weight: 600;
    font-family: Satoshi, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
}

.submit_btn:hover:not(:disabled) {
    background: #2d2320;
}

.submit_btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn_loader svg {
    display: block;
}

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

.single_whitepaper_header {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    padding-top: 10vw;
    padding-bottom: 4vw;
}

.single_whitepaper_header_inner {
    max-width: 55vw;
    margin: 0 auto;
}

.back_link {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9vw;
    margin-bottom: 2vw;
    transition: color 0.2s ease;
}

.back_link:hover {
    color: #ffffff;
}

.back_link svg {
    width: 1vw;
    height: 1vw;
}

.single_whitepaper_header h1 {
    font-size: 2.8vw;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1vw;
    line-height: 1.3;
}

.publish_date {
    font-size: 0.95vw;
    color: rgba(255, 255, 255, 0.6);
}

.header_download_btn {
    display: inline-block;
    margin-top: 1.5vw;
    padding: 0.8vw 2vw;
    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 0.4vw;
    font-size: 1vw;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header_download_btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.single_whitepaper_content {
    padding: 4vw 0 8vw;
}

.single_whitepaper_content_inner {
    max-width: 55vw;
    margin: 0 auto;
}

.whitepaper_featured_image {
    margin-bottom: 3vw;
    border-radius: 1vw;
    overflow: hidden;
}

.whitepaper_featured_image img {
    width: 100%;
    height: auto;
    display: block;
}

.whitepaper_body {
    font-size: 1.1vw;
    line-height: 1.8;
    color: #333;
}

.whitepaper_body h2 {
    font-size: 1.8vw;
    font-weight: 600;
    margin-top: 2.5vw;
    margin-bottom: 1vw;
    color: #1a1a1a;
}

.whitepaper_body h3 {
    font-size: 1.4vw;
    font-weight: 600;
    margin-top: 2vw;
    margin-bottom: 0.8vw;
    color: #1a1a1a;
}

.whitepaper_body p {
    margin-bottom: 1.5vw;
}

.whitepaper_body ul,
.whitepaper_body ol {
    margin-bottom: 1.5vw;
    padding-left: 2vw;
}

.whitepaper_body li {
    margin-bottom: 0.5vw;
}

/* Download Section */
.whitepaper_download_section {
    margin-top: 4vw;
    padding-top: 4vw;
    border-top: 1px solid #e0e0e0;
}

.download_section_inner {
    background: #ffffff;
    border-radius: 1.2vw;
    padding: 3vw;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.download_section_inner h2 {
    font-size: 1.8vw;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5vw;
}

.download_section_inner > p {
    font-size: 1vw;
    color: #666;
    margin-bottom: 2vw;
}

.whitepaper_form .form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vw;
}

.whitepaper_form .form_field {
    margin-bottom: 1.5vw;
}

.whitepaper_form .submit_btn {
    width: auto;
    padding: 1vw 3vw;
    margin-top: 0.5vw;
}

/* Tablet Styles */
@media (min-width: 501px) and (max-width: 1024px) {
    .whitepaper-banner {
        padding-top: 14vw;
        padding-bottom: 5vw;
    }

    .whitepaper-banner h2 {
        font-size: 4.5vw;
        margin-bottom: 1.5vw;
    }

    .whitepaper-banner p {
        font-size: 2vw;
        max-width: 65vw;
        line-height: 1.5;
    }

    .whitepaper_container {
        margin-left: 6vw;
        margin-right: 6vw;
        margin-top: 5vw;
        margin-bottom: 10vw;
    }

    .whitepaper_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }

    .whitepaper_card {
        border-radius: 2vw;
    }

    .whitepaper_card_image {
        height: 22vw;
    }

    .whitepaper_card_content {
        padding: 2.5vw 3vw 3vw;
    }

    .whitepaper_card_content h3 {
        font-size: 2.2vw;
        margin-bottom: 1.2vw;
    }

    .whitepaper_card_content p {
        font-size: 1.6vw;
        margin-bottom: 2vw;
        line-height: 1.5;
    }

    .download_btn {
        font-size: 1.5vw;
        padding: 1.2vw 2.5vw;
    }

    .whitepaper_modal_content {
        max-width: 50vw;
        padding: 4vw 5vw;
        border-radius: 2vw;
    }

    .whitepaper_modal_content h3 {
        font-size: 2.8vw;
    }

    .modal_subtitle {
        font-size: 1.8vw;
    }

    .form_field label {
        font-size: 1.6vw;
    }

    .form_field input {
        padding: 1.5vw 2vw;
        font-size: 1.6vw;
        border-radius: 0.8vw;
    }

    .submit_btn {
        padding: 1.8vw;
        font-size: 1.8vw;
        border-radius: 0.8vw;
    }

    .modal_close {
        font-size: 3.5vw;
    }

    /* Single Whitepaper - Tablet */
    .single_whitepaper_header {
        padding-top: 12vw;
        padding-bottom: 4vw;
    }

    .single_whitepaper_header_inner {
        max-width: 85vw;
    }

    .back_link {
        font-size: 1.5vw;
        gap: 0.8vw;
        margin-bottom: 2vw;
    }

    .back_link svg {
        width: 1.6vw;
        height: 1.6vw;
    }

    .single_whitepaper_header h1 {
        font-size: 3.5vw;
        line-height: 1.3;
    }

    .publish_date {
        font-size: 1.5vw;
    }

    .header_download_btn {
        margin-top: 2vw;
        padding: 1.3vw 3vw;
        font-size: 1.6vw;
        border-radius: 0.6vw;
    }

    .single_whitepaper_content {
        padding: 4vw 0 8vw;
    }

    .single_whitepaper_content_inner {
        max-width: 85vw;
    }

    .whitepaper_body {
        font-size: 1.8vw;
        line-height: 1.8;
    }

    .whitepaper_body h2 {
        font-size: 2.6vw;
        margin-top: 3vw;
        margin-bottom: 1.5vw;
    }

    .whitepaper_body h3 {
        font-size: 2.1vw;
        margin-top: 2.5vw;
        margin-bottom: 1.2vw;
    }

    .whitepaper_body p {
        margin-bottom: 2vw;
    }

    .whitepaper_body ul,
    .whitepaper_body ol {
        padding-left: 2.5vw;
        margin-bottom: 2vw;
    }

    .whitepaper_body li {
        margin-bottom: 0.8vw;
    }

    .whitepaper_download_section {
        margin-top: 4vw;
        padding-top: 4vw;
    }

    .download_section_inner {
        padding: 3.5vw;
        border-radius: 1.5vw;
    }

    .download_section_inner h2 {
        font-size: 2.5vw;
        margin-bottom: 0.8vw;
    }

    .download_section_inner > p {
        font-size: 1.6vw;
        margin-bottom: 2.5vw;
    }

    .whitepaper_form .form_row {
        gap: 2vw;
    }

    .whitepaper_form .form_field {
        margin-bottom: 2vw;
    }

    .whitepaper_form .form_field label {
        font-size: 1.5vw;
        margin-bottom: 0.6vw;
    }

    .whitepaper_form .form_field input {
        padding: 1.2vw 1.5vw;
        font-size: 1.5vw;
        border-radius: 0.6vw;
    }

    .whitepaper_form .submit_btn {
        padding: 1.3vw 3.5vw;
        font-size: 1.6vw;
    }

    .read_more_link {
        font-size: 1.5vw;
        padding: 1.2vw 2.5vw;
        border-radius: 0.6vw;
    }

    .no_whitepapers {
        font-size: 2vw;
        padding: 6vw;
    }
}

/* Mobile Styles */
@media (max-width: 500px) {
    .whitepaper-banner {
        padding-top: 25vw;
        padding-bottom: 10vw;
    }

    .whitepaper-banner h2 {
        font-size: 7vw;
        margin-bottom: 2vw;
    }

    .whitepaper-banner p {
        font-size: 3.5vw;
        max-width: 85vw;
        padding: 0;
        line-height: 1.5;
    }

    .whitepaper_container {
        margin-left: 4vw;
        margin-right: 4vw;
        margin-top: 6vw;
        margin-bottom: 12vw;
    }

    .whitepaper_grid {
        grid-template-columns: 1fr;
        gap: 5vw;
    }

    .whitepaper_card {
        border-radius: 3vw;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .whitepaper_card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .whitepaper_card:active {
        transform: scale(0.98);
    }

    .whitepaper_card_image {
        height: 45vw;
    }

    .whitepaper_card:hover .whitepaper_card_image img {
        transform: none;
    }

    .whitepaper_placeholder {
        height: 45vw;
    }

    .whitepaper_placeholder svg {
        width: 12vw;
        height: 12vw;
    }

    .whitepaper_card_content {
        padding: 4vw 5vw 5vw;
    }

    .whitepaper_card_content h3 {
        font-size: 4.5vw;
        margin-bottom: 2vw;
        -webkit-line-clamp: 2;
        line-height: 1.3;
    }

    .whitepaper_card_content p {
        font-size: 3.5vw;
        margin-bottom: 3.5vw;
        -webkit-line-clamp: 2;
        line-height: 1.5;
    }

    .download_btn {
        font-size: 3.5vw;
        padding: 3vw 6vw;
        border-radius: 1.5vw;
        width: 100%;
        text-align: center;
    }

    .no_whitepapers {
        padding: 10vw;
        font-size: 4vw;
        line-height: 1.5;
    }

    .whitepaper_modal_content {
        max-width: 90vw;
        padding: 8vw;
        border-radius: 4vw;
        margin: 0 5vw;
    }

    .whitepaper_modal_content h3 {
        font-size: 5.5vw;
        margin-bottom: 2vw;
    }

    .modal_subtitle {
        font-size: 3.8vw;
        margin-bottom: 5vw;
        padding-bottom: 4vw;
    }

    .form_field {
        margin-bottom: 4vw;
    }

    .form_field label {
        font-size: 3.5vw;
        margin-bottom: 1.5vw;
    }

    .form_field input {
        padding: 3.5vw 4vw;
        font-size: 3.8vw;
        border-radius: 2vw;
    }

    #formResponse {
        margin-bottom: 3vw;
        font-size: 3.5vw;
        min-height: 4vw;
    }

    .submit_btn {
        padding: 4vw;
        font-size: 4vw;
        border-radius: 2vw;
    }

    .modal_close {
        top: 3vw;
        right: 4vw;
        font-size: 8vw;
    }

    /* Single Whitepaper - Mobile */
    .single_whitepaper_header {
        padding-top: 22vw;
        padding-bottom: 6vw;
    }

    .single_whitepaper_header_inner {
        max-width: 100%;
        padding: 0 5vw;
        margin: 0;
    }

    .back_link {
        font-size: 3.2vw;
        gap: 1.5vw;
        margin-bottom: 3vw;
        padding: 1.5vw 0;
    }

    .back_link svg {
        width: 3.5vw;
        height: 3.5vw;
    }

    .single_whitepaper_header h1 {
        font-size: 6vw;
        margin-bottom: 2vw;
        line-height: 1.3;
    }

    .publish_date {
        font-size: 3.2vw;
    }

    .header_download_btn {
        display: inline-block;
        margin-top: 4vw;
        padding: 3vw 7vw;
        font-size: 3.5vw;
        border-radius: 1.5vw;
        font-weight: 600;
    }

    .single_whitepaper_content {
        padding: 6vw 5vw 12vw;
    }

    .single_whitepaper_content_inner {
        max-width: 100%;
    }

    .whitepaper_featured_image {
        margin-bottom: 5vw;
        border-radius: 2vw;
    }

    .whitepaper_body {
        font-size: 3.8vw;
        line-height: 1.7;
    }

    .whitepaper_body h2 {
        font-size: 5vw;
        margin-top: 5vw;
        margin-bottom: 2.5vw;
        line-height: 1.3;
    }

    .whitepaper_body h3 {
        font-size: 4.2vw;
        margin-top: 4vw;
        margin-bottom: 2vw;
        line-height: 1.3;
    }

    .whitepaper_body h4 {
        font-size: 3.8vw;
        margin-top: 3vw;
        margin-bottom: 1.5vw;
    }

    .whitepaper_body p {
        margin-bottom: 3.5vw;
    }

    .whitepaper_body ul,
    .whitepaper_body ol {
        padding-left: 4vw;
        margin-bottom: 3.5vw;
    }

    .whitepaper_body li {
        margin-bottom: 1.5vw;
        line-height: 1.6;
    }

    .whitepaper_body img {
        max-width: 100%;
        height: auto;
        border-radius: 2vw;
        margin: 3vw 0;
    }

    .whitepaper_body blockquote {
        margin: 4vw 0;
        padding: 3vw 4vw;
        border-left: 1vw solid #1e1614;
        background: #f9f9f9;
        font-style: italic;
    }

    .whitepaper_download_section {
        margin-top: 6vw;
        padding-top: 6vw;
    }

    .download_section_inner {
        padding: 5vw;
        border-radius: 3vw;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    }

    .download_section_inner h2 {
        font-size: 5vw;
        margin-bottom: 1.5vw;
        line-height: 1.3;
    }

    .download_section_inner > p {
        font-size: 3.5vw;
        margin-bottom: 4vw;
        line-height: 1.5;
    }

    .whitepaper_form .form_row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .whitepaper_form .form_field {
        margin-bottom: 3.5vw;
    }

    .whitepaper_form .form_field label {
        font-size: 3.2vw;
        margin-bottom: 1.2vw;
    }

    .whitepaper_form .form_field input {
        padding: 3vw 3.5vw;
        font-size: 3.5vw;
        border-radius: 1.5vw;
    }

    .whitepaper_form #formResponse {
        margin-bottom: 2.5vw;
        font-size: 3.2vw;
    }

    .whitepaper_form .submit_btn {
        width: 100%;
        padding: 3.5vw;
        font-size: 3.5vw;
        border-radius: 1.5vw;
        margin-top: 1vw;
    }

    .read_more_link {
        font-size: 3.5vw;
        padding: 2.5vw 5vw;
        border-radius: 1.5vw;
        display: inline-block;
        text-align: center;
    }

    .whitepaper_card:hover .read_more_link {
        background: #1e1614;
    }
}
