/* Base Styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    margin: 1rem auto;
    background-color: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
    min-height: auto;
    width: 90%;
}

/* Typography */
h1 {
    color: #2c3e50;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 2.5rem;
}

h2 {
    color: #3498db;
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.intro {
    color: #34495e;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Featured Image Styles */
.featured-image {
    position: relative;
    margin: 40px auto;
    width: fit-content;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
}

.featured-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

/* Section Styles */
.section-title {
    color: #2c3e50;
    margin-top: 50px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.section-description {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 15px;
}

.feature-list {
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 5px solid #3498db;
    list-style-type: none;
}

/* Image Grid and Cards */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h4 {
    color: #2c3e50;
    margin-top: 0;
}

.card p {
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Steps List */
.steps-list {
    color: #2c3e50;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 25px 40px;
    border-radius: 8px;
    counter-reset: item;
    list-style-type: none;
}

.steps-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.step-number {
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Posts Container */
.posts-container {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #3498db; /* Added border */
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%; /* Make image responsive */
    border-radius: 8px 8px 0 0; /* Rounded corners for the top */
}

.post-card h4 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.2rem; /* Increased font size */
}

.post-card p {
    color: #34495e;
    margin-bottom: 0;
    line-height: 1.6; /* Improved line height for readability */
}

.post-author, .post-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}/* Navigation Buttons */
.nav-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px 10px;
}

.nav-button:hover {
    background-color: #2980b9;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .posts-container {
        flex-direction: column; /* Stack posts on smaller screens */
    }
}