/* Regulatory Updates Styles */
.regulatory-updates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.updates-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.updates-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.updates-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Alert Banner */
.alert-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.alert-content p {
    margin: 0 0 10px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.alert-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.alert-link:hover {
    border-bottom-color: white;
    color: white;
}

/* Search and Filters */
.updates-controls {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.updates-search {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.updates-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.updates-search input:focus {
    outline: none;
    border-color: #045744;
    box-shadow: 0 0 0 3px rgba(4, 87, 68, 0.1);
}

.updates-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.updates-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;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    pointer-events: auto;
    z-index: 1;
    position: relative;
}

.updates-filters select:hover {
    border-color: #045744;
}

.updates-filters select:focus {
    outline: none;
    border-color: #045744;
    box-shadow: 0 0 0 3px rgba(4, 87, 68, 0.1);
}

.updates-filters select option {
    padding: 8px;
    cursor: pointer;
}

/* Timeline */
.timeline-container {
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #045744, #0a8a6f);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #045744;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #045744;
}

.timeline-item.critical::before {
    background: #e74c3c;
    box-shadow: 0 0 0 3px #e74c3c;
}

.timeline-item.high::before {
    background: #f39c12;
    box-shadow: 0 0 0 3px #f39c12;
}

.timeline-item.medium::before {
    background: #3498db;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-item.low::before {
    background: #95a5a6;
    box-shadow: 0 0 0 3px #95a5a6;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Expandable Card Styles */
.expandable-card {
    transition: all 0.3s ease;
}

.expandable-header {
    user-select: none;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.expandable-header:hover {
    opacity: 0.8;
}

.expandable-header .timeline-title {
    flex: 1;
    margin: 0;
}

.expandable-card.expanded .timeline-details {
    max-height: 5000px !important;
}

.expand-icon {
    transition: transform 0.3s ease;
    color: #045744;
    font-weight: bold;
}

.timeline-summary {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.expandable-card.expanded .timeline-summary {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.timeline-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.timeline-priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-priority.critical {
    background: #e74c3c;
    color: white;
}

.timeline-priority.high {
    background: #f39c12;
    color: white;
}

.timeline-priority.medium {
    background: #3498db;
    color: white;
}

.timeline-priority.low {
    background: #95a5a6;
    color: white;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.timeline-tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
}

.timeline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timeline-btn-primary {
    background: #045744;
    color: white;
    border: none;
}

.timeline-btn-primary:hover {
    background: #0a8a6f;
    color: white;
}

.timeline-btn-secondary {
    background: transparent;
    color: #045744;
    border: 2px solid #045744;
}

.timeline-btn-secondary:hover {
    background: #045744;
    color: white;
}

/* Quick Stats */
.quick-stats {
    margin-bottom: 50px;
}

.quick-stats h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-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;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #045744;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 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) {
    .updates-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .updates-search {
        min-width: auto;
    }
    
    .updates-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        left: -5px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-meta {
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alert-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .regulatory-updates-container {
        padding: 0 15px;
    }
    
    .updates-header h2 {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-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;
}

/* Enhanced Timeline Item Styles */
.timeline-content {
    position: relative;
}

.deadline-info {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Badge Enhancement */
.action-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Impact Badge */
.impact-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Resources Section */
.resources-section {
    transition: transform 0.3s ease;
}

.resources-section:hover {
    transform: translateY(-2px);
}

/* Value Proposition Box */
.value-proposition {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.value-proposition:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Enhanced Button Styles */
.timeline-btn {
    position: relative;
    overflow: hidden;
}

.timeline-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.timeline-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Deadline Urgency Indicator */
.deadline-info[style*="background: #fff3cd"] {
    border-left-color: #ffc107 !important;
    animation: urgencyPulse 2s infinite;
}

@keyframes urgencyPulse {
    0%, 100% {
        border-left-width: 4px;
    }
    50% {
        border-left-width: 6px;
    }
}

/* 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 */
.updates-search input:focus,
.updates-filters select:focus,
.timeline-btn:focus {
    outline: 2px solid #045744;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .updates-controls,
    .newsletter-signup,
    .alert-banner {
        display: none;
    }
    
    .timeline-content {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .timeline::before {
        background: #ccc;
    }
}
