/*
Theme Name:   Stream
Theme URI:    https://stream-site.local
Description:  Child theme of Flatsome for Stream site
Author:       Stream
Author URI:   https://stream-site.local
Template:     flatsome
Version:      1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain:  stream
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --------------------------------------------------------------------------
   Layout: sidebar 20% + content 80%, footer inside content
   -------------------------------------------------------------------------- */
   .stream-body-wrap {
	display: flex;
	flex-wrap: nowrap;
	min-height: 50vh;
}

.stream-sidebar {
	position: relative;
	width: 16%;
	flex: 0 0 16%;
	background: #fff;
	box-sizing: border-box;
	padding: 1.5rem 1rem 2rem;
	transition: width 0.25s ease, flex 0.25s ease, padding 0.25s ease;
}

.stream-sidebar.is-closed {
	width: 48px;
	flex: 0 0 48px;
	padding: 1rem 0.5rem;
}

.stream-sidebar.is-closed .stream-sidebar-inner {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
	position: absolute;
	width: 0;
	height: 0;
}

.stream-sidebar-toggle {
	position: absolute;
	top: 1.75rem;
    right: 1.5rem;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 6px;
	color: #111;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	margin: 0;
}

.stream-sidebar-toggle:hover {
	color: #ff9900;
}

.stream-sidebar-toggle:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.stream-sidebar.is-closed .stream-sidebar-toggle {
	left: 0;
}
.stream-sidebar-toggle .stream-sidebar-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.stream-sidebar-toggle .stream-sidebar-toggle-icon svg {
	display: block;
}

.stream-content {
	width: 84%;
	flex: 1 1 84%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.stream-footer-inner {
	margin-top: auto;
}

/* Sidebar: menu + topics */
.stream-sidebar-inner {
	position: sticky;
	top: 1rem;
	min-height: calc(100vh - 120px);
    background: #f1f1f1;
    padding: 10px;
    border-radius: 10px;
}

.stream-sidebar-title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
	padding: 0;
	font-weight: 600;
	color: #333;
}

.stream-sidebar-nav + .stream-sidebar-topics .stream-sidebar-title {
	margin-top: 1.5rem;
}

.stream-sidebar-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stream-sidebar-menu li {
	margin: 0 0 2px;
}

.stream-sidebar-menu a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
	color: #333;
	border-radius: 4px;
	transition: background 0.15s ease;
}

.stream-sidebar-menu .ux-sidebar-menu-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.stream-sidebar-menu a:hover,
.stream-sidebar-menu .current-menu-item a {
	background: rgba(0, 0, 0, 0.06);
}

.stream-sidebar-menu .current-menu-item a {
	font-weight: 600;
}

.stream-topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stream-topic-list li {
	margin: 0 0 2px;
}

.stream-topic-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.4rem 0.75rem;
	text-decoration: none;
	color: #555;
	font-size: 0.9rem;
	border-radius: 4px;
	transition: background 0.15s ease;
}

.stream-topic-list .stream-topic-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.stream-topic-list .stream-topic-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stream-topic-list .stream-topic-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.stream-topic-list .stream-topic-count {
	flex-shrink: 0;
}

.stream-topic-list a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.stream-topic-count {
	opacity: 0.8;
	font-size: 0.85em;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.stream-topic-count-dot {
	color: #c00;
	font-size: 0.4em;
	vertical-align: middle;
}

.stream-content {
	padding: 1rem 1rem 0 1rem;
	min-height: 100vh;
}
@media (max-width: 849px) {
	.stream-body-wrap {
		flex-direction: column;
	}

	.stream-sidebar {
		width: 100%;
		flex: none;
		border-right: none;
		border-bottom: 1px solid #eee;
		padding: 1rem;
	}

	.stream-sidebar.is-closed {
		width: 100%;
		flex: none;
		min-height: 48px;
		padding: 0.5rem 1rem;
	}

	.stream-sidebar-toggle {
		right: 0.5rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.stream-content {
		width: 100%;
		flex: none;
	}
}

/* -------------------------------------------------------------------------- */

body {
    font-size: 0.95rem;
}

blockquote, dl, figure, form, ol, pre, ul {
	margin-bottom: 0;
}

p {
    margin-bottom: 5px;
}

.header-bg-image {
    background-size: 100% 100%;
    box-sizing: border-box;
    display: flex;
    height: 100%;
    justify-content: space-between;
    width: 100%;
}

body .header-main {
    height: auto;
    padding: 0.6rem 0.8rem;
}

#logo img {
    height: 39px;
}

.c-footer-2 .stack-col {
    flex-direction: row;
    gap: 1.2rem;
}

.c-footer-1-text {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.c-footer-2 {
    padding: 1rem 0;
}

.absolute-footer {
	display: none !important;
}

#menu-vertical-menu svg, .mobile-sidebar svg {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

#menu-vertical-menu svg path, .mobile-sidebar svg path {
	fill: #000;
}

#menu-vertical-menu li:hover svg path, #menu-vertical-menu.stream-sidebar-menu .current-menu-item svg path, .mobile-sidebar li:hover svg path, .mobile-sidebar .current-menu-item svg path {
	fill: #ff9903;
}

.stream-topic-list a:hover, .mobile-sidebar li a:hover, .mobile-sidebar .current-menu-item a  {
	color: #ff9903;
}

.stream-sidebar-menu .current-menu-item a, #menu-vertical-menu li:hover a   {
	color: #ff9903;
	border: 1px solid #ff9903;
}

.box-content {
	background-color: #f1f1f1;
    border-radius: 10px;
    box-sizing: border-box;
	padding: 1.5rem;
    box-shadow: 0 0 .15625rem rgba(0, 0, 0, 0.1);
}
.ux-menu-link--active a, .ux-menu-link__link:hover {
	color: #ff9900 !important;
}

.qc-catfish {
	position: fixed;
    bottom: 0;
    left: calc(16% + 42%);
    transform: translateX(-50%);
}

.qc-catfish i {
	position: absolute;
    right: -8px;
    z-index: 999;
    top: -14px;
    background: white;
    border-radius: 20px;
	font-size: 24px;
	color: #ff9900;
	cursor: pointer;
}

.qc-catfish i:hover {
	color: #c00;
}

@media (max-width: 1024px) {
	.qc-catfish {
		left: 0;
		transform: none;
	}
	.qc-catfish  .col {
		padding-bottom: 0;
	}
}
@media (max-width: 849px) {
	.stream-sidebar {
		display: none;
	}
	.header-bg-image {
		background: white;
		background-image: none !important;
	}
	.stream-sidebar-topics {
		width: 100%;
	}
	.stream-topic-list li a {
		padding-left: 0 !important;
	}
}