/* General Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F1F2F3;
    color: #1A2A3A;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #1A2A3A;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #1A2A3A;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: #1A2A3A;
    color: #fff;
}

/* Hero Section */
.blog-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('Assets/blog-banner.jpg');
    background-size: cover;
    background-position: center;
}

.blog-hero h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #1A2A3A;
}

.blog-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #2C3E50;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Project Cards */
.project-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 60px;
    transition: transform 0.3s ease;
    flex-wrap: wrap;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    flex: 1;
    min-height: 400px;
    background-color: #eee;
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd; /* Add a small separator for clarity */
}

.project-content {
    flex: 1;
    padding: 40px;
}

.project-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #1A2A3A;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.9em;
}

.category {
    background-color: #FFC107;
    color: #1A2A3A;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.key-takeaways {
    background-color: #F1F2F3;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.key-takeaways h4 {
    margin-top: 0;
    color: #1A2A3A;
}

.key-takeaways ul {
    padding-left: 20px;
}

.key-takeaways li {
    margin-bottom: 8px;
    position: relative;
}

.project-story h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #1A2A3A;
}

.project-story p {
    margin-bottom: 15px;
    color: #2C3E50;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFC107;
    color: #1A2A3A;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter {
    text-align: center;
    padding: 60px 20px;
    background-color: #1A2A3A;
    color: white;
}

.newsletter h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 25px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border-radius: 6px;
    border: none;
    font-family: 'Segoe UI', sans-serif;
}

/* Footer */
footer {
    background-color: #fff;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
    color: #1A2A3A;
    border-top: 1px solid #ddd;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

/* Responsive Layout - Mobile Styles */
@media (max-width: 768px) {
    /* Sticky header */
    header {
        position: sticky;
        top: 0;
        padding: 12px 20px;
        z-index: 1000;
    }
    
    /* Compact navigation */
    nav ul {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin: 12px 0 0 0;
        padding: 0;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar in WebKit browsers */
    nav ul::-webkit-scrollbar {
        display: none;
    }
    
    nav ul li {
        flex-shrink: 0;
    }
    
    nav ul li a {
        padding: 8px 12px;
        font-size: 0.9em;
        white-space: nowrap;
    }
    
    /* Adjust hero padding */
    .hero {
        padding: 60px 20px 40px;
    }
    
    /* Slightly smaller heading on mobile */
    header h1 {
        font-size: 1.6em;
    }
    
    /* Grid adjustments */
    .feature-grid,
    .service-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Section padding adjustment */
    section {
        padding: 40px 20px;
    }
    
    /* Button full width on mobile */
    .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
        box-sizing: border-box;
    }

    /* Fix image scaling on mobile */
    .project-image img {
        height: auto;  /* Allow the height to adjust naturally */
        object-fit: cover; /* Maintain the aspect ratio and avoid stretching */
        width: 100%; /* Make sure the image spans the width of its container */
    }

    /* Ensure content and images don't overflow on smaller screens */
    .project-card {
        flex-direction: column;
    }
}
