/*
 * Servant King editorial look, site-wide: serif headings (Source Serif 4),
 * gold-underlined sidebar titles, borderless sidebar widgets on the cream page,
 * plain topic buttons. The homepage adds its own layout in home.css.
 */
:root {
	--sk-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sk-muted: #5b6672;
	--sk-line: #e6dccb;
	--sk-panel: #efe8dc;
}

/* ---------- Serif headings ---------- */
.mg-blog-post-box .mg-header h1.title,
.mg-breadcrumb-title .title, .mg-breadcrumb-title h1,
.sk-sermon__header .title.single, .sk-sermons-hero .title,
.sk-sermon-card__title, .sk-sermon__nav a,
.mg-posts-sec .title, .mg-blog-post .title, .mg-blog-post h4.title, .small-post-content .title,
.page-content-single h1, .page-content-single h2, .page-content-single h3, .page-content-single h4,
.comment-reply-title, #reply-title, .comments-title, .mg-author-box h4, .media-heading {
	font-family: var(--sk-serif) !important;
	font-weight: 600 !important;
	letter-spacing: -.005em;
}
.mg-blog-post-box .mg-header h1.title, .mg-blog-post-box .mg-header h1.title a { color: var(--sk-navy); line-height: 1.12; }
.page-content-single h2, .page-content-single h3, .page-content-single h4 { color: var(--sk-navy); }
.page-content-single h2 { margin-top: 1.6em; }
.page-content-single blockquote { border-left-color: var(--sk-gold) !important; background: var(--sk-panel); font-family: var(--sk-serif); font-size: 1.12em; }
.mg-breadcrumb-title .title, .sk-sermons-hero .title { color: var(--sk-navy); font-size: clamp(1.9rem, 3vw, 2.5rem) !important; }
.sk-sermons-hero__kicker { color: var(--sk-gold); }
.mg-posts-sec .title a, .mg-blog-post .title a, .small-post-content .title a { color: inherit; }

/* ---------- Sidebar tabs (every page except the homepage, which has its own) ----------
 * Newsup's tab headings ("Archives", "Latest Posts"...) and section headings
 * take their colour from --pri-color / --grady-color. Override them only on
 * those headings, using the "Widget title tabs" colour from the Customiser.
 */
.mg-wid-title, .mg-sec-title { --pri-color: var(--sk-tab-title, #7a1f2b); --grady-color: var(--sk-tab-title, #7a1f2b); }
body:not(.sk-home-page) .mg-sidebar select { width: 100%; padding: 9px 10px; border: 1px solid var(--sk-line); border-radius: 4px; background: var(--sk-card-bg, #fffdf9); }

/* Latest Posts (WordPress block) in the sidebar */
.mg-sidebar .mg-widget ul.wp-block-latest-posts > li { border-bottom-color: var(--sk-line); }
.mg-sidebar .wp-block-latest-posts__featured-image { flex-basis: 76px; width: 76px; height: 58px; border-radius: 6px; }
.mg-sidebar .mg-widget .wp-block-latest-posts__post-title { font-family: var(--sk-serif) !important; font-size: .98rem; font-weight: 600; }

/* Latest Sermons / Latest Posts (Servant King widgets) */
.sk-sermon-mini { margin: 0; padding: 0; list-style: none; }
.mg-sidebar .mg-widget ul.sk-sermon-mini > li { display: flex !important; align-items: center; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--sk-line); }
.sk-sermon-mini__img { flex: 0 0 76px; width: 76px; height: 58px; overflow: hidden; border-radius: 6px; background: var(--sk-navy); }
.sk-sermon-mini__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sk-sermon-mini__title { display: block; color: var(--sk-ink); font-family: var(--sk-serif); font-size: .98rem; font-weight: 600; line-height: 1.25; }
.sk-sermon-mini__title:hover { color: var(--sk-gold); }
.sk-sermon-mini__by { display: block; margin-top: 4px; color: var(--sk-gold); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sk-sermon-mini__all { display: inline-block; margin-top: 12px; color: var(--sk-gold); font-family: var(--sk-serif); font-weight: 600; }

/* Book */
.mg-sidebar .sk-book { text-align: left; }
.mg-sidebar .sk-book__cover { max-width: 72%; margin: 0 auto 16px; }
.mg-sidebar .sk-book__title { font-family: var(--sk-serif); font-size: 1.25rem; font-weight: 600; }
.mg-sidebar .sk-book__author { color: var(--sk-muted); font-size: .9rem; font-weight: 400; }
.mg-sidebar .sk-book__desc { color: var(--sk-ink); font-size: .93rem; }
.mg-sidebar .sk-book__button { padding: 9px 20px; border: 1.5px solid var(--sk-gold); background: transparent; color: var(--sk-gold) !important; font-family: var(--sk-serif); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.mg-sidebar .sk-book__button:hover, .mg-sidebar .sk-book__button:focus { background: var(--sk-gold); color: #fff !important; }

/* Topics: coloured buttons (colours from style.css), smaller size */
.mg-sidebar .wp-block-tag-cloud a.tag-cloud-link, .mg-sidebar .tagcloud a.tag-cloud-link { padding: 4px 9px; border-radius: 3px; font-size: .78rem !important; line-height: 1.3; }

/* Featured-image caption: light bar instead of dark */
.featured-image-caption { display: block; padding: 8px 14px; background: var(--sk-panel) !important; color: var(--sk-muted) !important; font-family: var(--sk-serif); font-size: .9rem; font-style: italic; text-align: center; }
.featured-image-caption a { color: var(--sk-gold) !important; }

/* ---------- "You missed" strip (Newsup, bottom of every page) ---------- */
.missed-inner { padding: 22px 24px 26px !important; border: 1px solid var(--sk-card-line, #e6dccb); border-radius: 8px; background: var(--sk-card-bg, #fffdf9) !important; box-shadow: 0 4px 14px rgba(23, 36, 50, .05); }
.missed-inner .mg-blog-post-3 { position: relative; overflow: hidden; border-radius: 8px; }
.missed-inner .mg-blog-post-3 img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .35s; }
.missed-inner .mg-blog-post-3:hover img { transform: scale(1.04); }
.missed-inner .mg-blog-post-3 .mg-blog-inner { position: absolute; inset: auto 0 0 0; padding: 60px 14px 14px; background: linear-gradient(0deg, rgba(10, 20, 32, .92) 0%, rgba(10, 20, 32, .55) 60%, rgba(10, 20, 32, 0) 100%); }
.missed-inner .mg-blog-post-3 .title, .missed-inner .mg-blog-post-3 h4 { display: -webkit-box; overflow: hidden; margin: 8px 0 6px; font-family: var(--sk-serif) !important; font-size: 1.12rem; font-weight: 600; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.missed-inner .mg-blog-post-3 .title a, .missed-inner .mg-blog-post-3 h4 a { color: #fff; }
@media (max-width: 991px) { .missed-inner .col-lg-3 { margin-bottom: 16px; } }

/* ---------- Videos (old Extra video posts + Videos widget) ---------- */
.sk-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.sk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mg-blog-post-box > .sk-video { margin-bottom: 0; }
.page-content-single > .sk-video:first-child { margin-bottom: 1.5em; border-radius: 6px; }
.sk-videos__stage { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--sk-navy); cursor: pointer; }
.sk-videos__stage img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sk-videos__stage:hover img { transform: scale(1.04); }
.sk-videos__play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; border: 3px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .25); transform: translate(-50%, -50%); transition: background .2s; }
.sk-videos__play::after { content: ""; position: absolute; top: 50%; left: 55%; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }
.sk-videos__stage:hover .sk-videos__play, .sk-videos__stage:focus-visible .sk-videos__play { background: var(--sk-tab-title, #7a1f2b); }
.sk-videos .sk-video { border-radius: 6px; }
.mg-sidebar .mg-widget ul.sk-videos__list { margin: 8px 0 0; padding: 0; list-style: none; }
.mg-sidebar .mg-widget ul.sk-videos__list li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--sk-line); }
.mg-sidebar .mg-widget ul.sk-videos__list li:last-child { border-bottom: 0; }
.sk-videos__item { display: block; color: var(--sk-ink); font-family: var(--sk-serif); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.sk-videos__item:hover, .sk-videos__item.is-current { color: var(--sk-tab-title, #7a1f2b); }

/* ---------- Menu dropdowns: coloured top strip + light separators ---------- */
.navbar-wp .navbar-nav .dropdown-menu { min-width: 230px; padding: 8px 0; border: 0; border-top: 4px solid var(--sk-tab-title, #7a1f2b); border-radius: 0 0 6px 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.navbar-wp .navbar-nav .dropdown-menu > li { margin: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.navbar-wp .navbar-nav .dropdown-menu > li:last-child { border-bottom: 0; }
.navbar-wp .navbar-nav .dropdown-menu > li > a { padding: 13px 0 !important; font-size: .8rem; font-weight: 600; letter-spacing: .04em; background: transparent !important; transition: color .2s, padding-left .2s; }
.navbar-wp .navbar-nav .dropdown-menu > li > a:hover, .navbar-wp .navbar-nav .dropdown-menu > li > a:focus, .navbar-wp .navbar-nav .dropdown-menu > li.active > a { padding-left: 12px !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--sk-tab-title, #7a1f2b); }
/* Third-level menus open beside, keep their own top strip. */
.navbar-wp .navbar-nav .dropdown-menu .dropdown-menu { margin-top: -12px; border-radius: 0 6px 6px 6px; }

/* ---------- Servant King: Tabbed Posts ---------- */
.sk-tabs { overflow: hidden; border: 1px solid var(--sk-line); border-radius: 8px; background: var(--sk-card-bg, #fffdf9); box-shadow: 0 4px 14px rgba(23, 36, 50, .05); }
.sk-tabs__head { display: flex; border-bottom: 1px solid var(--sk-line); background: #f3ede3; }
.sk-tabs__tab { flex: 1 1 0; margin: 0; padding: 14px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--sk-muted); font-family: var(--sk-serif); font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: color .2s; }
.sk-tabs__tab i { margin-right: 5px; color: var(--sk-gold); }
.sk-tabs__tab:hover { color: var(--sk-navy); }
.sk-tabs__tab.is-active { border-bottom-color: var(--sk-tab-title, #7a1f2b); background: var(--sk-card-bg, #fffdf9); color: var(--sk-tab-title, #7a1f2b); }
.sk-tabs__tab:focus-visible { outline: 2px solid var(--sk-tab-title, #7a1f2b); outline-offset: -3px; }
.sk-tabs__panel { padding: 4px 20px 8px; }
.sk-tabs ul.sk-tabs__list { margin: 0; padding: 0; list-style: none; }
.sk-tabs .sk-tabs__item { display: flex !important; align-items: flex-start; gap: 16px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--sk-line); }
.sk-tabs .sk-tabs__item:last-child { border-bottom: 0; }
.sk-tabs__img { flex: 0 0 140px; width: 140px; height: 92px; overflow: hidden; border-radius: 6px; background: var(--sk-navy); }
.sk-tabs__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sk-tabs__item:hover .sk-tabs__img img { transform: scale(1.05); }
.sk-tabs__body { min-width: 0; }
.sk-tabs__cat { display: block; color: var(--sk-gold); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sk-tabs__title { margin: 3px 0 0; font-family: var(--sk-serif) !important; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.sk-tabs__title a { color: var(--sk-ink); }
.sk-tabs__title a:hover { color: var(--sk-tab-title, #7a1f2b); }
.sk-tabs__snippet { margin: 6px 0 0; color: var(--sk-muted); font-size: .9rem; line-height: 1.5; }
/* Narrow places (sidebars, phones) */
.mg-sidebar .sk-tabs__panel { padding: 2px 14px 6px; }
.mg-sidebar .sk-tabs__tab { padding: 11px 4px; font-size: .9rem; }
.mg-sidebar .sk-tabs__tab i { display: none; }
.mg-sidebar .sk-tabs__img { flex-basis: 76px; width: 76px; height: 58px; }
.mg-sidebar .sk-tabs__title { font-size: .98rem; }
.mg-sidebar .sk-tabs__snippet { font-size: .82rem; }
@media (max-width: 575px) {
	.sk-tabs__panel { padding: 2px 14px 6px; }
	.sk-tabs__img { flex-basis: 96px; width: 96px; height: 66px; }
	.sk-tabs__tab { padding: 12px 4px; font-size: .92rem; }
}

/* Menu highlights (current page, hover, home button) use the burgundy instead of Newsup's bright blue. */
.navbar-wp, .mg-nav-widget-area, .mobilehomebtn { --pri-color: var(--sk-tab-title, #7a1f2b); --grady-color: var(--sk-tab-title, #7a1f2b); }
.mg-headwidget .navbar-wp .navbar-nav > li > a:hover, .mg-headwidget .navbar-wp .navbar-nav > li > a:focus,
.mg-headwidget .navbar-wp .navbar-nav > .active > a, .mg-headwidget .navbar-wp .navbar-nav > .show > a,
.navbar-wp .navbar-nav > li > a.homebtn, .mobilehomebtn { background: var(--sk-tab-title, #7a1f2b) !important; color: #fff !important; }
.navbar-wp .navbar-nav .dropdown-menu > li > a { color: rgba(255, 255, 255, .82) !important; }
.mg-head-detail .time, .mg-headwidget .time { background: var(--sk-tab-title, #7a1f2b) !important; }

/* Tabbed Posts: gentle hover (the theme gives all buttons a dark navy hover, which hid the text). */
.sk-tabs .sk-tabs__tab:hover, .sk-tabs .sk-tabs__tab:focus { background: #ebe2d4 !important; color: var(--sk-tab-title, #7a1f2b) !important; box-shadow: none !important; }
.sk-tabs .sk-tabs__tab.is-active, .sk-tabs .sk-tabs__tab.is-active:hover, .sk-tabs .sk-tabs__tab.is-active:focus { background: var(--sk-card-bg, #fffdf9) !important; color: var(--sk-tab-title, #7a1f2b) !important; }
