/* --- Global Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

/* --- 1. Header Styling --- */
header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 3rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    font-style: italic;
    color: #bdc3c7;
}

/* --- Layout Wrapper --- */
.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem; /* Space between main and aside */
}

/* --- 2. Main Section Styling --- */
main {
    flex: 3; /* Takes up roughly 75% of the width */
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

article {
    margin-bottom: 2rem;
}

.date {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

article h2 {
    color: #2980b9;
    margin-bottom: 1.5rem;
}

article h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

article p {
    margin-bottom: 1rem;
}

article ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
}

hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin-top: 2rem;
}

/* --- Table Styling for Article Content --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

table th, table td {
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    text-align: left;
}

table th {
    background-color: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
}

/* --- 3. Side Section Styling --- */
aside {
    flex: 1; /* Takes up roughly 25% of the width */
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    align-self: flex-start; /* Stops the sidebar from stretching vertically */
    position: sticky; /* Keeps the sidebar in view as you scroll */
    top: 2rem; 
}

aside h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 0.5rem;
    color: #2c3e50;
}

aside ul {
    list-style-type: none;
}

aside li {
    margin-bottom: 0.8rem;
}

aside a {
    text-decoration: none;
    color: #34495e;
    transition: color 0.2s ease-in-out;
}

aside a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* --- 4. Footer Styling --- */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer p:last-child {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* --- Responsive Design (Mobile Support) --- */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column; /* Stacks the sidebar under the main content on small screens */
    }
    
    aside {
        position: static; /* Removes sticky behavior on mobile */
    }
    
    /* Ensure tables don't break the layout on small screens */
    table {
        display: block;
        overflow-x: auto;
    }
}

.linkedin-link {
    text-decoration: none;
    color: #333; /* Or your brand color */
    font-weight: 500;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: #0077b5; /* Official LinkedIn Blue */
    text-decoration: underline;
}