/*
Theme Name: Greatcomm Theme
Theme URI: https://lifeproduction.org/greatcomm-theme/
Author: Evangelist Aladesanmi
Author URI: https://lifeproduction.org
Description: A modern, high-contrast layout custom-tailored for global impact metrics, community architecture, and sleek typography layout systems. It is customizable and full functional Magazine theme for magazine and news websites. It is specially designed and developed for church and ministry websites that come with advanced front page.
Version: 1.2.0-dev2.46
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 8.0
Tags: blog, news, custom-logo, custom-menu, featured-images, one-column, two-columns, left-sidebar, right-sidebar, grid-layout, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, flexible-header, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, wide-blocks, blog, news
License: GNU General Public License v2 or later
License URI: http://gnu.org
Text Domain: greatcomm-theme
*/
:root {
    /* Main theme palette */
    --color-bg-main: #ffffff;
    --color-bg-surface: #f8f9fa;
    --color-bg-elevated: #e9ecef;
    --color-primary: #00cd6c;
    --color-primary-hover: #00a858;
    --color-text-main: #2b2d42;
    --color-text-muted: #6c757d;
    --color-text-dim: #6b7280;
    --color-text-light: #ffffff;

    /* Typography and shared UI */
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-smooth: all 0.2s ease-in-out;

    /* Theme components that use child-theme variables */
    --greatcomm-childtheme-text: #2b2d42;
    --greatcomm-childtheme-text-muted: #6c757d;
    --greatcomm-childtheme-bg: #ffffff;
    --greatcomm-childtheme-bg-alt: #f8f9fa;
    --greatcomm-childtheme-border: #e9ecef;
    --greatcomm-childtheme-accent: #00cd6c;
    --greatcomm-childtheme-accent-dark: #00a858;
    --greatcomm-childtheme-transition: 0.2s ease-in-out;
    --greatcomm-childtheme-radius: 8px;
    --greatcomm-childtheme-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
.gallery-caption {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.5rem 0 1rem;
}

.comment-list .bypostauthor > article {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
}

.wp-block-quote.is-style-greatcomm-highlight {
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-bg-surface);
    padding: 1.25rem 1.5rem;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover,
a:focus {
    color: var(--color-primary-hover);
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.container,
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.mrt20 { margin-top: 2rem; }
.mrb20 { margin-bottom: 2rem; }
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

#maincontainer {
    min-height: 70vh;
}

.content-area {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .content-area {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

article.post,
.template-surface-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-bg-elevated);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

article.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.post-title a {
    color: var(--color-text-main);
}

.post-title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.site-footer {
    background-color: var(--color-bg-surface);
    border-top: 2px solid var(--color-bg-elevated);
    padding: 3rem 0;
    margin-top: 4rem;
}

.load-icon {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-bg-elevated);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    animation: spin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.bgtoph {
    background-color: var(--color-primary) !important;
    color: var(--color-text-light) !important;
}

.bgtoph a {
    color: var(--color-text-light) !important;
}

.bgtoph a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.headermain {
    background-color: var(--color-bg-main) !important;
    padding: 2rem 0 !important;
    text-align: center;
}

.site-title a {
    color: var(--color-primary-hover) !important;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.site-description {
    color: var(--color-primary) !important;
    font-size: 1.1rem;
    font-style: italic;
}

.navbarprimary {
    background-color: var(--color-primary) !important;
    border-bottom: 3px solid var(--color-primary-hover) !important;
}

.navbarprimary .navbar-nav > li > a {
    color: var(--color-text-light) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 12px 18px !important;
}

.navbarprimary .navbar-nav > li > a:hover,
.navbarprimary .navbar-nav > .active > a {
    background-color: var(--color-primary-hover) !important;
    color: var(--color-text-light) !important;
}

.navbarprimary .dropdown-menu {
    background-color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary-hover) !important;
}

.dropdown-menu > li > a {
    color: var(--color-text-light) !important;
    background-color: var(--color-primary) !important;
}

.dropdown-menu > li > a:hover {
    background-color: var(--color-primary-hover) !important;
}

.greatcomm-theme-ticker-wrap {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    color: #ffffff;
    overflow: hidden;
    height: 38px;
    font-family: var(--font-primary);
    font-size: 13px;
    position: relative;
    z-index: 1000;
}

.greatcomm-theme-ticker-label {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.greatcomm-theme-ticker-track-outer {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.greatcomm-theme-ticker-track {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    animation: greatcomm-theme-ticker-scroll 30s linear infinite;
}

.greatcomm-theme-ticker-track:hover {
    animation-play-state: paused;
}

.greatcomm-theme-ticker-item {
    padding: 0 40px 0 0;
}

.greatcomm-theme-ticker-item a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.greatcomm-theme-ticker-item a::before {
    content: '●';
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 8px;
}

.greatcomm-theme-ticker-item a:hover {
    color: #ffffff;
}

@keyframes greatcomm-theme-ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

#greatcomm-childtheme-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 99999;
    transition: width 0.1s linear;
}

.greatcomm-theme-related-posts {
    margin: 48px 0 32px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
    clear: both;
}

.greatcomm-theme-related-posts__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a2e;
}

.greatcomm-theme-related-posts__title::before,
.greatcomm-theme-related-posts__title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.greatcomm-theme-related-posts__title::before {
    max-width: 40px;
}

.greatcomm-theme-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.greatcomm-theme-related-posts__item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.greatcomm-theme-related-posts__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.greatcomm-theme-related-posts__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.greatcomm-theme-related-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.greatcomm-theme-related-posts__item:hover .greatcomm-theme-related-posts__thumb img {
    transform: scale(1.05);
}

.greatcomm-theme-related-posts__body {
    padding: 14px 16px 16px;
}

.greatcomm-theme-related-posts__item-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 8px 0 6px;
}

.greatcomm-theme-related-posts__item-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.greatcomm-theme-related-posts__item-title a:hover {
    color: var(--color-primary);
}

.greatcomm-theme-related-posts__meta {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.greatcomm-theme-related-posts__meta .fa {
    margin-right: 4px;
}

@media (max-width: 767px) {
    .greatcomm-theme-related-posts__grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .greatcomm-theme-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* --------------------------------------------------------------------------
   4. Author Bio Box
   -------------------------------------------------------------------------- */
.greatcomm-theme-author-box {
	display:         flex;
	align-items:     flex-start;
	gap:             24px;
	margin:          36px 0 32px;
	padding:         28px;
	background:      var(--greatcomm-childtheme-bg-alt);
	border:          1px solid var(--greatcomm-childtheme-border);
	border-left:     4px solid var(--greatcomm-childtheme-accent);
	border-radius:   var(--greatcomm-childtheme-radius);
	clear:           both;
}

@media (max-width: 575px) {
	.greatcomm-theme-author-box {
		flex-direction:  column;
		align-items:     center;
		text-align:      center;
	}
}

.greatcomm-theme-author-box__avatar {
	flex-shrink:     0;
}

.greatcomm-theme-author-box__avatar img {
	width:           90px;
	height:          90px;
	border-radius:   50%;
	object-fit:      cover;
	border:          3px solid var(--greatcomm-childtheme-accent);
}

.greatcomm-theme-author-box__label {
	font-size:       11px;
	font-weight:     600;
	text-transform:  uppercase;
	letter-spacing:  0.1em;
	color:           var(--greatcomm-childtheme-accent);
	margin-bottom:   4px;
}

.greatcomm-theme-author-box__name {
	font-size:       18px;
	font-weight:     700;
	margin:          0 0 10px;
}

.greatcomm-theme-author-box__name a {
	color:           var(--greatcomm-childtheme-text);
	text-decoration: none;
}

.greatcomm-theme-author-box__name a:hover {
	color:           var(--greatcomm-childtheme-accent);
}

.greatcomm-theme-author-box__bio {
	font-size:       14px;
	color:           var(--greatcomm-childtheme-text-muted);
	line-height:     1.65;
	margin-bottom:   14px;
}

.greatcomm-theme-author-box__links {
	display:         flex;
	gap:             12px;
	flex-wrap:       wrap;
}

.greatcomm-theme-author-box__more,
.greatcomm-theme-author-box__website {
	display:         inline-flex;
	align-items:     center;
	gap:             6px;
	font-size:       13px;
	font-weight:     600;
	padding:         6px 14px;
	border-radius:   4px;
	text-decoration: none;
	transition:      background var(--greatcomm-childtheme-transition), color var(--greatcomm-childtheme-transition);
}

.greatcomm-theme-author-box__more {
	background:      var(--greatcomm-childtheme-accent);
	color:           #fff;
}

.greatcomm-theme-author-box__more:hover {
	background:      var(--greatcomm-childtheme-accent-dark);
	color:           #fff;
}

.greatcomm-theme-author-box__website {
	background:      transparent;
	color:           var(--greatcomm-childtheme-text-muted);
	border:          1px solid var(--greatcomm-childtheme-border);
}

.greatcomm-theme-author-box__website:hover {
	background:      var(--greatcomm-childtheme-bg);
	color:           var(--greatcomm-childtheme-text);
}


/* --------------------------------------------------------------------------
   5. Dark Mode Toggle Button
   -------------------------------------------------------------------------- */
.greatcomm-theme-dark-toggle {
	position:        fixed;
	bottom:          80px;
	right:           20px;
	width:           44px;
	height:          44px;
	border-radius:   50%;
	background:      #1a1a2e;
	color:           #fff;
	border:          none;
	cursor:          pointer;
	display:         flex;
	align-items:     center;
	justify-content: center;
	font-size:       20px;
	z-index:         9999;
	box-shadow:      0 4px 14px rgba(0, 0, 0, 0.25);
	transition:      background var(--greatcomm-childtheme-transition), transform var(--greatcomm-childtheme-transition);
}

.greatcomm-theme-dark-toggle:hover {
	background:      var(--greatcomm-childtheme-accent);
	transform:       scale(1.1);
}

.greatcomm-theme-dark-icon {
	line-height:     1;
}

/* Show sun in dark mode, moon in light mode */
html:not(.greatcomm-theme-dark-mode) .greatcomm-theme-icon-sun   { display: none; }
html.greatcomm-theme-dark-mode      .greatcomm-theme-icon-moon    { display: none; }

/* --------------------------------------------------------------------------
   6. Dark Mode — Full Palette Overrides
   -------------------------------------------------------------------------- */
html.greatcomm-theme-dark-mode {
	--greatcomm-childtheme-text:        #e2e8f0;
	--greatcomm-childtheme-text-muted:  #94a3b8;
	--greatcomm-childtheme-bg:          #0f172a;
	--greatcomm-childtheme-bg-alt:      #1e293b;
	--greatcomm-childtheme-border:      #334155;
}

html.greatcomm-theme-dark-mode body {
	background-color: #0f172a !important;
	color:            #e2e8f0 !important;
}

/* Header */
html.greatcomm-theme-dark-mode .headermain,
html.greatcomm-theme-dark-mode .container-fluid.headermain {
	background-color: #1e293b !important;
}

/* Top bar */
html.greatcomm-theme-dark-mode .bgtoph,
html.greatcomm-theme-dark-mode .container-fluid.bgtoph {
	background-color: #0f172a !important;
	border-bottom:    1px solid #334155 !important;
}

/* Navigation */
html.greatcomm-theme-dark-mode .navbar,
html.greatcomm-theme-dark-mode .masthead-nav,
html.greatcomm-theme-dark-mode #main-nav {
	background-color: #1e293b !important;
}

html.greatcomm-theme-dark-mode .navbar .nav-link,
html.greatcomm-theme-dark-mode #main-nav .nav-link {
	color:            #e2e8f0 !important;
}

html.greatcomm-theme-dark-mode .dropdown-menu {
	background-color: #1e293b !important;
	border-color:     #334155 !important;
}

html.greatcomm-theme-dark-mode .dropdown-item {
	color:            #e2e8f0 !important;
}

html.greatcomm-theme-dark-mode .dropdown-item:hover {
	background-color: #334155 !important;
}

/* Front Page Blocks */
html.greatcomm-theme-dark-mode .front-page-top-otr {
	background-color: #0f172a !important;
}

/* Content area */
html.greatcomm-theme-dark-mode .left-content,
html.greatcomm-theme-dark-mode .left-content p,
html.greatcomm-theme-dark-mode .left-content li,
html.greatcomm-theme-dark-mode .left-content span,
html.greatcomm-theme-dark-mode .dflt-anews-pst,
html.greatcomm-theme-dark-mode .entry-content,
html.greatcomm-theme-dark-mode .entry-content p,
html.greatcomm-theme-dark-mode .entry-content li,
html.greatcomm-theme-dark-mode .entry-content span,
html.greatcomm-theme-dark-mode article,
html.greatcomm-theme-dark-mode article p,
html.greatcomm-theme-dark-mode article li,
html.greatcomm-theme-dark-mode article span {
	color:            #e2e8f0 !important;
}

html.greatcomm-theme-dark-mode h1, html.greatcomm-theme-dark-mode h2,
html.greatcomm-theme-dark-mode h3, html.greatcomm-theme-dark-mode h4,
html.greatcomm-theme-dark-mode h5, html.greatcomm-theme-dark-mode h6 {
	color:            #f1f5f9 !important;
}

html.greatcomm-theme-dark-mode .content-first .content-second h1.the-title {
	color:      #f1f5f9 !important;
	box-shadow: none !important;
}

/* Disable light box-shadows that look out of place on dark backgrounds */
html.greatcomm-theme-dark-mode .content-third {
	box-shadow: none !important;
}

html.greatcomm-theme-dark-mode a {
	color:            #93c5fd !important;
}

/* Preserve original owl-carousel category badge colours in dark mode */
html.greatcomm-theme-dark-mode .owl-carousel.dim-owl-top .item .diowl-overlay .diowl-cat a,
html.greatcomm-theme-dark-mode .dim-front-left .diowl-overlay .diowl-cat a {
	color:            #ffffff !important;
	background-color: #00cc66 !important;
}

/* Preserve original front-categories headline link colours in dark mode */
html.greatcomm-theme-dark-mode .maincontainer .front-categories .front-single-category .front-single-category-headline h1 a,
html.greatcomm-theme-dark-mode .maincontainer .front-categories .front-single-category .front-single-category-headline p a {
	color:            #ffffff !important;
}

/* Keep single-post tag links white in dark mode. */
html.greatcomm-theme-dark-mode .singletags a,
html.greatcomm-theme-dark-mode .tagcloud a,
html.greatcomm-theme-dark-mode .post-navigation .nav-next a,
html.greatcomm-theme-dark-mode .post-navigation .nav-previous a {
	color: #ffffff !important;
}

html.greatcomm-theme-dark-mode a:hover {
	color:            #bfdbfe !important;
}

/* Sidebar & Layout Blocks */
html.greatcomm-theme-dark-mode .single-posst,
html.greatcomm-theme-dark-mode .postsloop,
html.greatcomm-theme-dark-mode .widget_sidebar_main,
html.greatcomm-theme-dark-mode aside .widget {
	background-color: #1e293b !important;
	border-color:     #334155 !important;
	color:            #e2e8f0 !important;
}

html.greatcomm-theme-dark-mode .right-widget-title {
	color:            #f1f5f9 !important;
	border-color:     var(--greatcomm-childtheme-accent) !important;
}

/* Footer */
html.greatcomm-theme-dark-mode .footer,
html.greatcomm-theme-dark-mode .container-fluid.footer {
	background-color: #0f172a !important;
	border-top:       1px solid #334155 !important;
}

html.greatcomm-theme-dark-mode .footer-copyright,
html.greatcomm-theme-dark-mode .container-fluid.footer-copyright {
	background-color: #020617 !important;
}

/* Cards */
html.greatcomm-theme-dark-mode .greatcomm-theme-related-posts__item,
html.greatcomm-theme-dark-mode .greatcomm-theme-author-box,
html.greatcomm-theme-dark-mode .greatcomm-theme-404-post-card {
	background-color: #1e293b !important;
	border-color:     #334155 !important;
}

html.greatcomm-theme-dark-mode .greatcomm-theme-related-posts__item-title a,
html.greatcomm-theme-dark-mode .greatcomm-theme-author-box__name a {
	color:            #f1f5f9 !important;
}

/* Preserve the "All Posts" button — it is a solid-color button, not a text link.
   The global dark-mode 'a' rule (#93c5fd) would otherwise turn its text blue. */
html.greatcomm-theme-dark-mode .greatcomm-theme-author-box__more,
html.greatcomm-theme-dark-mode .greatcomm-theme-author-box__more:hover {
	color:            #ffffff !important;
}

/* Forms */
html.greatcomm-theme-dark-mode input,
html.greatcomm-theme-dark-mode textarea,
html.greatcomm-theme-dark-mode select {
	background-color: #1e293b !important;
	color:            #e2e8f0 !important;
	border-color:     #334155 !important;
}


/* Now lives inside content-third (col-md-8 column), not a standalone full-width page.
   Reduced padding and centering to suit the narrower context. */
.greatcomm-theme-404-wrap {
	padding:         32px 0 24px;
	text-align:      center;
}

.greatcomm-theme-404-number {
	font-size:       clamp(60px, 12vw, 100px);
	font-weight:     900;
	line-height:     1;
	color:           var(--greatcomm-childtheme-accent);
	background:      linear-gradient(135deg, var(--greatcomm-childtheme-accent), #f97316);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom:   8px;
	user-select:     none;
}

.greatcomm-theme-404-heading {
	font-size:       clamp(24px, 5vw, 38px);
	font-weight:     800;
	margin-bottom:   14px;
	color:           var(--greatcomm-childtheme-text);
}

.greatcomm-theme-404-sub {
	font-size:       16px;
	color:           var(--greatcomm-childtheme-text-muted);
	margin-bottom:   32px;
}

.greatcomm-theme-404-search {
	max-width:       480px;
	margin:          0 auto 28px;
}

.greatcomm-theme-404-home-btn {
	display:         inline-flex;
	align-items:     center;
	gap:             8px;
	background:      var(--greatcomm-childtheme-accent);
	color:           #fff;
	padding:         12px 28px;
	border-radius:   6px;
	font-size:       15px;
	font-weight:     700;
	text-decoration: none;
	transition:      background var(--greatcomm-childtheme-transition);
	margin-bottom:   32px;
}

.greatcomm-theme-404-home-btn:hover {
	background:      var(--greatcomm-childtheme-accent-dark);
	color:           #fff;
}

.greatcomm-theme-404-posts-section {
	text-align:      left;
}

.greatcomm-theme-404-posts-heading {
	font-size:       20px;
	font-weight:     700;
	margin-bottom:   24px;
	padding-bottom:  12px;
	border-bottom:   2px solid var(--greatcomm-childtheme-accent);
	display:         inline-block;
}

.greatcomm-theme-404-post-card {
	background:      var(--greatcomm-childtheme-bg);
	border:          1px solid var(--greatcomm-childtheme-border);
	border-radius:   var(--greatcomm-childtheme-radius);
	overflow:        hidden;
	box-shadow:      var(--greatcomm-childtheme-card-shadow);
	margin-bottom:   24px;
	transition:      transform var(--greatcomm-childtheme-transition), box-shadow var(--greatcomm-childtheme-transition);
}

.greatcomm-theme-404-post-card:hover {
	transform:       translateY(-4px);
	box-shadow:      0 8px 24px rgba(0,0,0,0.12);
}

.greatcomm-theme-404-post-thumb img {
	width:           100%;
	aspect-ratio:    16 / 9;
	object-fit:      cover;
	display:         block;
	transition:      transform 0.4s ease;
}

.greatcomm-theme-404-post-card:hover .greatcomm-theme-404-post-thumb img {
	transform:       scale(1.05);
}

.greatcomm-theme-404-post-body {
	padding:         14px 16px 18px;
}

.greatcomm-theme-404-post-title {
	font-size:       15px;
	font-weight:     700;
	margin:          8px 0 6px;
	line-height:     1.4;
}

.greatcomm-theme-404-post-title a {
	color:           var(--greatcomm-childtheme-text);
	text-decoration: none;
}

.greatcomm-theme-404-post-title a:hover {
	color:           var(--greatcomm-childtheme-accent);
}

.greatcomm-theme-404-post-meta {
	font-size:       12px;
	color:           var(--greatcomm-childtheme-text-muted);
	margin:          0;
}

/* --------------------------------------------------------------------------
   8. Sticky Sidebar
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
	.right-content.dflt-sidebar {
		position:        sticky;
		top:             calc( var(--wp-admin--admin-bar--height, 0px) + 8px );
	}
}

/* --------------------------------------------------------------------------
   9. General Utility / Refinements
   -------------------------------------------------------------------------- */

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}



/* GreatComm authoritative footer navigation and consistent container alignment. */
.site-footer { box-sizing: border-box; width: 100%; overflow: hidden; }
.site-footer .footer-copyright > .container { box-sizing: border-box; width: 100%; max-width: 1170px; margin-right: auto; margin-left: auto; padding-right: 15px; padding-left: 15px; }
@media (max-width: 767px) { .site-footer .greatcomm-footer-navigation > .container, .site-footer .footer-copyright > .container { padding-right: 15px; padding-left: 15px; } }


/* Dev 2.26: Footer widget navigation blocks must not compete with the
   dedicated GreatComm Footer Navigation location. */
.site-footer .footer .wp-block-navigation,
.site-footer .footer .wp-block-page-list,
.site-footer .footer .widget_block .wp-block-navigation {
    display: none !important;
}


/* Dev 2.42: mobile viewport and responsive layout refinements.
   Keep the established desktop layout unchanged. */
@media (max-width: 767px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    #maincontainer, #content, #content > .row,
    .front-page-top, .front-page-top-otr,
    .site-header-main, .site-header-main > .container,
    .site-header-main .site-header-main-row {
        max-width: 100%;
        min-width: 0;
    }
    #maincontainer { padding-left: 0; padding-right: 0; }
    #content { padding-left: 12px; padding-right: 12px; }
    .site-header-main .site-header-main-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .site-header-main .site-branding,
    .site-header-main .header-left-widgets,
    .site-header-main .header-right-widgets {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: center;
    }
    .site-header-main .site-branding img,
    .site-header-main .custom-logo {
        max-width: min(80vw, 260px);
        height: auto;
        margin: 0 auto;
    }
    .spsl-topbar-container .topbar-content-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }
    .spsl-topbar-container .spsl-topbar-left-cntr,
    .spsl-topbar-container .spsl-fr-topbar-icons {
        width: 100%;
        max-width: 100%;
        justify-content: center !important;
        text-align: center;
    }
    .site-navigation-bar > .container {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
    }
    .site-navigation-bar .menu-toggle {
        width: 44px;
        height: 40px;
        min-width: 44px;
        min-height: 40px;
        padding: 7px 10px;
        margin: 0;
        flex: 0 0 auto;
    }
    .site-navigation-bar .hamburger-bar { width: 22px; height: 2px; }
    .front-page-canvas-area, .front-page-sidebar,
    .content-area, .right-content, .left-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 100%;
    }
    .front-page-top .owl-carousel,
    .front-page-top .owl-stage-outer,
    .front-page-top .owl-stage { max-width: 100%; }
    .front-page-top .dim-figure,
    .front-page-top .dim-figure img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    .front-single-category-dimasonry { width: 100%; }
    .front-single-category-contents { min-width: 0; max-width: 100%; }
    article.post, .template-surface-card { padding: 16px; }
}
