/* Technical Guidance Styles */
.technical-guidance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.guidance-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.guidance-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.guidance-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search and Filters */
.guidance-controls {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.guidance-search {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.guidance-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.guidance-search input:focus {
    outline: none;
    border-color: #045744;
    box-shadow: 0 0 0 3px rgba(4, 87, 68, 0.1);
}

.guidance-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.guidance-filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.guidance-filters select:focus {
    outline: none;
    border-color: #045744;
}

/* Featured Documents */
.featured-documents {
    margin-bottom: 50px;
}

.featured-documents h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.featured-document-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.featured-document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.featured-document-header {
    background: linear-gradient(135deg, #045744, #0a8a6f);
    color: white;
    padding: 20px;
    text-align: center;
}

.featured-document-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.featured-document-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.featured-document-category {
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-document-content {
    padding: 25px;
}

.featured-document-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.featured-document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.featured-document-actions {
    display: flex;
    gap: 10px;
}

.btn-download {
    background: #045744;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: #0a8a6f;
    color: white;
}

.btn-preview {
    background: transparent;
    color: #045744;
    border: 2px solid #045744;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-preview:hover {
    background: #045744;
    color: white;
}

/* Document Categories */
.document-categories {
    margin-bottom: 50px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.tab-btn:hover {
    background: #045744;
    color: white;
    border-color: #045744;
}

.tab-btn.active {
    background: #045744;
    color: white;
    border-color: #045744;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.document-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-icon {
    font-size: 1.5rem;
    color: #045744;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.document-content {
    padding: 20px;
}

.document-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download-small {
    background: #045744;
    color: white;
    border: none;
}

.btn-download-small:hover {
    background: #0a8a6f;
    color: white;
}

.btn-preview-small {
    background: transparent;
    color: #045744;
    border: 1px solid #045744;
}

.btn-preview-small:hover {
    background: #045744;
    color: white;
}

/* Quick Access */
.quick-access {
    margin-bottom: 50px;
}

.quick-access h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-access-item {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.quick-access-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.quick-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.quick-access-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.quick-access-item p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
}

.quick-link {
    color: #045744;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.quick-link:hover {
    color: #0a8a6f;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #e0e0e0;
}

.newsletter-signup h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.newsletter-signup p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guidance-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .guidance-search {
        min-width: auto;
    }
    
    .guidance-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .technical-guidance-container {
        padding: 0 15px;
    }
    
    .guidance-header h2 {
        font-size: 2rem;
    }
    
    .featured-document-content,
    .document-content {
        padding: 15px;
    }
    
    .quick-access-item {
        padding: 20px 15px;
    }
    
    .newsletter-signup {
        padding: 30px 20px;
    }
    
    .newsletter-signup form div {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #045744;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* File Type Icons */
.file-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.file-icon.pdf::before {
    content: "📄";
    color: #e74c3c;
}

.file-icon.doc::before {
    content: "📝";
    color: #3498db;
}

.file-icon.xls::before {
    content: "📊";
    color: #27ae60;
}

.file-icon.ppt::before {
    content: "📊";
    color: #f39c12;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.guidance-search input:focus,
.guidance-filters select:focus,
.tab-btn:focus,
.btn-download:focus,
.btn-preview:focus {
    outline: 2px solid #045744;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .guidance-controls,
    .newsletter-signup,
    .btn-download,
    .btn-preview {
        display: none;
    }
    
    .featured-document-card,
    .document-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
