/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1f1f1f;
    color: white;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header Styling */
header {
    background-color: white; /* Dark background */
    padding: 20px 30px;
    position: sticky; /* Sticks to the top when scrolling */
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #e77d26; /* Orange logo color */
}

.logo-text a {
    text-decoration: none;
    color: inherit;
}

/* Navbar Styling */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: black; /* White text for navbar links */
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: black;
    background-color: transparent;
    border-bottom: 1px solid #f4a523;
    border-top: 1px solid #f4a523;
    padding: 5px;
    transition: all 0.3s ease;
}

/* Contact Button Styling */
.contact-btn {
    background-color: #e77d26;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: transparent;
    color: black;
    border: 1px solid #f4a523;
}


/* Main Content */
.main-content {
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    flex-direction: row; /* Default: side-by-side for desktop */
    justify-content: space-between;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden; /* Prevent overflow */
}

/* Featured Section */
.featured-section {
    flex: 3; /* Take up 60% width */
    margin-right: 20px;
    overflow: hidden; /* Prevent content overflow */
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.featured-content {
    margin-top: 15px;
    padding: 15px;
}

.category-label {
    display: inline-block;
    background-color: #e77d26;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.featured-content h2 {
    margin: 10px 0;
    font-size: 20px;
}

.meta-info {
    margin-top: 10px;
    color: #bbb;
    font-size: 12px;
}

/* Blog List */
.blog-list {
    flex: 2; /* Take up 40% width */
    margin-left: 20px;
    overflow: hidden; /* Prevent overflow */
}

.blog-list h1 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #e77d26;
}

.post {
    display: flex;
    margin-bottom: 20px;
    background-color: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
}

.post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.post-info h3 {
    font-size: 14px;
    color: white;
}

.post-info p {
    color: #bbb;
    font-size: 12px;
    margin-top: 5px;
}

/* Mobile View */
@media screen and (max-width: 768px) {
    /* Hide navbar */
    .navbar {
        display: none;
    }

    /* Stack main content */
    .main-content {
        flex-direction: column; /* Stack sections vertically */
        padding: 15px;
    }

    .featured-section,
    .blog-list {
        width: 100%; /* Full width */
        margin: 0;
    }

    .blog-list {
        margin-top: 20px;
    }
}
