/* =========================================================
   RENALIYAS BLOG — Public Frontend
   Palette: Charcoal Black / Ivory / Champagne Gold
   Fonts: Playfair Display (headings) / Jost (body)
   ========================================================= */

:root {
    --rn-black: #14130f;
    --rn-charcoal: #201f1a;
    --rn-gold: #b8965a;
    --rn-gold-light: #d4b483;
    --rn-ivory: #f7f5f0;
    --rn-cream: #fbfaf7;
    --rn-gray: #6b6a63;
    --rn-border: #e7e3da;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Jost', 'Segoe UI', sans-serif;
}

body.rn-blog-body {
    font-family: var(--font-body);
    color: #2a2924;
    background: #fff;
    font-weight: 300;
}

h1, h2, h3, h4, h5, .rn-heading-font {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--rn-black);
}

a { text-decoration: none; }
.text-muted-light { color: #b7b2a5; }

/* ---------- Header ---------- */
.rn-site-header {
    background: var(--rn-black);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.rn-site-header .nav-link {
    color: #d8d4c9 !important;
    font-size: 14px;
    letter-spacing: .5px;
    padding: 8px 14px !important;
}
.rn-site-header .nav-link:hover,
.rn-site-header .nav-link.active { color: var(--rn-gold-light) !important; }

.rn-btn-outline {
    border: 1px solid var(--rn-gold);
    color: var(--rn-gold-light) !important;
    border-radius: 2px;
    padding: 8px 18px;
    letter-spacing: .5px;
}
.rn-btn-outline:hover { background: var(--rn-gold); color: #1a1a1a !important; }

.rn-btn-gold {
    background: linear-gradient(135deg, var(--rn-gold-light), var(--rn-gold));
    color: #1a1a1a;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: .5px;
    padding: 10px 20px;
}
.rn-btn-gold:hover { filter: brightness(1.08); color: #1a1a1a; }

/* ---------- Page Header / Breadcrumb ---------- */
.rn-page-header {
    
    padding: 90px 0 60px;
    color: #fff;
    text-align: center;
}
.rn-page-header h1 { color: #fff; font-size: 40px; margin-bottom: 10px; }
.rn-breadcrumb {
    display: inline-flex;
    gap: 8px;
    font-size: 13px;
    letter-spacing: .5px;
    color: var(--rn-gold-light);
}
.rn-breadcrumb a { color: #d8d4c9; }
.rn-breadcrumb a:hover { color: var(--rn-gold-light); }
.rn-breadcrumb .sep { color: #6b6a63; }

/* ---------- Filters / Search ---------- */
.rn-filter-bar {
    background: var(--rn-cream);
    border: 1px solid var(--rn-border);
    border-radius: 4px;
    padding: 18px 22px;
    margin: -40px auto 40px;
    max-width: 960px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.rn-filter-bar .form-control,
.rn-filter-bar .form-select {
    border-radius: 2px;
    border-color: var(--rn-border);
}
.rn-filter-bar .form-control:focus,
.rn-filter-bar .form-select:focus {
    border-color: var(--rn-gold);
    box-shadow: 0 0 0 .15rem rgba(184,150,90,.18);
}

/* ---------- Blog Cards ---------- */
.rn-blog-card {
    background: #fff;
    border: 1px solid var(--rn-border);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: .25s;
}
.rn-blog-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.1); transform: translateY(-4px); }
.rn-blog-card .card-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.rn-blog-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.rn-blog-card:hover .card-img-wrap img { transform: scale(1.06); }
.rn-blog-card .card-category {
    position: absolute; top: 14px; left: 14px;
    background: var(--rn-gold); color: #1a1a1a;
    font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 2px; font-weight: 600;
}
.rn-blog-card .card-body-custom { padding: 20px; }
.rn-blog-card .card-meta { font-size: 12.5px; color: var(--rn-gray); display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.rn-blog-card .card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rn-blog-card h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.rn-blog-card h3 a { color: var(--rn-black); }
.rn-blog-card h3 a:hover { color: var(--rn-gold); }
.rn-blog-card p { color: #55534c; font-size: 14.5px; line-height: 1.6; }
.rn-read-more { color: var(--rn-gold); font-weight: 500; font-size: 13.5px; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 6px; }
.rn-read-more:hover { color: var(--rn-black); }

/* Featured post (large) */
.rn-featured-post { border: 1px solid var(--rn-border); border-radius: 4px; overflow: hidden; }
.rn-featured-post img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.rn-featured-post .content { padding: 32px; }
.rn-featured-badge { background: var(--rn-black); color: var(--rn-gold-light); font-size: 11px; letter-spacing: 1px; padding: 6px 14px; border-radius: 2px; text-transform: uppercase; }

/* ---------- Sidebar ---------- */
.rn-widget { background: var(--rn-cream); border: 1px solid var(--rn-border); border-radius: 4px; padding: 22px; margin-bottom: 22px; }
.rn-widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--rn-gold); padding-bottom: 10px; margin-bottom: 16px; }
.rn-widget-list { list-style: none; padding: 0; margin: 0; }
.rn-widget-list li { margin-bottom: 14px; }
.rn-widget-post { display: flex; gap: 12px; align-items: flex-start; }
.rn-widget-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.rn-widget-post-title { display: block; font-size: 13.5px; color: var(--rn-black); font-weight: 500; line-height: 1.35; }
.rn-widget-post:hover .rn-widget-post-title { color: var(--rn-gold); }
.rn-widget-post-date { display: block; font-size: 11.5px; color: var(--rn-gray); margin-top: 4px; }
.rn-widget-categories { list-style: none; padding: 0; margin: 0; }
.rn-widget-categories li { border-bottom: 1px solid var(--rn-border); }
.rn-widget-categories li:last-child { border-bottom: none; }
.rn-widget-categories a { display: flex; justify-content: space-between; padding: 10px 2px; color: #3a392f; font-size: 14px; }
.rn-widget-categories a:hover { color: var(--rn-gold); }
.rn-widget-categories span { color: var(--rn-gray); }
.rn-widget-cta { background: var(--rn-black); border: none; }
.rn-widget-cta .rn-widget-title { color: #fff; border-bottom-color: var(--rn-gold); }

/* ---------- Single Post ---------- */
.rn-single-hero { position: relative; }
.rn-single-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.rn-single-content { font-size: 16.5px; line-height: 1.85; color: #2e2d27; }
.rn-single-content h2 { font-size: 26px; margin-top: 36px; margin-bottom: 16px; }
.rn-single-content h3 { font-size: 21px; margin-top: 28px; margin-bottom: 14px; }
.rn-single-content p { margin-bottom: 18px; }
.rn-single-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.rn-single-content blockquote {
    border-left: 3px solid var(--rn-gold);
    padding: 12px 22px;
    background: var(--rn-cream);
    font-style: italic;
    color: #4a4940;
    margin: 24px 0;
}
.rn-single-content ul, .rn-single-content ol { margin-bottom: 18px; padding-left: 24px; }

.rn-author-box { display: flex; gap: 16px; align-items: center; background: var(--rn-cream); border: 1px solid var(--rn-border); border-radius: 4px; padding: 20px; }
.rn-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rn-author-box .author-name { font-weight: 600; font-size: 15px; }
.rn-author-box .author-role { color: var(--rn-gray); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }

.rn-toc { background: var(--rn-cream); border-left: 3px solid var(--rn-gold); border-radius: 4px; padding: 20px 22px; margin-bottom: 28px; }
.rn-toc-title { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.rn-toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.rn-toc li { margin-bottom: 6px; }
.rn-toc a { color: #4a4940; }
.rn-toc a:hover { color: var(--rn-gold); }

.rn-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.rn-share-buttons a {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--rn-cream); border: 1px solid var(--rn-border); color: var(--rn-black); font-size: 15px;
}
.rn-share-buttons a:hover { background: var(--rn-gold); color: #fff; border-color: var(--rn-gold); }

.rn-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-tag-list a { background: var(--rn-cream); border: 1px solid var(--rn-border); color: #4a4940; font-size: 13px; padding: 6px 14px; border-radius: 20px; }
.rn-tag-list a:hover { background: var(--rn-gold); color: #fff; border-color: var(--rn-gold); }

.rn-prev-next { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rn-border); border-bottom: 1px solid var(--rn-border); padding: 22px 0; }
.rn-prev-next a { max-width: 46%; }
.rn-prev-next .direction-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--rn-gold); display: block; margin-bottom: 4px; }
.rn-prev-next .post-title { color: var(--rn-black); font-weight: 500; font-size: 14.5px; }
.rn-prev-next .next-block { text-align: right; margin-left: auto; }

.rn-faq-item { border-bottom: 1px solid var(--rn-border); padding: 16px 0; }
.rn-faq-item summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; }
.rn-faq-item summary::-webkit-details-marker { display: none; }
.rn-faq-item summary::after { content: '+'; color: var(--rn-gold); font-size: 20px; }
.rn-faq-item[open] summary::after { content: '−'; }
.rn-faq-item p { margin-top: 10px; color: #4a4940; font-size: 14.5px; }

/* ---------- Comments ---------- */
.rn-comment { display: flex; gap: 14px; margin-bottom: 22px; }
.rn-comment .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--rn-gold-light); color: #1a1a1a; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.rn-comment .comment-name { font-weight: 600; font-size: 14.5px; }
.rn-comment .comment-date { font-size: 12px; color: var(--rn-gray); margin-left: 8px; }
.rn-comment p { font-size: 14.5px; color: #3a392f; margin: 6px 0 0; }

/* ---------- Pagination ---------- */
.rn-pagination .page-link { color: var(--rn-black); border-color: var(--rn-border); border-radius: 2px !important; margin: 0 3px; }
.rn-pagination .page-item.active .page-link { background: var(--rn-gold); border-color: var(--rn-gold); color: #fff; }
.rn-pagination .page-link:hover { background: var(--rn-cream); color: var(--rn-gold); }

/* ---------- Footer ---------- */
.rn-site-footer { background: var(--rn-black); color: #cfcac0; }
.footer-heading { color: var(--rn-gold-light); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b7b2a5; font-size: 14px; }
.footer-links a:hover { color: var(--rn-gold-light); }
.rn-social-icons a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #cfcac0; }
.rn-social-icons a:hover { background: var(--rn-gold); color: #fff; border-color: var(--rn-gold); }
.rn-footer-bottom { background: #0e0d0a; border-top: 1px solid rgba(255,255,255,.06); }

.rn-whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 999;
}

@media (max-width: 767px) {
    .rn-page-header { padding: 60px 0 40px; }
    .rn-page-header h1 { font-size: 28px; }
    .rn-featured-post img { min-height: 220px; }
    .rn-prev-next { flex-direction: column; }
    .rn-prev-next a { max-width: 100%; }
    .rn-prev-next .next-block { text-align: left; margin-left: 0; }
}
