:root {
    /* Darker, professional forest green */
    --primary-blue: #000f7e;
    --primary-green: #007e2a;
    --primary-green-hover: #10682e;
    --dark-gray: #4a4a4a;
    --light-gray: #f8f9fa;
    --border-color: #dcdde1;
    --text-main: #2f3640;
    --text-muted: #7f8c8d;
    --bg-button: #007e2a;
}

/*body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: flex-end; /* Simulating right side placement */
/*}*/

/* Side Pane Container */
.side-pane-rp3 {
    width: 100%; /* Slightly widened to better accommodate single-line links */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    box-sizing: border-box;
    margin-top: 20px;
}

/* Search Section */
.search-section-rp3 {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;        /* Default layout behavior */
    justify-content: flex-start; /* Aligns contents to the left */
}

.search-form-rp3 {
    width: 100%;
    display: flex;
    gap: 8px;
}

.search-input-rp3 {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--dark-gray);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    /*background-color: yellow; */
}

.search-input-rp3:focus {
    border-color: var(--primary-green);
}

.search-button-rp3 {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button-rp3:hover {
    background-color: var(--primary-green-hover);
}

/* Registration Section */
.register-section-rp3 {
    margin-bottom: 16px;
}

.register-section-rp3 h3 {
    margin: 0 0 6px 0;
    color: var(--text-main);
    font-size: 20px;
}

.register-section-rp3 p {
    margin: 0 0 10px 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.4;
}

.register-link-rp3 {
    display: inline-block;
    color: white;
    background-color: var(--text-main);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.register-link-rp3:hover {
    opacity: 0.9;
}

.user-count-rp3 {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Divider Line */
.breaker-line-rp3 {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

/* Widget Lists (Announcements & Posts) */
.widget-section-rp3 {
    margin-bottom: 16px;
}

.widget-section-rp3 h4 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-list-rp3 {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Enforces strict single-line and tighter spacing */
.link-item-rp3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* Brought links closer together */
    font-size: 16px;
    line-height: 1.5;
}

.link-wrapper-rp3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    padding-right: 8px;
}

.link-item-rp3 a {
    text-decoration: none;
    font-weight: 500;
}

.link-item-rp3 a:hover {
    text-decoration: underline;
}

/* Announcement Specific Styles */
.announcement-link-rp3 {
    color: var(--primary-blue);
}

/* Post Specific Styles */
.post-link-rp3 {
    color: var(--text-main);
}

.date-badge-rp3 {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}