/*
 * "Servant King Home" page template: editorial homepage.
 * Cream page, serif headings, gold accents, plain topic buttons.
 */
.sk-home-page {
	--sk-cream: #f7f3ec;
	--sk-card: #fffdf9;
	--sk-line: #e6dccb;
	--sk-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sk-muted: #5b6672;
	background: var(--sk-cream);
}
.sk-home-page #content.sk-home { padding: 34px 0 40px; background: var(--sk-cream); }

/* Newsup's top-tags strip isn't part of this layout. */
.sk-home-page .mg-tpt-tag-area, .sk-home-page .mg-tpt-txnlst { display: none; }

/* ---------- Gold label ---------- */
.sk-home .sk-label { display: inline-block; padding: 4px 9px; border-radius: 2px; background: var(--sk-gold); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }

/* ---------- Featured article ---------- */
.sk-hero { position: relative; display: flex; align-items: flex-end; min-height: 440px; margin: 0 0 44px; overflow: hidden; border-radius: 10px; background: var(--sk-navy) var(--sk-hero-img) center / cover no-repeat; box-shadow: 0 14px 34px rgba(23, 36, 50, .18); }
.sk-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 32, .86) 0%, rgba(10, 20, 32, .6) 48%, rgba(10, 20, 32, .1) 100%), linear-gradient(0deg, rgba(10, 20, 32, .55), rgba(10, 20, 32, 0) 55%); }
.sk-hero__link { position: absolute; inset: 0; z-index: 1; }
.sk-hero__body { position: relative; z-index: 2; max-width: 600px; padding: 44px 40px; color: #fff; pointer-events: none; }
.sk-hero__body a { pointer-events: auto; }
.sk-hero__title { margin: 16px 0 6px; font-family: var(--sk-serif); font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; }
.sk-hero__title a, .sk-hero__title a:hover { color: #fff; }
.sk-hero__sub { margin: 0 0 14px; font-family: var(--sk-serif); font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: italic; line-height: 1.25; color: #f2ebdf; }
.sk-hero__summary { margin: 0 0 22px; color: #e9e3d8; font-size: 1rem; line-height: 1.55; }
.sk-hero__button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 4px; background: var(--sk-gold); color: #fff !important; font-family: var(--sk-serif); font-size: 1.02rem; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.sk-hero__button:hover, .sk-hero__button:focus { background: #fff; color: var(--sk-navy) !important; transform: translateX(2px); }

/* ---------- Sections ---------- */
.sk-section { margin: 0 0 46px; }
.sk-section__head { display: flex; align-items: center; gap: 18px; }
.sk-section__title { margin: 0; color: var(--sk-navy); font-family: var(--sk-serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; }
.sk-section__rule { flex: 1 1 auto; height: 1px; background: var(--sk-gold); opacity: .6; }
.sk-section__all { flex: 0 0 auto; color: var(--sk-gold); font-family: var(--sk-serif); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.sk-section__all:hover { color: var(--sk-navy); }
.sk-section__intro { margin: 6px 0 20px; color: var(--sk-muted); font-family: var(--sk-serif); font-size: 1.05rem; font-style: italic; }

/* ---------- Cards ---------- */
.sk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sk-card { display: flex; flex-direction: column; overflow: hidden; margin: 0; border: 1px solid var(--sk-line); border-radius: 8px; background: var(--sk-card); box-shadow: 0 4px 14px rgba(23, 36, 50, .05); transition: box-shadow .2s, transform .2s; }
.sk-card:hover { box-shadow: 0 12px 26px rgba(23, 36, 50, .12); transform: translateY(-3px); }
.sk-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sk-navy); }
.sk-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sk-card:hover .sk-card__img img { transform: scale(1.04); }
.sk-card__img .sk-label { position: absolute; left: 12px; bottom: 10px; background: rgba(255, 253, 249, .94); color: var(--sk-gold); }
.sk-card__body { padding: 16px 16px 18px; }
.sk-card__title { margin: 0 0 8px; font-family: var(--sk-serif); font-size: 1.22rem; font-weight: 600; line-height: 1.22; }
.sk-card__title a { color: var(--sk-ink); }
.sk-card__title a:hover { color: var(--sk-gold); }
.sk-card__summary { margin: 0; color: var(--sk-muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Sidebar ---------- */
.sk-home__side .mg-sidebar { position: sticky; top: 24px; }

/* Latest Sermons */
.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: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--sk-line, #e3e8ed); }
.sk-sermon-mini__img { flex: 0 0 92px; width: 92px; height: 70px; 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, inherit); font-size: 1.05rem; 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: .7rem; 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, inherit); font-weight: 600; }

/* Book */
.sk-home__side .sk-book__cover { max-width: 72%; margin: 0 auto 18px; }
.sk-home__side .sk-book__title { font-family: var(--sk-serif); font-size: 1.45rem; font-weight: 600; }
.sk-home__side .sk-book__author { color: var(--sk-muted); font-size: .9rem; font-weight: 400; }
.sk-home__side .sk-book__desc { color: var(--sk-ink); font-size: .95rem; }
.sk-home__side .sk-book__button { padding: 10px 22px; border: 1.5px solid var(--sk-gold); background: transparent; color: var(--sk-gold) !important; font-family: var(--sk-serif); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sk-home__side .sk-book__button:hover { background: var(--sk-gold); color: #fff !important; }


/* Archives / other widgets on this page */
.sk-home__side select { width: 100%; padding: 9px 10px; border: 1px solid var(--sk-line); border-radius: 4px; background: var(--sk-card); }

/* ---------- Small screens ---------- */
@media (max-width: 991px) {
	.sk-home__side { margin-top: 10px; }
	.sk-home__side .mg-sidebar { position: static; }
}
@media (max-width: 767px) {
	.sk-home-page #content.sk-home { padding-top: 20px; }
	.sk-hero { min-height: 380px; margin-bottom: 34px; }
	.sk-hero::before { background: linear-gradient(0deg, rgba(10, 20, 32, .9) 10%, rgba(10, 20, 32, .35) 100%); }
	.sk-hero__body { padding: 28px 22px; }
	.sk-cards { grid-template-columns: 1fr; }
	.sk-section__head { flex-wrap: wrap; gap: 6px 14px; }
	.sk-section__rule { display: none; }
	.sk-section__all { margin-left: auto; }
}
@media (min-width: 768px) and (max-width: 991px) {
	.sk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Extra widgets under the sections (e.g. the posts carousel) ---------- */
.sk-home__extra { margin: 0 0 40px; }
.sk-home__extra .mg-posts-sec { margin-bottom: 30px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.sk-home__extra .mg-sec-title { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; padding: 0; border: 0 !important; background: none; }
.sk-home__extra .mg-sec-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--sk-gold); opacity: .6; }
.sk-home__extra .mg-sec-title h4 { margin: 0; padding: 0 !important; border: 0; background: none !important; color: var(--sk-navy) !important; font-family: var(--sk-serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; text-transform: none; }
.sk-home__extra .mg-sec-title h4::before, .sk-home__extra .mg-sec-title h4::after { display: none; }
.sk-home__extra .mg-blog-post { overflow: hidden; border-radius: 8px; }
.sk-home__extra .mg-blog-post .title, .sk-home__extra .mg-blog-post h4 { font-family: var(--sk-serif); }
.sk-home__extra .mg-blog-post-3 { position: relative; overflow: hidden; margin: 0 6px; border-radius: 8px; }
.sk-home__extra .mg-blog-post-3 .mg-blog-img { height: 260px !important; max-height: none !important; }
.sk-home__extra .mg-blog-post-3 .mg-blog-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sk-home__extra .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%); }
.sk-home__extra .mg-blog-post-3 .title, .sk-home__extra .mg-blog-post-3 h4 { display: -webkit-box; overflow: hidden; margin: 8px 0 6px; font-size: 1.15rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sk-home__extra .mg-blog-post-3 .title a, .sk-home__extra .mg-blog-post-3 h4 a { color: #fff; }

/* ---------- Featured slider ---------- */
.sk-hero-slider { position: relative; margin: 0 0 44px; }
.sk-hero-slider__track { display: grid; }
.sk-hero-slider .sk-hero { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.sk-hero-slider .sk-hero.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.sk-hero-slider__controls { position: absolute; right: 22px; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.sk-hero-slider__arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(10, 20, 32, .35); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.sk-hero-slider__arrow:hover, .sk-hero-slider__arrow:focus-visible { border-color: var(--sk-gold); background: var(--sk-gold); outline: none; }
.sk-hero-slider__dots { display: flex; gap: 8px; }
.sk-hero-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; transition: background .2s, transform .2s; }
.sk-hero-slider__dot:hover { background: #fff; }
.sk-hero-slider__dot.is-active { background: var(--sk-gold); transform: scale(1.25); }
.sk-hero-slider button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.sk-hero-slider .sk-hero, .sk-hero-slider .sk-hero.is-active { transition: none; }
}
@media (max-width: 767px) {
	.sk-hero-slider.is-multi .sk-hero__body { padding-bottom: 76px; }
	.sk-hero-slider__controls { right: 50%; bottom: 18px; transform: translateX(50%); }
}

/* ---------- Narrower sidebar, smaller topics (homepage) ---------- */
@media (min-width: 992px) {
	.sk-home .sk-home__main { flex: 0 0 72%; max-width: 72%; }
	.sk-home .sk-home__side { flex: 0 0 28%; max-width: 28%; }
}
.sk-sermon-mini__img { flex-basis: 76px; width: 76px; height: 58px; }
.sk-home__side .sk-sermon-mini__title { font-size: .98rem; }
.sk-home__side .wp-block-tag-cloud, .sk-home__side .tagcloud { gap: 6px; }
.sk-home__side .sk-book__title { font-size: 1.25rem; }

/* ---------- Latest / Popular / Trending tabs in the main column ---------- */
.sk-home__extra .newsup_tabbed_posts_widget { margin-bottom: 34px; }
.sk-home__extra .tabbed-container { overflow: hidden; border: 1px solid var(--sk-line); border-radius: 8px; background: var(--sk-card); box-shadow: 0 4px 14px rgba(23, 36, 50, .05); }
.sk-home__extra .tabbed-head .nav-tabs { display: flex; margin: 0; border-bottom: 1px solid var(--sk-line); background: #f3ede3; }
.sk-home__extra .tabbed-head .nav-tabs > li { flex: 1 1 0; margin: 0; }
.sk-home__extra .tabbed-head .nav-link { display: block; margin: 0; padding: 14px 10px; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0; background: transparent !important; color: var(--sk-muted) !important; font-family: var(--sk-serif); font-size: 1.05rem; font-weight: 600; text-align: center; }
.sk-home__extra .tabbed-head .nav-link i { margin-right: 6px; color: var(--sk-gold); }
.sk-home__extra .tabbed-head .nav-link:hover { color: var(--sk-navy) !important; }
.sk-home__extra .tabbed-head .nav-link.active { border-bottom-color: var(--sk-tab-title, #7a1f2b) !important; background: var(--sk-card) !important; color: var(--sk-tab-title, #7a1f2b) !important; }
.sk-home__extra .tab-content { padding: 6px 20px 10px; }
.sk-home__extra .tab-content .mg-posts-sec-inner { margin: 0; }
.sk-home__extra .tab-content .small-list-post { padding: 0; }
.sk-home__extra .tab-content .small-post { display: flex; align-items: center; gap: 16px; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--sk-line); border-radius: 0; background: transparent; box-shadow: none; }
.sk-home__extra .tab-content .small-list-post:last-child .small-post { border-bottom: 0; }
.sk-home__extra .tab-content .img-small-post { flex: 0 0 132px; width: 132px; height: 84px; margin: 0; overflow: hidden; border-radius: 6px; background: var(--sk-navy); }
.sk-home__extra .tab-content .img-small-post img { display: block !important; width: 100%; height: 100%; object-fit: cover; }
.sk-home__extra .tab-content .small-post-content { padding: 0; }
.sk-home__extra .tab-content .small-post-content .title { margin: 6px 0 0; font-family: var(--sk-serif) !important; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.sk-home__extra .tab-content .small-post-content .title a { color: var(--sk-ink); }
.sk-home__extra .tab-content .small-post-content .title a:hover { color: var(--sk-tab-title, #7a1f2b); }
@media (max-width: 575px) {
	.sk-home__extra .tab-content { padding: 4px 14px 8px; }
	.sk-home__extra .tab-content .img-small-post { flex-basis: 96px; width: 96px; height: 64px; }
	.sk-home__extra .tabbed-head .nav-link { padding: 12px 4px; font-size: .92rem; }
}
