/* Base and Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    line-height: 1.6;
    color: #333;
}

/* Common elements */
h1 {
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 10px;
    display: inline-block;
}

h2 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4d94ff;
}

h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

a {
    color: #0066cc;
    text-decoration: none;
}

/* Page Specific Styles */
.news-page-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-header {
    border-bottom: 2px solid #99ccff;
    color: #0066cc;
    text-align: center;
    padding: 25px 30px;
    margin: 20px auto;
    width: 100%;
}

.breadcrumb {
    font-size: 14px;
    color: #0066cc;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #555;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.single-news {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    margin-top: 20px;
}

.single-news-image {
    max-width: 100%;
    margin-bottom: 20px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.single-news-title {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 28px;
}

.single-news-date {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
}

.single-news-content {
    line-height: 1.8;
    color: #444;
}

.back-to-news {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #e6f2ff;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.back-to-news:hover {
    background-color: #b3d9ff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-list-grid {
        grid-template-columns: 1fr;
    }
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #555;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.single-news {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(77, 148, 255, 0.1);
    margin-top: 20px;
}

.single-news-image {
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0066cc;
    text-decoration: none;
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }

    .single-news {
        padding: 20px;
    }
}