:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 24px;
    color: var(--text-main);
    background-color: var(--bg-main);
    box-sizing: border-box;
} 

/* Responsive Grid System */
.layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Shifts to a 2-column layout on desktop screens */
@media (min-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr 360px; /* Main content + 360px Sidebar */
    }
}

/* Placeholder Main Content Area */
.main-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    min-height: 1200px; /* Artificially tall to demonstrate the sticky sidebar behavior */
}

/* --- RIGHT SIDE PANE (SIDEBAR) --- */
.right-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Makes the sidebar stick to the top on desktop while scrolling */
@media (min-width: 1024px) {
    .right-pane {
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        overflow-y: auto; /* Handles scrolling gracefully if sidebar content is taller than viewport */
        padding-right: 4px; /* Avoids layout shift with scrollbar */
    }
}

/* Section Card Base Styles */
.pane-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pane-section h2 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

/* Section 1: Latest News / Posts */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.news-item a:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section 2: Services List */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.service-link:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

/* Section 3: Ad Graphic Banner */
.ad-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
}

.ad-banner h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.ad-banner p {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.ad-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.ad-btn:hover {
    opacity: 0.95;
}