: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;
}*/

p.white { color: var(--text-light)}

/* Base Mobile/Tablet Layout: Single Column Stack */
.layout-container-rp2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main Content Workspace */
.main-content-rp2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    /*min-height: 400px; */
}

/* Base Mobile/Tablet Sidebar: Standard stacked layout below content */
.right-pane-rp2 {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /*background-color: yellow; */
}

/* --- THE CHANGE: TARGET WIDER SCREENS ONLY (min-width: 1280px) --- */
@media (min-width: 1280px) {
    .layout-container-rp2 {
        /* Activates the 2-column view only on wider desktop monitors */
        grid-template-columns: 1fr 360px; 
    }

    .main-content-rp2 {
        min-height: 1200px; /* Keeps the workspace deep for testing scrolling */
    }

    .right-pane-rp2 {
        /* Activates sticky behavioral mechanics only on wider screens */
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        overflow-y: auto; 
        padding-right: 4px; 
        width: 100%;
    }
}

/* Section Card Base Styles */
.pane-section-rp2 {
    width: 100%;
    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);
    text-align: left;
    /*background-color: green;*/
}

.pane-section-rp2 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-rp2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item-rp2 {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-item-rp2:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item-rp2 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-rp2 a:hover {
    color: var(--primary-color);
}

.news-meta-rp2 {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section 2: Services List */
.services-grid-rp2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-link-rp2 {
    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-rp2:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
    color: var(--primary-color);
}

/* Section 3: Ad Graphic Banner */
.ad-banner-rp2 {
    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-rp2 h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.ad-banner-rp2 p {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.ad-btn-rp2 {
    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-rp2:hover {
    opacity: 0.95;
}