/* =========================================================
   Safari Explorer - blog / editorial styles
   Loaded on the blog index, single posts, and search results.
   ========================================================= */

/* ---------- Blog hero header (single post) ---------- */
.se-blog-hero {
	position: relative; background: var(--se-green-800); background-size: cover; background-position: center;
	padding: 26px 0 56px; min-height: 320px; color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.se-blog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,40,31,.4), rgba(22,40,31,.85)); }
.se-blog-hero-inner { position: relative; z-index: 2; max-width: 800px !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important; padding-left: 24px !important; padding-right: 24px !important; box-sizing: border-box; text-align: left !important; }
.se-blog-hero .se-breadcrumbs { text-align: left !important; color: rgba(255,255,255,.75); margin-top: 20px; }
.se-blog-hero-breadcrumbs { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.se-blog-category-badge {
	display: inline-block; background: var(--se-terracotta); color: #fff; font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; padding: 6px 16px; border-radius: 999px; margin: 18px 0 14px;
}
.se-blog-category-badge:hover { color: #fff; background: var(--se-terracotta-dark); }
.se-blog-hero h1 { color: #fff !important; font-family: 'Merriweather', Georgia, serif !important; font-weight: 400 !important; font-style: italic !important; text-align: left !important; font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 20px; }
.se-blog-hero-meta { display: flex; align-items: center; justify-content: flex-start; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #e3ece0; }
.se-blog-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.se-author-byline { display: inline-flex; align-items: center; gap: 8px; }
.se-author-byline img { border-radius: 50%; display: block; }

/* ---------- Single article layout & typography ---------- */
.se-blog-layout-single { padding: 50px 24px 30px; }
.se-blog-article { font-size: 17px; }
.se-blog-body p { margin: 0 0 1.4em; }
.se-blog-body > p:first-of-type::first-letter {
	font-family: var(--se-font-heading); font-size: 64px; float: left; line-height: .8; padding: 6px 10px 0 0;
	color: var(--se-terracotta); font-weight: 600;
}
.se-blog-body h2 { margin-top: 1.6em; font-size: 26px; }
.se-blog-body h3 { margin-top: 1.4em; font-size: 21px; }
.se-blog-body img { border-radius: var(--se-radius); margin: 1.2em 0; }
.se-blog-body figure { margin: 1.6em 0; }
.se-blog-body figcaption { text-align: center; font-size: 13px; color: var(--se-text-light); margin-top: 8px; }
.se-blog-body a { text-decoration: underline; text-underline-offset: 2px; }
.se-blog-body ul, .se-blog-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.se-blog-body ul li, .se-blog-body ol li { margin-bottom: .5em; list-style: revert; }

.se-blog-body blockquote {
	position: relative; margin: 2em 0; padding: 10px 0 10px 34px; border-left: 3px solid var(--se-terracotta);
	font-family: var(--se-font-heading); font-size: 21px; font-style: italic; color: var(--se-green-900);
}
.se-blog-body blockquote::before {
	content: '\201C'; position: absolute; left: -6px; top: -14px; font-family: Georgia, serif;
	font-size: 60px; color: var(--se-terracotta); opacity: .3; line-height: 1;
}

.page-links { margin-top: 24px; font-size: 14px; color: var(--se-text-light); }

/* ---------- Tags ---------- */
.se-blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--se-border); }

/* ---------- Author box ---------- */
.se-author-box {
	display: flex; gap: 18px; align-items: flex-start; background: var(--se-sand); border-radius: var(--se-radius);
	padding: 22px; margin-top: 30px;
}
.se-author-box img { border-radius: 50%; flex-shrink: 0; }
.se-author-box h3 { margin-bottom: 6px; font-size: 16px; }
.se-author-box p { margin: 0; font-size: 14px; color: var(--se-text-light); }

/* ---------- Related posts (single post footer) ---------- */
.se-related-posts { padding: 20px 0 70px; }
.se-related-posts h2 { text-align: center; margin-bottom: 30px; }
.se-related-posts .se-blog-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
	.se-related-posts .se-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.se-related-posts .se-blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog index / magazine grid ---------- */
.se-blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.se-blog-grid .se-post-card { background: var(--se-white); border: 1px solid var(--se-border); border-radius: var(--se-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.se-blog-grid .se-post-card:hover { transform: translateY(-4px); box-shadow: var(--se-shadow); }
.se-blog-grid .se-post-card-featured { grid-column: 1 / -1; flex-direction: row; }
.se-blog-grid .se-post-card-featured .se-post-card-media { flex: 1 1 55%; }
.se-blog-grid .se-post-card-featured .se-post-card-body { flex: 1 1 45%; display: flex; flex-direction: column; justify-content: center; }
.se-blog-grid .se-post-card-featured h2 { font-size: 26px; }

.se-post-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--se-sand-dark); }
.se-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.se-post-card:hover .se-post-card-media img { transform: scale(1.05); }
.se-post-card-badge {
	position: absolute; top: 12px; left: 12px; background: var(--se-terracotta); color: #fff; font-size: 11px;
	font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px;
}
.se-post-card-body { padding: 20px 22px 24px; }
.se-post-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--se-text-light); margin-bottom: 10px; }
.se-post-meta img { width: 22px; height: 22px; }
.se-post-card-body h2 { font-size: 19px; margin-bottom: 8px; }
.se-post-card-body h2 a, .se-post-card-body h3 a { color: var(--se-green-900); }
.se-post-excerpt { color: var(--se-text-light); font-size: 14px; margin-bottom: 14px; }
.se-post-readmore { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--se-terracotta); }
.se-post-readmore:hover { color: var(--se-terracotta-dark); }

