/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.main-header {
    background-color: #000;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.7;
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px 20px;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    margin: 0 auto 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
}

.profile-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.profile-education,
.profile-worked,
.profile-email,
.profile-interests {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-align: left;
}

.profile-location {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-item {
    padding: 6px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-item:hover {
    background-color: #f0f0f0;
}

.link-item i {
    width: 20px;
    color: #0066cc;
}

.link-item .fab {
    color: #0066cc;
}

/* Main Content */
.main-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-feed-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.news-feed-header h2 {
    font-size: 20px;
    color: #d63031;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #0066cc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #f0f8ff;
}

.tab-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* News Posts */
.news-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-post {
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.news-post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 15px;
}

.post-flag {
    font-size: 18px;
    margin-right: 5px;
}

.post-title {
    font-size: 18px;
    color: #0033cc;
    font-weight: 600;
    line-height: 1.4;
    display: inline;
}

.post-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .container {
        padding: 20px 10px;
        gap: 20px;
    }

    .main-content {
        padding: 20px;
    }

    .filter-tabs {
        gap: 5px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
