/* Power Supply Procurement Plan Section */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;600;700&display=swap');
#pspp { 
    background:#dcedc8;
    padding: 100px 2rem 4rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pspp-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Scroll Animation */
.pspp-header,
.pspp-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.pspp-header.reveal,
.pspp-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.pspp-card.reveal {
    transition-delay: 0.2s;
}

.pspp-header {
    margin-bottom: 4rem;
    text-align: center;
}

.pspp-header h2 {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pspp-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;
}

/* PSPP Card */
.pspp-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pspp-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.pspp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pspp-card-image {
    width: 100%;
    height: 330px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.pspp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pspp-card:hover .pspp-card-image img {
    transform: scale(1.1);
}

.pspp-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pspp-card:hover .pspp-card-overlay {
    opacity: 1;
}

/* PDF Badge */
.pspp-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pspp-badge i {
    font-size: 1rem;
}

.pspp-card-content {
    padding: 1.75rem;
}

.pspp-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b5e20;
    margin-bottom: 0.75rem;
}

.pspp-card-subtitle {
    font-size: 0.95rem;
    color: #558b2f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pspp-card-subtitle i {
    color: #dc3545;
}

/* Download Hint */
.pspp-download-hint {
    background: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #2e7d32;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pspp-card:hover .pspp-download-hint {
    background: #2e7d32;
    color: white;
}

/* ================= PSPP MODAL STYLES ================= */
.pspp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.pspp-modal.active {
    display: block;
}

.pspp-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pspp-modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pspp-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pspp-modal-header h2 i {
    font-size: 1.3rem;
}

.pspp-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pspp-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.pspp-modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* Download Button */
.pspp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2e7d32;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pspp-download-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* PDF Preview - CENTERED */
.pspp-pdf-preview {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    width: 100%;
}

.pspp-pdf-preview iframe {
    width: 100%;
    height: 60vh;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Fallback */
.pspp-fallback {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pspp-fallback p {
    margin: 0;
    font-size: 0.9rem;
}

.pspp-fallback i {
    color: #2e7d32;
}

.pspp-fallback a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: underline;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 2.5rem;
}

.view-all-btn {
    background: transparent;
    border: 2px solid #fbc02d;
    color: #fbc02d;
    padding: 0.8rem 3rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn:hover {
    background: #fbc02d;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(251, 192, 45, 0.3);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* Responsive */

@media (max-width: 768px) {
    .pspp-header h2 {
        font-size: 0.85rem;
    }
    .pspp-header p {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .pspp-card-image {
        height: 240px;
    }
    
    .pspp-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .pspp-pdf-preview {
        min-height: 50vh;
    }
    
    .pspp-pdf-preview iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .pspp-header h2 {
        font-size: 0.85rem;
    }
    .pspp-header p {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    .pspp-card-image {
        height: 230px;
    }
    
    .pspp-card-content {
        padding: 1.25rem;
    }
}