/* Global Styles */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #eef2f5 0%, #e8ecf0 100%);
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.main-content {
    padding: 3rem 1rem;
    flex: 1;
    padding-bottom: 12rem;
    position: relative;
}

/* Ensure proper spacing for emergency preparedness section */
.emergency-preparedness-card {
    margin-bottom: 8rem !important;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.combined-stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.combined-stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.combined-stats-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
    padding: 1rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

/* Responsive design for the heading */
@media (max-width: 768px) {
    .combined-stats-title {
        font-size: 2rem;
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .combined-stats-title {
        font-size: 1.75rem;
        padding: 0.5rem 0;
    }
}

.stats-section, .biggest-section {
    margin-bottom: 1rem;
}

.stats-section:last-child, .biggest-section:last-child {
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SEO-only headings - hidden visually but present for search engines */
.filter-section-title,
.map-section-title,
.table-section-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0;
}

.stats-section .section-subtitle::before {
    content: "📊";
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.recent-earthquakes-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.recent-earthquakes-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recent-earthquakes-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-earthquakes-title::before {
    content: "🌍";
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* Filter Controls Styles */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-width: 160px;
}

.filter-select:hover {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 
        0 6px 16px rgba(52, 152, 219, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.25),
        0 6px 16px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}



/* Mobile responsive filter controls */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    

    
    .filter-summary {
        margin-top: 0.75rem;
        padding: 0.5rem;
    }
    
    .summary-content {
        gap: 0.2rem;
    }
    
    .summary-text {
        font-size: 0.9rem;
    }
    
    .summary-hidden {
        font-size: 0.8rem;
    }
    
    .table-count-display {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }
    
    .count-text {
        font-size: 0.85rem;
    }
}

/* Filter Summary and Count Display Styles */
.filter-summary {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 6px;
    border: 1px solid #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
}

.summary-text {
    font-weight: 600;
    color: #1565c0;
    font-size: 0.95rem;
}

.summary-hidden {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.table-count-display {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.count-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.count-text {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.biggest-section .section-subtitle::before {
    content: "⚡";
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
}

.stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(52, 152, 219, 0.3);
}

.stat-item:hover::before {
    animation: shimmer 1.5s ease-in-out infinite;
}

.stat-period {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.biggest-earthquakes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.biggest-earthquake-item {
    background: linear-gradient(135deg, #fff6f6 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #d0021b;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 16px rgba(208, 2, 27, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.biggest-earthquake-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(208, 2, 27, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.biggest-earthquake-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #d0021b, #ff4757, #d0021b);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.biggest-earthquake-item:hover::after {
    opacity: 0.1;
}

.biggest-earthquake-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 2, 27, 0.15);
    border-width: 2px;
}

.biggest-earthquake-magnitude-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    grid-column: 1;
    background: linear-gradient(135deg, #d0021b 0%, #ff4757 100%);
    border-radius: 10px;
    padding: 1.25rem;
    min-width: 100px;
    box-shadow: 0 3px 12px rgba(208, 2, 27, 0.15);
}

/* Magnitude-based color coding */
.biggest-earthquake-magnitude-container.magnitude-minor {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.15);
}

.biggest-earthquake-magnitude-container.magnitude-light {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.15);
}

.biggest-earthquake-magnitude-container.magnitude-moderate {
    background: linear-gradient(135deg, #fd7e14 0%, #fd8c2c 100%);
    box-shadow: 0 3px 12px rgba(253, 126, 20, 0.15);
}

.biggest-earthquake-magnitude-container.magnitude-strong {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.15);
}

.biggest-earthquake-magnitude-container.magnitude-major {
    background: linear-gradient(135deg, #d0021b 0%, #ff4757 100%);
    box-shadow: 0 3px 12px rgba(208, 2, 27, 0.15);
}

.biggest-earthquake-magnitude-container.magnitude-great {
    background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
    box-shadow: 0 3px 12px rgba(139, 0, 0, 0.15);
}

.biggest-earthquake-magnitude {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    line-height: 1;
}

.biggest-earthquake-magnitude-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.biggest-earthquake-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 2;
}

.biggest-earthquake-location {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}



.biggest-earthquake-time {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    position: relative;
    z-index: 1;
}



/* Earthquakes Table Styles */
.earthquakes-table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.earthquakes-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.table-header {
    background: #d0021b !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}



.magnitude-header {
    width: 120px;
    background: #d0021b !important;
    color: #ffffff !important;
}

.location-header {
    width: auto;
    background: #d0021b !important;
    color: #ffffff !important;
}

.depth-header {
    width: 100px;
    background: #d0021b !important;
    color: #ffffff !important;
}

.date-header {
    width: 150px;
    background: #d0021b !important;
    color: #ffffff !important;
}

.earthquake-row {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.earthquake-row:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.earthquake-row:last-child {
    border-bottom: none;
}

.magnitude-cell {
    padding: 0.5rem 1rem;
    vertical-align: middle;
}

.location-cell {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    vertical-align: middle;
}

.depth-cell {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #495057;
    text-align: center;
    vertical-align: middle;
    font-weight: 500;
}

.date-cell {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
    vertical-align: middle;
    line-height: 1.3;
}

.magnitude-badge {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    display: inline-block;
    min-width: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.magnitude-high { 
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    box-shadow: 0 2px 4px rgba(217, 83, 79, 0.3);
}

.magnitude-medium { 
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    box-shadow: 0 2px 4px rgba(240, 173, 78, 0.3);
}

.magnitude-low { 
    background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
    box-shadow: 0 2px 4px rgba(92, 184, 92, 0.3);
}



/* Navbar styles moved to enhanced-layout.css */

/* Navbar brand styles moved to enhanced-layout.css */

/* Navbar brand hover styles moved to enhanced-layout.css */

/* Navbar logo styles moved to enhanced-layout.css */

/* Navbar text styles moved to enhanced-layout.css */

/* Navbar quake styles moved to enhanced-layout.css */

/* Navbar watchr styles moved to enhanced-layout.css */

.search-container {
    background: rgba(44, 62, 80, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.search-input {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    color: #2c3e50;
    border-radius: 6px 0 0 6px;
    font-weight: 500;
}

.search-input::placeholder { 
    color: #6c757d; 
}

.search-input:focus {
    background-color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    color: #2c3e50;
}

.search-btn {
    background: linear-gradient(135deg, #d0021b 0%, #b00116 100%);
    border: 1px solid #b00116;
    color: #ffffff;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #b00116 0%, #8f0112 100%);
    border-color: #8f0112;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(208, 2, 27, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Responsive toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Search Error Styles - Keep for backward compatibility */
.search-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    color: #c53030;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
    padding: 8px 12px;
    position: relative;
}

.search-error::before {
    content: '⚠';
    margin-right: 6px;
    font-weight: bold;
}

.search-input.error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.25) !important;
}

/* Remove duplicate search-container rule as it's already defined above */



.footer {
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Footer content styles moved to enhanced-layout.css */

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .stat-item {
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .biggest-earthquakes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.875rem;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-period {
        font-size: 0.7rem;
    }
    
    .map-container {
        height: 450px;
        border-radius: 16px;
        margin-bottom: 2rem;
    }
    
    .earthquakes-table-container {
        border-radius: 14px;
    }
    
    .earthquakes-table {
        border-radius: 14px;
    }
    
    .filter-controls {
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
    
    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-period {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .main-content {
        padding: 1.5rem 0.75rem;
        padding-bottom: 3rem;
    }
    
    .combined-stats-card,
    .recent-earthquakes-card,
    .emergency-preparedness-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 14px;
    }
    
    .filter-controls {
        padding: 1rem;
        gap: 1rem;
        border-radius: 14px;
    }
    
    .filter-select {
        min-width: 140px;
        padding: 0.625rem 0.875rem;
    }
}

/* Earthquake Map Styles - Enhanced for better visual appeal */
.map-container {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 400px;
    transition: all 0.4s ease;
}

.earthquake-map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.map-info {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-header h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.map-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.magnitude-high {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
}

.legend-color.magnitude-medium {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
}

.legend-color.magnitude-low {
    background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
}

.map-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.map-stats .stat {
    font-size: 0.9rem;
    color: #495057;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Enhanced Leaflet map styling */
.leaflet-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-tile-pane {
    background: transparent;
}

.leaflet-overlay-pane {
    background-color: transparent;
}

.leaflet-marker-pane {
    background-color: transparent;
}

.leaflet-shadow-pane {
    background-color: transparent;
}

.leaflet-tile {
    background: transparent;
}

/* Handle loading states */
.leaflet-loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Enhanced map controls styling */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* Enhanced layer control styling */
.leaflet-control-layers {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.leaflet-control-layers-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.leaflet-control-layers-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.leaflet-control-layers-expanded {
    padding: 16px;
    min-width: 200px;
}

.leaflet-control-layers label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.leaflet-control-layers label:hover {
    color: #667eea;
}

.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #667eea;
}

/* Enhanced zoom controls */
.leaflet-control-zoom {
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.05);
}

.leaflet-control-zoom a:last-child {
    border-bottom: none;
}

/* Map loading indicator enhancement */
.leaflet-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton Loading Styles */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

/* Skeleton for Earthquake Counts */
.skeleton-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
}

.skeleton-stat-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.25rem 0.75rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e9ecef;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.08),
        0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e9ecef, #dee2e6, #e9ecef);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.skeleton-stat-period {
    height: 14px;
    width: 60%;
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.skeleton-stat-number {
    height: 24px;
    width: 80%;
    margin: 0 auto;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

/* Skeleton for Biggest Earthquakes */
.skeleton-biggest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.skeleton-biggest-item {
    background: linear-gradient(135deg, #fff6f6 0%, #ffffff 100%);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    gap: 1rem;
}

.skeleton-biggest-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.skeleton-biggest-period {
    height: 12px;
    width: 70%;
    border-radius: 3px;
}

.skeleton-biggest-magnitude {
    height: 20px;
    width: 50%;
    border-radius: 4px;
}

.skeleton-biggest-location {
    height: 16px;
    width: 100%;
    border-radius: 3px;
}

/* Skeleton for Recent Earthquakes Table */
.skeleton-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-table-row {
    border-bottom: 1px solid #e9ecef;
    height: 60px;
}

.skeleton-table-cell {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.skeleton-magnitude-badge {
    height: 28px;
    width: 50px;
    border-radius: 6px;
}

.skeleton-location-text {
    height: 16px;
    width: 80%;
    border-radius: 3px;
}

.skeleton-depth-text {
    height: 16px;
    width: 60%;
    border-radius: 3px;
    margin: 0 auto;
}

.skeleton-date-text {
    height: 14px;
    width: 90%;
    border-radius: 3px;
    margin-left: auto;
}

.skeleton-date-time {
    height: 12px;
    width: 70%;
    border-radius: 3px;
    margin-left: auto;
    margin-top: 0.25rem;
}

/* Skeleton for Map */
.skeleton-map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.skeleton-map-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-map-text {
    height: 16px;
    width: 200px;
    border-radius: 4px;
}

/* Responsive skeleton adjustments */
@media (max-width: 992px) {
    .skeleton-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .skeleton-stat-item {
        padding: 1rem 0.75rem;
    }
    
    .skeleton-stat-number {
        height: 22px;
    }
}

@media (max-width: 768px) {
    .skeleton-biggest-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-biggest-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skeleton-biggest-location {
        width: 100%;
    }
    
    .skeleton-stats-grid {
        gap: 0.75rem;
    }
    
    .skeleton-stat-item {
        padding: 0.875rem 0.75rem;
        border-radius: 10px;
    }
    
    .skeleton-stat-number {
        height: 20px;
    }
    
    .skeleton-stat-period {
        height: 12px;
    }
}

@media (max-width: 576px) {
    .skeleton-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .skeleton-stat-item {
        padding: 1rem 1rem;
        border-radius: 10px;
    }
    
    .skeleton-stat-number {
        height: 24px;
    }
    
    .skeleton-stat-period {
        height: 12px;
    }
}

/* Earthquake count control styles - Enhanced */
.earthquake-count-control {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.25),
        0 4px 15px rgba(0,0,0,0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.earthquake-count-control:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0,0,0,0.3),
        0 6px 20px rgba(0,0,0,0.2);
}

.earthquake-count-control div {
    padding: 8px 12px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.earthquake-count-control i {
    color: #dc3545;
    margin-right: 5px;
}

/* Enhanced earthquake tooltip styles */
.earthquake-tooltip {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.4),
        0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    min-width: 200px;
    text-align: center;
}

.earthquake-tooltip::before {
    border-top-color: #2c3e50;
    border-width: 6px;
    margin-left: -6px;
}

/* Enhanced marker animations and effects */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes enhancedPulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes enhancedRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
        border-width: 3px;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
        border-width: 2px;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
        border-width: 1px;
    }
}

/* Custom marker styles - Enhanced for better visibility */
.earthquake-marker {
    position: relative;
}

.marker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-glow {
    position: absolute;
    z-index: 1;
}

.marker-core {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.marker-core:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 0 4px rgba(255,255,255,0.8),
        0 0 0 8px rgba(255,255,255,0.4),
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 2px 4px rgba(255,255,255,0.5) !important;
}

.marker-pulse {
    position: absolute;
    z-index: 1;
}

/* Legacy marker classes for backward compatibility */
.earthquake-marker.magnitude-low {
    background: #28a745;
    width: 8px;
    height: 8px;
}

.earthquake-marker.magnitude-medium {
    background: #ffc107;
    width: 10px;
    height: 10px;
}

.earthquake-marker.magnitude-high {
    background: #dc3545;
    width: 14px;
    height: 14px;
}

/* Popup styles */
.earthquake-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.earthquake-popup .popup-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.earthquake-popup .popup-magnitude {
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 0.25rem;
}

.earthquake-popup .popup-location {
    color: #666;
    margin-bottom: 0.25rem;
}

.earthquake-popup .popup-depth {
    color: #666;
    margin-bottom: 0.25rem;
}

.earthquake-popup .popup-datetime {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive map - Enhanced */
@media (max-width: 768px) {
    .map-container {
        height: 450px;
        border-radius: 12px;
    }
    
    .leaflet-control-layers-expanded {
        min-width: 180px;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 400px;
        border-radius: 10px;
    }
    
    .earthquake-count-control div {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .leaflet-control-layers-expanded {
        min-width: 160px;
        padding: 10px;
    }
}

/* Responsive Search Container Styles */
@media (max-width: 992px) {
    .search-container {
        min-width: 280px;
        max-width: 350px;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
    
    .search-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .search-btn i {
        margin-right: 0.25rem;
    }
    

}

@media (max-width: 768px) {
    .navbar-nav {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 0.5rem 0;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px 0 0 8px;
    }
    
    .search-input::placeholder {
        font-size: 0.95rem;
    }
    
    .search-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        border-radius: 0 8px 8px 0;
    }
    
    .search-btn i {
        margin-right: 0.5rem;
    }
    

}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand-logo {
        height: 28px;
    }
    
    .search-container {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    .search-input {
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem;
        border-radius: 10px 0 0 10px;
    }
    
    .search-input::placeholder {
        font-size: 1rem;
    }
    
    .search-btn {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
        border-radius: 0 10px 10px 0;
    }
    
    .search-btn i {
        margin-right: 0.375rem;
    }
    


}

@media (max-width: 480px) {
    .search-container {
        padding: 0.5rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .search-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .search-btn i {
        margin-right: 0.25rem;
    }
    
    .search-btn span {
        display: none; /* Hide "Search" text on very small screens */
    }
    

}

/* Ensure search container works well with Bootstrap navbar collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .search-input,
    .search-btn {
        min-height: 44px; /* Minimum touch target size */
    }
    

    
    .search-btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
}

/* Navbar toggle button styles */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    outline: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Improved navbar collapse behavior */
.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure search container is properly positioned in collapsed navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1001;
    }
    
    .navbar-nav {
        width: 100%;
        margin: 0;
    }
    
    .search-container {
        margin: 0;
        width: 100%;
        position: relative;
        z-index: 1002;
    }
    

}



/* Ensure search container is not cut off by parent containers */
.search-container {
    overflow: visible !important;
}

.navbar-nav {
    overflow: visible !important;
}

.navbar-collapse {
    overflow: visible !important;
}

/* Ensure proper stacking context */
.navbar {
    position: relative;
    z-index: 1000;
}

/* Mobile-specific z-index adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        z-index: 1001;
    }
    
    .search-container {
        z-index: 1002;
    }
}

/* Emergency Preparedness Section Styles */
.emergency-preparedness-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.emergency-preparedness-card:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-6px);
}

.emergency-preparedness-title {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.75rem;
}

.emergency-preparedness-title i {
    color: #e74c3c;
}

.emergency-preparedness-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.emergency-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.emergency-description {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.emergency-checklist h4 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.emergency-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.emergency-items-list li {
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

.emergency-items-list i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.emergency-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 12px 36px rgba(231, 76, 60, 0.4),
        0 6px 18px rgba(231, 76, 60, 0.2);
    transition: all 0.4s ease;
    max-width: 450px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cta-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(231, 76, 60, 0.5),
        0 10px 30px rgba(231, 76, 60, 0.3);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cta-button {
    background: white;
    color: #e74c3c;
    border: 2px solid white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

.cta-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.cta-disclaimer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-disclaimer small {
    color: white;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive Design for Emergency Preparedness Section */
@media (max-width: 768px) {
    .emergency-preparedness-card {
        padding: 2rem;
        margin-bottom: 3rem;
        border-radius: 16px;
    }
    
    .emergency-preparedness-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .emergency-preparedness-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .emergency-description {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .emergency-checklist h4 {
        font-size: 1.2rem;
    }
    
    .emergency-items-list {
        gap: 0.75rem;
    }
    
    .emergency-items-list li {
        font-size: 0.95rem;
        padding: 0.25rem 0;
    }
    
    .cta-card {
        padding: 2rem;
        border-radius: 14px;
        max-width: 100%;
    }
    
    .cta-title {
        font-size: 1.35rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    
    .cta-button,
    .cta-button-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .emergency-preparedness-card {
        padding: 1rem;
        margin-bottom: 4rem;
    }
    
    .emergency-preparedness-title {
        font-size: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .emergency-preparedness-title i {
        font-size: 1.5rem;
    }
    
    .cta-card {
        padding: 1.25rem;
    }
    
    .cta-title {
        font-size: 1.125rem;
    }
    
    .cta-description {
        font-size: 0.875rem;
    }
    
    /* Biggest Earthquake Mobile Styles */
    .biggest-earthquakes-grid {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .biggest-earthquake-item {
        padding: 1rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        text-align: center;
        min-height: auto;
    }
    
    .biggest-earthquake-magnitude-container {
        grid-column: 1;
        grid-row: 1;
        min-width: auto;
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
    
    .biggest-earthquake-magnitude {
        font-size: 2rem;
    }
    
    .biggest-earthquake-content {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }
    
    .biggest-earthquake-location {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .biggest-earthquake-time {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Enhanced Footer Styles */
.footer-emergency-links {
    margin-top: 0.5rem;
}

.footer-section-title {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: #e74c3c;
    text-decoration: none;
    transform: translateX(2px);
}

.footer-link i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer-emergency-links {
        margin-top: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-link {
        padding: 0.5rem 1rem;
        background: rgba(231, 76, 60, 0.1);
        border-radius: 6px;
        border: 1px solid rgba(231, 76, 60, 0.2);
    }
    
    .footer-link:hover {
        background: rgba(231, 76, 60, 0.15);
        border-color: rgba(231, 76, 60, 0.3);
        transform: translateY(-1px);
    }
}