@media (max-width: 900px) {
	.se-blog-grid { grid-template-columns: 1fr; }
	.se-blog-grid .se-post-card-featured { flex-direction: column; }
	.se-author-box { flex-direction: column; text-align: center; align-items: center; }
}

/* ---------- Comments (previously unstyled - left-aligned throughout, with a rich-text comment box) ---------- */
.se-comments { max-width: 780px; margin: 0 auto; padding: 50px 24px 70px; text-align: left; }
.se-comments-title { text-align: left; margin-bottom: 26px; }
.se-comment-list { list-style: none; margin: 0 0 30px; padding: 0; text-align: left; }
.se-comment-list .comment-body {
	display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--se-border); text-align: left;
}
.se-comment-list .comment-author img { border-radius: 50%; display: block; }
.se-comment-list .comment-author .fn { font-weight: 700; color: var(--se-green-900); font-style: normal; display: block; }
.se-comment-list .comment-metadata { font-size: 12px; color: var(--se-text-light); margin-bottom: 8px; }
.se-comment-list .comment-metadata a { color: inherit; }
.se-comment-list .comment-content { color: var(--se-text); line-height: 1.7; }
.se-comment-list .comment-content p { margin: 0 0 10px; }
.se-comment-list .comment-content ul, .se-comment-list .comment-content ol { list-style: revert; padding-left: 1.2em; margin: 0 0 10px; }
.se-comment-list .reply { margin-top: 8px; }
.se-comment-list .reply a { font-size: 13px; font-weight: 600; color: var(--se-terracotta); }
.se-comment-list .children { list-style: none; margin: 0; padding: 0 0 0 46px; }
.se-comments-closed { color: var(--se-text-light); }

.se-comment-form { text-align: left; margin-top: 10px; }
.se-comment-form p { text-align: left; margin-bottom: 18px; }
.se-comment-form label { display: block; font-weight: 600; font-size: 14px; color: var(--se-green-900); margin-bottom: 6px; }
.se-comment-form input[type="text"],
.se-comment-form input[type="email"],
.se-comment-form input[type="url"] {
	width: 100%; padding: 11px 14px; border: 1px solid var(--se-border); border-radius: var(--se-radius-sm);
	font-family: var(--se-font-body); font-size: 14px; background: var(--se-cream); box-sizing: border-box;
}
.se-comment-form .comment-form-author,
.se-comment-form .comment-form-email { display: inline-block; width: calc(50% - 10px); vertical-align: top; }
.se-comment-form .comment-form-author { margin-right: 20px; }
.se-comment-form .comment-notes, .se-comment-form .logged-in-as { color: var(--se-text-light); font-size: 13px; }
.se-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--se-text-light); }
.se-comment-form .comment-form-cookies-consent input { margin-top: 3px; }

/* The rich-text comment box (a "teeny" TinyMCE instance) */
.se-comment-form .wp-editor-wrap { border: 1px solid var(--se-border); border-radius: var(--se-radius-sm); overflow: hidden; }
.se-comment-form .wp-editor-tools { background: var(--se-sand); border-bottom: 1px solid var(--se-border); padding: 4px; }
.se-comment-form .mce-toolbar-grp, .se-comment-form .quicktags-toolbar { background: var(--se-sand); }

@media (max-width: 560px) {
	.se-comment-form .comment-form-author,
	.se-comment-form .comment-form-email { width: 100%; margin-right: 0; }
}
