/*
Theme Name: Servant King News
Description: A measured editorial child theme for Newsup.
Template: newsup
Version: 1.2.5
Text Domain: servant-king-news
*/

:root { --sk-navy: #19324a; --sk-logo-background: #001c35; --sk-blue: #315e7d; --sk-gold: #b98c43; --sk-paper: #f4f6f8; --sk-ink: #172432; --sk-tab: #b98c43; --sk-container: 1280px; --sk-header-height: 170px; --sk-logo-height: 110px; }

body { background: var(--sk-paper); color: var(--sk-ink); }
.container-fluid { box-sizing: border-box; width: 100%; max-width: var(--sk-container); margin-right: auto; margin-left: auto; padding-right: 30px; padding-left: 30px; }
.mg-headwidget .container-fluid, .mg-nav-widget .container-fluid, .mg-latest-news .container-fluid { max-width: none; }
.mg-headwidget { background-color: var(--sk-navy); }
.mg-nav-widget-area-back { min-height: var(--sk-header-height); background-color: var(--sk-logo-background) !important; background-position: center; background-size: cover; }
.mg-nav-widget-area-back .overlay, .mg-nav-widget-area-back .inner { min-height: var(--sk-header-height); }
.mg-nav-widget-area-back .inner { display: flex; align-items: center; }
.mg-nav-widget-area { padding: 14px 0; }
.site-logo .custom-logo-link { display: inline-block; }
.site-logo img.custom-logo { display: block; width: auto; height: auto; max-width: min(42vw, 360px); max-height: var(--sk-logo-height); object-fit: contain; }
.site-title a, .site-description { color: #fff; }
.mg-menu-full, .navbar-wp { background-color: var(--sk-navy); }
.navbar-wp .navbar-nav > li > a, .navbar-wp .navbar-nav > li > a:hover { color: #fff; }
.mg-latest-news { background: #fff; border-bottom: 1px solid #d7dee4; }
.mg-latest-news .mg-latest-news-heading { background: var(--sk-gold); }
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active:hover, .nav-tabs .nav-link.active:focus { border-bottom-color: var(--sk-tab); color: var(--sk-tab); }
.mg-blog-post, .mg-posts-sec, .mg-sidebar .mg-widget { border-radius: 6px; box-shadow: 0 8px 24px rgba(25,50,74,.07); }
.mg-blog-post .mg-header h1, .mg-blog-post .mg-header h4, .mg-posts-sec .title a, .mg-sidebar .mg-posts-sec .title a { color: var(--sk-ink); }
.mg-blog-post .mg-blog-category a, .mg-posts-sec .mg-blog-category a { background: var(--sk-gold); }
.mg-main-slider .mg-blog-post-box, .mg-main-slider .mg-blog-post-box img { min-height: 460px; max-height: 560px; }
.mg-main-slider .mg-blog-post-box img { width: 100%; object-fit: cover; }
.mg-main-slider .mg-header { padding: 1.8rem; background: linear-gradient(0deg, rgba(11,22,32,.82), rgba(11,22,32,0) 70%); }
.mg-main-slider .mg-header h4 { font-size: clamp(1.7rem, 2.5vw, 2.7rem); line-height: 1.12; }
.mg-posts-sec-inner img, .mg-sidebar .mg-posts-sec-inner img { aspect-ratio: 16 / 10; object-fit: cover; }
.mg-posts-sec .mg-sec-title h4, .mg-sidebar .mg-sec-title h4 { border-bottom-color: var(--sk-gold); }
/* Topic (tag) buttons: one colour per topic, set by the sk-tag-c0..7 class from functions.php. White text passes contrast on every colour. */
.widget_tag_cloud .tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 1.1rem; margin: 0; }
.widget_tag_cloud .tagcloud a.tag-cloud-link, .wp-block-tag-cloud a.tag-cloud-link { display: inline-flex; align-items: center; min-height: 0; padding: .28rem .6rem; margin: 0; border: 0; border-radius: 3px; background: var(--sk-tag, var(--sk-navy)) !important; color: #fff !important; font-size: .74rem !important; font-weight: 700; line-height: 1.2; text-decoration: none; text-transform: capitalize; box-shadow: 0 2px 6px rgba(23,36,50,.12); transition: transform .15s, box-shadow .15s, filter .15s; }
.widget_tag_cloud .tagcloud a.tag-cloud-link:hover, .wp-block-tag-cloud a.tag-cloud-link:hover, .widget_tag_cloud .tagcloud a.tag-cloud-link:focus, .wp-block-tag-cloud a.tag-cloud-link:focus { filter: brightness(1.15); box-shadow: 0 6px 14px rgba(23,36,50,.22); transform: translateY(-2px); color: #fff !important; }
.tag-cloud-link.sk-tag-c0 { --sk-tag: #8c3b2e; } /* red-brown */
.tag-cloud-link.sk-tag-c1 { --sk-tag: #1f6f6b; } /* teal */
.tag-cloud-link.sk-tag-c2 { --sk-tag: #5b3c88; } /* purple */
.tag-cloud-link.sk-tag-c3 { --sk-tag: #2f6b35; } /* green */
.tag-cloud-link.sk-tag-c4 { --sk-tag: #9a4a12; } /* burnt orange */
.tag-cloud-link.sk-tag-c5 { --sk-tag: #2b5d8a; } /* blue */
.tag-cloud-link.sk-tag-c6 { --sk-tag: #7a2e55; } /* plum */
.tag-cloud-link.sk-tag-c7 { --sk-tag: #5f5b1a; } /* olive */
@media (max-width: 1400px) { .container-fluid { max-width: 1200px; } }
@media (max-width: 767px) { .container-fluid { padding-right: 18px; padding-left: 18px; } .mg-main-slider .mg-blog-post-box, .mg-main-slider .mg-blog-post-box img { min-height: 330px; } .mg-nav-widget-area-back, .mg-nav-widget-area-back .overlay, .mg-nav-widget-area-back .inner { min-height: auto; } .site-logo img.custom-logo { max-width: 72vw; max-height: min(var(--sk-logo-height), 82px); } }

/* Single post featured image: fills the column width and is cropped around the focal point chosen in the post editor. */
.sk-featured-frame { overflow: hidden; width: 100%; aspect-ratio: 16 / 9; max-height: var(--sk-featured-max); background: var(--sk-navy); }
.sk-featured-frame img.single-featured-image { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: var(--sk-focus, 50% 50%); }

/* In-post images: an Image block with no fixed size (and not floated/centred) fills the text width.
   Set an Aspect ratio with Scale "Cover" on the block to crop it to a banner shape. */
.page-content-single .wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.is-resized) img { width: 100%; height: auto; }

/* Latest Posts widget (block): small thumbnail beside each title. */
.mg-sidebar .wp-block-latest-posts { margin: 0; padding: 4px 0 0; list-style: none; }
.mg-sidebar .mg-widget ul.wp-block-latest-posts > li { display: flex !important; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid #e3e8ed; }
.mg-sidebar .wp-block-latest-posts li:last-child { border-bottom: 0; padding-bottom: 0; }
.mg-sidebar .wp-block-latest-posts__featured-image { flex: 0 0 72px; width: 72px; height: 72px; margin: 0 !important; overflow: hidden; border-radius: 4px; background: var(--sk-navy); }
.mg-sidebar .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .25s; }
.mg-sidebar .wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.06); }
.mg-sidebar .wp-block-latest-posts__post-title { display: -webkit-box; overflow: hidden; color: var(--sk-ink); font-size: .92rem; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mg-sidebar .wp-block-latest-posts__post-title:hover { color: var(--sk-gold); }
.mg-sidebar .wp-block-latest-posts__post-date { display: block; color: #7a8794; font-size: .78rem; }
.mg-sidebar .wp-block-latest-posts li > div:not(.wp-block-latest-posts__featured-image), .mg-sidebar .wp-block-latest-posts li > a { min-width: 0; }
/* A Group block with the class "mg-wid-title" + an H6 heading gives a block widget the same title tab as Archives. */
.mg-sidebar .wp-block-group.mg-wid-title { margin-bottom: 0; }
.mg-sidebar .mg-wid-title .wp-block-heading { margin: 0; }

/* "Servant King: Book" widget */
.sk-book { padding: 18px 20px 22px; text-align: center; }
.sk-book__cover-link { display: inline-block; }
.sk-book__cover { display: block; width: auto; max-width: 68%; height: auto; margin: 4px auto 16px; border-radius: 3px; box-shadow: 0 10px 24px rgba(23,36,50,.28); transition: transform .2s, box-shadow .2s; }
.sk-book__cover-link:hover .sk-book__cover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(23,36,50,.32); }
.sk-book__title { margin: 0 0 4px; font-size: 1.1rem; line-height: 1.25; }
.sk-book__title a { color: var(--sk-ink); }
.sk-book__title a:hover { color: var(--sk-gold); }
.sk-book__author { margin: 0 0 10px; color: #7a8794; font-size: .82rem; font-weight: 600; }
.sk-book__desc { color: #4a5866; font-size: .88rem; line-height: 1.55; text-align: left; }
.sk-book__desc p { margin: 0 0 10px; }
.sk-book__button { display: inline-block; margin-top: 6px; padding: 9px 18px; border-radius: 4px; background: var(--sk-gold); color: #fff !important; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.sk-book__button:hover, .sk-book__button:focus { background: var(--sk-navy); }
.mg-sidebar .sk-book-widget .mg-wid-title .wtitle { text-transform: none !important; }

/* Homepage widget previews: keep Bible-reference (RefTagger) icons tiny, and tidy the excerpt. */
.mg-posts-sec .small-post-content img, .sk-widget-excerpt img, .mg-posts-sec .rtBibleRef img { display: none !important; }
.sk-widget-excerpt { margin: 8px 0 0; color: #4a5866; font-size: .9rem; line-height: 1.55; }

/* Warm page everywhere: Newsup's wrapper painted every page light grey (#eee),
   hiding the "Page background" colour. Boxes get the homepage's warm white + soft border. */
.wrapper, #custom-background-css.wrapper { background-color: var(--sk-paper) !important; }
:root { --sk-card-bg: #fffdf9; --sk-card-line: #e6dccb; }
.mg-blog-post-box, .mg-sidebar .mg-widget, .mg-posts-sec, .mg-posts-sec-post, .sk-sermon-card, .sk-sermon.mg-blog-post-box, .sk-sermon-filters, #comments, .comments-area, .mg-card-box, .mg-breadcrumb-section, .mg-latest-news, .mg-blog-post-3 + .mg-blog-inner { background-color: var(--sk-card-bg); }
.mg-blog-post-box, .mg-sidebar .mg-widget, .sk-sermon-card, .sk-sermon-filters { border: 1px solid var(--sk-card-line); box-shadow: 0 4px 14px rgba(23, 36, 50, .05); }
.mg-breadcrumb-section { border-bottom: 1px solid var(--sk-card-line); }


/* Hide Newsup's post-format icon (camera) on post thumbnails */
.post-form { display: none !important; }

