/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Posts Section */
.blog-posts {
    padding: 4rem 0;
    background-color: white;
}

.blog-posts h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Post Card Styles */
.post-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h4 {
    margin-bottom: 1rem;
}

.post-content h4 a {
    color: #1a1a2e;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-content h4 a:hover {
    color: #667eea;
}

.post-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.post-meta .category {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Article Styles */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
}

.article-content {
    padding: 2rem;
    line-height: 1.8;
}

.article-content h2 {
    color: #1a1a2e;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #444;
}

.external-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.external-link:hover {
    border-bottom-color: #667eea;
}

.back-to-home {
    display: inline-block;
    margin: 2rem;
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-to-home:hover {
    background: #5a6fd8;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.disclaimer {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
}

/* Emergency Contact Box */
.emergency-contacts {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.emergency-contacts h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1rem;
    }
}