/* Variables */
:root {
    --rd-primary-color: #2c3e50;
    --rd-accent-color: #e74c3c;
    --rd-bg-light: #f4f4f4;
    --rd-white: #ffffff;
    --rd-text-color: #333;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--rd-text-color);
    background-color: var(--rd-bg-light);
    line-height: 1.6;
}

/* Links */
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--rd-accent-color); }

/* Layout Helpers */
.rd-pearl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.rd-pearl-header {
    background-color: var(--rd-primary-color);
    color: var(--rd-white);
    padding: 20px 0;
}
.rd-pearl-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rd-pearl-logo h1 { margin: 0; font-size: 24px; }
.rd-pearl-logo p { margin: 0; font-size: 14px; opacity: 0.8; }
.rd-pearl-logo a { color: var(--rd-white); }

/* Navigation */
.rd-pearl-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.rd-pearl-menu-list li a {
    color: var(--rd-white);
    font-weight: 500;
}

/* Main Content Grid */
.rd-pearl-main-content {
    padding: 50px 0;
}
.rd-pearl-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Article Card */
.rd-pearl-article-card {
    background: var(--rd-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.rd-pearl-post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rd-pearl-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rd-pearl-post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}
.rd-pearl-post-title a { color: var(--rd-primary-color); }

.rd-pearl-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.rd-pearl-entry-summary {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Button */
.rd-pearl-btn {
    display: inline-block;
    background-color: var(--rd-primary-color);
    color: var(--rd-white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}
.rd-pearl-btn:hover {
    background-color: var(--rd-accent-color);
    color: var(--rd-white);
}

/* Footer */
.rd-pearl-footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}


/* Single Page Styles */
.rd-pearl-single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
.rd-pearl-single-title {
    font-size: 32px;
    color: var(--rd-primary-color);
    margin-bottom: 10px;
}
.rd-pearl-entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-top: 30px;
}
.rd-pearl-entry-content img {
    max-width: 100%;
    height: auto;
}

/* Archive Header */
.rd-pearl-archive-header {
    text-align: center;
    margin-bottom: 40px;
    background: #e1e1e1;
    padding: 30px;
    border-radius: 8px;
}

/* Comments Area */
.rd-pearl-comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}
.rd-pearl-comment-list {
    list-style: none;
    padding: 0;
}
.rd-pearl-comment-list li {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* --- WordPress Core Recommended Classes --- */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }

a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption .wp-caption-text, .gallery-caption { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }

.sticky { display: block; }
.bypostauthor { display: block; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }