        html { font-size: clamp(14px, 2.5vw, 16px); }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background:#dcedc8;
            font-family: 'Source Sans Pro', sans-serif;
            overflow-x: clip;
        }
        
        .main-content {
            margin-top: clamp(70px, 10vh, 90px);
            padding: clamp(2.5rem, 4vw, 3rem) clamp(2rem, 3vw, 2rem);
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        @media (min-width: 600px) {
            .main-content {
                padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
            }
        }

        @media (min-width: 769px) {
            .main-content {
                padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
                margin-top: 80px;
                padding-top: clamp(2rem, 3vw, 3rem);
            }
        }

        .page-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .page-header h1 {
            display: block;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.25em;
            color: #555;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }

        .page-header p {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2rem, 5vw, 2.5rem);
            color: #1A1A1A;
            font-weight: 800;
            line-height: 1.25;
            margin-bottom: 1.5rem;
        }

        .rph-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1rem;
        }

        .rph-item {
            cursor: pointer;
            padding: clamp(1rem, 2.5vw, 1.5rem);
            background: white;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .rph-item:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .rph-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }

        .rph-item-title {
            font-size: clamp(1.1rem, 3vw, 1.3rem);
            font-weight: 600;
            color: #1b5e20;
            margin: 0;
        }

        .pdf-badge {
            background: #dc3545;
            color: white;
            padding: clamp(0.2rem, 0.5vw, 0.25rem) clamp(0.6rem, 1vw, 0.75rem);
            border-radius: 4px;
            font-size: clamp(0.7rem, 1.2vw, 0.8rem);
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .rph-ref {
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            color: #666;
            font-weight: 500;
        }

        .rph-description {
            font-size: clamp(0.85rem, 2vw, 0.95rem);
            color: #555;
            margin: 0.5rem 0;
        }

        .rph-preview-hint {
            color: #2e7d32;
            font-weight: 500;
            font-size: clamp(0.8rem, 2vw, 0.85rem);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .rph-preview-hint i {
            font-size: clamp(0.75rem, 2vw, 0.85rem);
        }

        .rph-item:hover .rph-preview-hint {
            color: #1b5e20;
        }

           /* ================= SCROLL ANIMATIONS ================= */
    .rph-item {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        cursor: pointer;
        padding: clamp(1rem, 2vw, 1.25rem);
        background: white;
        border-radius: 8px;
        transition: all 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .rph-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for items */
    .rph-item:nth-child(1) { transition-delay: 0.1s; }
    .rph-item:nth-child(2) { transition-delay: 0.2s; }
    .rph-item:nth-child(3) { transition-delay: 0.3s; }
    .rph-item:nth-child(4) { transition-delay: 0.4s; }
    .rph-item:nth-child(5) { transition-delay: 0.5s; }
    .rph-item:nth-child(6) { transition-delay: 0.6s; }

    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hover effect enhancement */
    .rph-item {
        position: relative;
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        position: relative;
    }

    .rph-item:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 8px 15px rgba(46, 125, 50, 0.2);
    }

    .rph-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px;
        background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .rph-item:hover::before {
        opacity: 0.05;
    }

    /* PDF Badge enhancement */
   .pdf-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

    .rph-item:hover .pdf-badge {
        background: #b02a37;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }

    /* Preview hint enhancement */
    .rph-preview-hint {
        transition: all 0.3s ease;
        color: #2e7d32;
        font-weight: 500;
        font-size: clamp(0.8rem, 2vw, 0.85rem);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .rph-item:hover .rph-preview-hint {
        transform: translateX(5px);
        color: #1b5e20;
    }

    /* Title enhancement */
    .rph-item-title {
        transition: all 0.3s ease;
        padding-right: 5rem;
        
    }

    .rph-item:hover .rph-item-title {
        color: #2e7d32;
    }

    /* Loading animation for PDF modal */
    .rph-pdf-preview {
        position: relative;
        background: #f5f5f5;
        border-radius: 4px;
        overflow: hidden;
    }

    .rph-pdf-preview::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #2e7d32;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }

    .rph-pdf-preview.loading::before {
        opacity: 1;
    }

    .rph-pdf-preview.loading iframe {
        opacity: 0.3;
    }

    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* Modal enhancements */
    .pspp-modal-content {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        animation: modalFadeIn 0.3s ease;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .rph-modal-header {
        background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
        color: white;
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .rph-modal-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
    }

    .rph-modal-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .rph-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    .rph-download-btn {
        padding: 0.6rem 1.8rem;
        background: #2e7d32;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .rph-download-btn:hover {
        background: #1b5e20;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    }

    .rph-download-btn:active {
        transform: translateY(0);
    }

    /* Responsive animations */
    @media (max-width: 768px) {
        .rph-item {
            padding: 1.25rem;
        }
        
        .rph-item:hover {
            transform: translateY(-3px) scale(1.01);
        }
        
        .rph-item-title {
            font-size: 1.1rem;
        }
    }

    @media (max-width: 480px) {
        .rph-item {
            padding: 1rem;
        }
        
        .rph-item:hover {
            transform: translateY(-2px) scale(1.005);
        }
        
        .rph-item-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }
        
        .pdf-badge {
            align-self: flex-start;
        }
    }

    /* Default (desktop) - already set inline */
/* height: 97vh on modal, 75vh on iframe */

/* Tablet */
@media (max-width: 768px) {
    .pspp-modal-content {
        height: 95vh !important;
        margin: 10px auto !important;
    }

    #rphPdfFrame {
        height: 65vh !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pspp-modal-content {
        height: 75vh !important;
        margin: 5px auto !important;
    }

    #rphPdfFrame {
        height: 55vh !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .pspp-modal-content {
        height: 75vh !important;
        margin: 5px auto !important;
    }

    #rphPdfFrame {
        height: 45vh !important;
    }
}

    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
        .rph-item:hover {
            transform: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        
        .rph-item:active {
            transform: scale(0.99);
            background: #f8f9fa;
        }
    }