.section-spacing {
    margin-top: 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.doc-card {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    z-index: 2;
}

.card-image, .pdf-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.pdf-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.download-action svg {
    color: #2ecc71;
}

.fullscreen-action svg {
    color: #3498db;
}

.pdf-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: 90%;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);  /* Just for debugging */
    padding: 20px;
    border-radius: 8px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;  /* Make sure the image is displayed */
    margin: 0 auto;  /* Center the image */
}


#pdfViewer {
    width: 100%;
    height: 80vh;
    border: none;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.download-btn {
    position: absolute;
    top: 1rem;
    right: 4rem;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background: #2980b9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Error State */
.pdf-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .doc-card {
        aspect-ratio: 3/2;
    }

    .modal-content {
        padding: 10px;
        width: 95%;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.image-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.action-btn {
    
    color: #fff;
    padding: 5px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 5px 10px;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
}

.modal-content .close-modal.inside {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Document Requirements Section Styles */
.doc-requirements-section {
    padding: 2rem 1.25rem;
    background: linear-gradient(135deg, hsl(210, 50%, 98%) 0%, #eef2f7 100%);
    border-radius: 20px;
}

.requirements-container {
    max-width: 1400px;
    margin: 0 auto;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.requirement-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #211f50, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.requirement-card:hover::before {
    opacity: 1;
}

.requirement-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.requirements-note {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.note-title {
    color: #b28704;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-content {
    color: #666;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .requirement-card {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .doc-requirements-section {
        padding: 30px 15px;
        margin-top: 40px;
    }
}


