/* =========================================================
   Ranara blog – list page + single post
   Save as: /wp-content/themes/YOUR-THEME/assets/css/blog.css
   ========================================================= */

:root {
	--rb-accent: #f04e23;
	--rb-bg: #eff4f9;
	--rb-card: #ffffff;
	--rb-heading: #14213d;
	--rb-text: #555b66;
	--rb-border: #d9dee5;
	--rb-radius: 4px;
	--rb-shadow: 0 2px 10px rgba(20, 33, 61, .06);
	--rb-font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
	--rb-font-head: 'Joan', Georgia, serif;
}

body.blog,
body.single-post,
body.archive,
body.search {
	background: var(--rb-bg);
	font-family: var(--rb-font-body);
	color: var(--rb-text);
}

.rb-container {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.rb-blog,
.rb-single { padding: 50px 0 70px; }

.rb-blog a,
.rb-single a { text-decoration: none; }

/* ---------------------------------------------------------
   BLOG LIST – 3 column cards
   --------------------------------------------------------- */
.rb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.rb-card {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	box-shadow: var(--rb-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.rb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(20, 33, 61, .12);
}

.rb-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e4e9ef; }
.rb-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-card__placeholder { display: block; width: 100%; height: 100%; }

.rb-card__body {
	padding: 22px 24px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.rb-card__meta { margin-bottom: 20px; color: var(--rb-accent); line-height: 1.2; }
.rb-card__author {
	text-transform: capitalize;

}
.rb-card__date { font-size: 14px; font-weight: 500; }

.rb-card__title {
	margin: 0 0 26px;
	font-family: var(--rb-font-head);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 400;
	letter-spacing: .4px;
}
.rb-card__title a { color: var(--rb-heading); }
.rb-card__title a:hover { color: var(--rb-accent); }

.rb-card__more {
	margin-top: auto;
	color: var(--rb-accent);
	font-weight: 600;
	font-size: 17px;
}
.rb-card__more:hover { text-decoration: underline; }

/* Pagination */
.rb-pagination { margin-top: 50px; text-align: center; }
.rb-pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rb-pagination .page-numbers {
	padding: 8px 14px;
	background: #fff;
	border-radius: var(--rb-radius);
	color: var(--rb-heading);
	font-weight: 500;
	box-shadow: var(--rb-shadow);
}
.rb-pagination .page-numbers.current,
.rb-pagination .page-numbers:hover { background: var(--rb-accent); color: #fff; }
.rb-pagination .screen-reader-text { display: none; }

/* ---------------------------------------------------------
   SINGLE POST
   --------------------------------------------------------- */
.rb-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

.rb-box {
	background: var(--rb-card);
	border-radius: var(--rb-radius);
	box-shadow: var(--rb-shadow);
	padding: 24px;
	margin-bottom: 24px;
}

.rb-article__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--rb-radius);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.rb-article__title {
	font-family: var(--rb-font-head);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.25;
	letter-spacing: .4px;
	color: var(--rb-heading);
	margin: 28px 0 10px;
}

.rb-article__meta {
	font-size: 13px;
	font-weight: 600;
	color: var(--rb-accent);
	margin-bottom: 26px;
}

.rb-article__content { font-size: 15px; line-height: 1.8; }
.rb-article__content p { margin: 0 0 20px; }
.rb-article__content a { color: var(--rb-accent); text-decoration: underline; }

.rb-article__content h2,
.rb-article__content h3,
.rb-article__content h4 {
	font-family: var(--rb-font-head);
	font-weight: 400;
	color: var(--rb-heading);
	letter-spacing: .3px;
	line-height: 1.3;
}
.rb-article__content h2 { font-size: 26px; margin: 40px 0 16px; }
.rb-article__content h3 { font-size: 22px; margin: 32px 0 14px; }

.rb-article__content ul,
.rb-article__content ol { margin: 0 0 22px; padding-left: 22px; }
.rb-article__content li { margin-bottom: 8px; }
.rb-article__content strong { color: var(--rb-heading); font-weight: 600; }
.rb-article__content img { max-width: 100%; height: auto; }

/* Tables */
.rb-article__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 14px;
	box-shadow: var(--rb-shadow);
}
.rb-article__content th,
.rb-article__content td {
	border: 1px solid #b9bec6;
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}
.rb-article__content th { color: var(--rb-heading); background: #fff; font-weight: 600; }

/* Prev / Next */
.rb-postnav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 24px;
	font-size: 13px;
}
.rb-postnav__label { display: block; font-weight: 700; text-transform: uppercase; color: var(--rb-heading); margin-bottom: 4px; }
.rb-postnav a { color: var(--rb-text); }
.rb-postnav a:hover { color: var(--rb-accent); }
.rb-postnav__next { text-align: right; }

/* Comments */
.comments-area { background: #fff; border-radius: var(--rb-radius); box-shadow: var(--rb-shadow); padding: 24px; }
.comments-area .comment-reply-title { font-family: var(--rb-font-head); font-weight: 400; font-size: 20px; color: var(--rb-heading); margin: 0 0 12px; }
.comments-area a { color: var(--rb-accent); }
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea { width: 100%; padding: 10px; border: 1px solid var(--rb-border); border-radius: var(--rb-radius); box-sizing: border-box; }
.comments-area .submit {
	background: var(--rb-accent); color: #fff; border: 0; padding: 10px 22px;
	border-radius: var(--rb-radius); cursor: pointer; font-weight: 600;
}

/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */
.rb-sidebar { position: sticky; top: 24px; }

.rb-author { text-align: center; padding: 28px 22px; }
.rb-author__avatar img {
	width: 96px; height: 96px; border-radius: 50%;
	object-fit: cover; border: 4px solid #fff;
	box-shadow: 0 0 0 1px var(--rb-border);
}
.rb-author__name { margin: 12px 0 2px; font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--rb-heading); }
.rb-author__role { display: block; font-size: 13px; color: var(--rb-accent); margin-bottom: 12px; }
.rb-author__bio { font-size: 12px; line-height: 1.7; margin: 0; }
.rb-author__bio a { color: var(--rb-accent); font-weight: 500; }

.rb-search label { display: block; font-size: 12px; color: #1d3a6e; margin-bottom: 6px; }
.rb-search__row { display: flex; gap: 8px; }
.rb-search input[type="search"] {
	flex: 1; min-width: 0; padding: 8px 10px;
	border: 1px solid var(--rb-border); border-radius: 3px;
}
.rb-search button {
	background: var(--rb-accent); color: #fff; border: 0;
	padding: 8px 16px; border-radius: 3px; cursor: pointer; font-weight: 500;
}
.rb-search button:hover { background: #d63f17; }

.rb-recent__title {
	font-family: var(--rb-font-head); font-weight: 400;
	font-size: 20px; color: var(--rb-heading); margin: 0 0 16px;
}
.rb-recent ul { list-style: none; margin: 0; padding: 0; }
.rb-recent li { margin-bottom: 14px; line-height: 1.5; }
.rb-recent li:last-child { margin-bottom: 0; }
.rb-recent a { color: var(--rb-accent); font-size: 13px; }
.rb-recent a:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
	.rb-grid { grid-template-columns: repeat(2, 1fr); }
	.rb-single__layout { grid-template-columns: 1fr; }
	.rb-sidebar { position: static; }
}
@media (max-width: 640px) {
	.rb-grid { grid-template-columns: 1fr; }
	.rb-article__title { font-size: 24px; }
	.rb-card__author { font-size: 18px; }
	.rb-article__content table { display: block; overflow-x: auto; }
}
	/* FAQ Section */
.blog-faq-section {
    margin-top: 40px;
}

.blog-faq-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Accordion wrapper */
.faq-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

/* Question */
.faq-item h3 {
    margin: 0;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

/* Add + icon */
.faq-item h3::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 22px;
    transition: 0.3s;
}

/* Active state (- sign) */
.faq-item.active h3::after {
    content: "-";
}

/* Answer hidden by default */
.faq-item p {
    padding: 0 15px 15px;
    display: none;
    margin: 0;
    line-height: 1.5;
}
/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */
.rb-breadcrumb { margin: 0 0 22px; font-size: 13px; }
.rb-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex;  align-items: center; }
.rb-breadcrumb li { display: inline-flex; align-items: center; color: var(--rb-text); }
.rb-breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #a3abb7; }
.rb-breadcrumb a { color: var(--rb-accent); text-decoration: none; font-weight: 500; }
.rb-breadcrumb a:hover { text-decoration: underline; }
.rb-breadcrumb__current { color: var(--rb-heading); font-weight: 500; }