/* Screen Styles - Hide Print Elements */
.print-only {
    display: none;
}

/* Print Styles */
@media print {

    /* Global Reset for Print */
    @page {
        margin: 0;
        /* Full bleed for backgrounds */
        size: A4;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        margin: 0;
        padding: 0;
        font-family: 'Inter', sans-serif;
        color: #1C394B;
        background: white;
    }

    /* Hide Screen-Only Elements */
    nav,
    .hero-actions,
    .btn,
    .nav-links,
    .mobile-menu-btn,
    .tabs,
    #scroll-top-btn,
    .prop-header,
    .hero {
        display: none !important;
    }

    /* --- COVER PAGE --- */
    .print-cover-page {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        position: relative;
        page-break-after: always;
        background: linear-gradient(135deg, #1C394B 0%, #0F232E 100%);
        color: white;
        overflow: hidden;
    }

    /* Geometric Pattern for Cover */
    .print-cover-page::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image:
            radial-gradient(circle at 10% 20%, rgba(70, 190, 194, 0.1) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(70, 190, 194, 0.1) 0%, transparent 20%),
            linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.03) 75%, rgba(255, 255, 255, 0.03));
        background-size: 100% 100%, 100% 100%, 60px 60px;
        z-index: 1;
    }

    .cover-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 40px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        max-width: 80%;
    }

    .cover-logo {
        font-size: 2rem;
        font-weight: bold;
        color: #46BEC2;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .cover-title {
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 20px;
        font-weight: 800;
    }

    .cover-subtitle {
        font-size: 1.5rem;
        opacity: 0.9;
        font-weight: 300;
        margin-bottom: 40px;
    }

    .cover-meta {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
        font-size: 0.9rem;
        opacity: 0.7;
    }

    /* --- TABLE OF CONTENTS PAGE --- */
    .print-toc-page {
        display: block !important;
        height: 100vh;
        padding: 60px 50px;
        background: white;
        page-break-after: always;
        position: relative;
    }

    /* Geometric Sidebar for TOC */
    .print-toc-page::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 30px;
        background: repeating-linear-gradient(45deg,
                #1C394B,
                #1C394B 10px,
                #46BEC2 10px,
                #46BEC2 20px);
    }

    .toc-title {
        font-size: 2.5rem;
        color: #1C394B;
        border-bottom: 4px solid #46BEC2;
        padding-bottom: 10px;
        margin-bottom: 40px;
    }

    .toc-list {
        list-style: none;
        padding: 0;
    }

    .toc-item {
        font-size: 1.2rem;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px dotted #ccc;
        padding-bottom: 5px;
    }

    .toc-item span:last-child {
        font-weight: bold;
        color: #46BEC2;
    }

    /* --- CONTENT PAGES --- */
    .container {
        max-width: 100% !important;
        padding: 40px 50px !important;
        /* Margins for content */
    }

    /* Page Borders / Geometric Header & Background for Content */
    section {
        position: relative;
        page-break-before: always;
        padding-top: 60px !important;
        border-top: 5px solid #1C394B;
        /* Subtle Geometric Background Pattern for Content Pages */
        background-image:
            radial-gradient(#1C394B 1px, transparent 1px),
            radial-gradient(#1C394B 1px, transparent 1px);
        background-size: 20px 20px;
        background-position: 0 0, 10px 10px;
        background-color: white !important;
        /* Ensure base is white */
        opacity: 1;
    }

    /* Make the pattern very subtle */
    section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        opacity: 0.96;
        /* 96% white overlay = 4% visible dots */
        z-index: -1;
    }

    /* Ensure content is above the background overlay */
    .container {
        position: relative;
        z-index: 2;
    }

    section::before {
        content: "Proposed Strategy & Plan";
        position: absolute;
        top: 10px;
        right: 0;
        font-size: 0.8rem;
        color: #46BEC2;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
    }

    /* Typography Fixes for Print */
    h2 {
        font-size: 24pt !important;
        color: #1C394B !important;
        margin-top: 0 !important;
    }

    p,
    li {
        font-size: 11pt !important;
        line-height: 1.6;
        color: #333;
    }

    /* Expand Content */
    .accordion-panel {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
    }

    .accordion::after {
        display: none !important;
    }

    .tab-content {
        display: block !important;
    }

    /* Hide buttons/links */
    a[href^="#"],
    .sum-link,
    .btn {
        display: none !important;
    }
}