/* Documents Slideshow - Professional Enterprise Style */

.legal-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.legal-section .container {
    position: relative;
    z-index: 2;
}

.section-heading {
    margin-bottom: 60px;
}

.heading-title {
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #362921;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heading-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Documents Slideshow Container */
.documents-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.documents-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 40px 20px;
}

.documents-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    padding: 0 20px;
}

/* Document Slide */
.document-slide {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 250px;
}

.document-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.document-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.document-card:active {
    transform: translateY(-5px);
}

/* Document Thumbnail */
.document-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.document-icon {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.document-card:hover .document-image {
    transform: scale(1.1);
}

/* Document Overlay */
.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-card:hover .document-overlay {
    opacity: 1;
}

.document-overlay-content {
    text-align: center;
    color: white;
}

.document-overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.document-overlay-content span {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Document Info */
.document-info {
    padding: 20px;
}

.document-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.document-extension {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.document-size {
    color: #6c757d;
    font-weight: 500;
}

/* Navigation */
.documents-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 30px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #007bff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Dots Navigation */
.documents-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #adb5bd;
}

.dot.active {
    background: #007bff;
    transform: scale(1.2);
}

/* Loading Animation */
.documents-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .document-slide {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .heading-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .legal-section {
        padding: 60px 0;
    }
    
    .heading-title {
        font-size: 1.8rem;
    }
    
    .documents-container {
        padding: 30px 15px;
    }
    
    .document-slide {
        flex: 0 0 calc(50% - 15px);
        min-width: 200px;
    }
    
    .documents-track {
        gap: 20px;
        padding: 0 15px;
    }
    
    .documents-navigation {
        gap: 20px;
        margin-top: 30px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .document-slide {
        flex: 0 0 100%;
        min-width: 250px;
    }
    
    .heading-title {
        font-size: 1.5rem;
    }
    
    .documents-container {
        padding: 20px 10px;
    }
    
    .documents-track {
        gap: 15px;
        padding: 0 10px;
    }
    
    .document-thumbnail {
        height: 150px;
    }
    
    .document-info {
        padding: 15px;
    }
    
    .document-title {
        font-size: 0.9rem;
    }
}

/* Accessibility */
.document-card:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.nav-btn:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .documents-navigation,
    .document-overlay {
        display: none;
    }
    
    .document-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .document-card {
        border: 2px solid #000;
    }
    
    .document-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .nav-btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .documents-track,
    .document-card,
    .document-image,
    .document-overlay,
    .nav-btn {
        transition: none;
    }
    
    .documents-container::before {
        animation: none;
    }
} 