/**
 * Theme Name: theDivest
 * Version: 1.1
 * Author: Zuladeen Ibrahim
 * Author URI: https://www.facebook.com/maxlord
 * Description: Theme for image uploader
 */

/**
 * CSS reset & clearfix
 */

/* FIX #14: Removed dead vendor prefixes (-webkit-box-sizing, -moz-box-sizing, etc.) */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike,
strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
/* Keep -webkit-appearance only on form elements where iOS Safari still needs it */
input, select, textarea, button { -webkit-appearance: none; appearance: none; }
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; max-width: 100%; }
/* Keep -webkit-text-size-adjust: iOS Safari still requires it */
html { -webkit-text-size-adjust: 100%; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
:focus { outline: 0; }
ins { text-decoration: none; }
del { text-decoration: line-through; }
table { width: 100%; border-collapse: collapse; border-spacing: 0; }

/* FIX #15: Modern clearfix — replaces the content:"." visibility:hidden hack */
.clearfix::after { content: ""; display: table; clear: both; }
.clearfix { display: block; }
.none { display: none; }

/**
 * Global Styles
 */

body, input, textarea, select { font: normal 14px/20px "Roboto", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; background: #fff; color: #222; }

body { overflow-y: scroll; line-height: 25px; background: #1d934f url("assets/images/bg.png") top center fixed; }

a { text-decoration: none; }

img { display: inline-block; vertical-align: top; max-width: 100%; height: auto; }

input[type=text],
select { height: 40px; padding: 0 14px; border: 1px solid #e5e5e5; background: #fff; }
select { padding: 0 11px; }

input[type=submit] { cursor: pointer; padding: 0 15px; height: 40px; border: none; background: #25c86a; color: #fff; }
input[type=submit]:hover { background: #222; }

code, kbd, tt, var, samp, pre { font-family: monospace; hyphens: none; }

/**
 * Transitions
 */

/* FIX #14: Removed -webkit-/-moz-/-ms-/-o-transition vendor prefixes (dead weight) */
a,
input,
textarea,
select,
button,
#featured,
#posts .hentry .inner { transition: 0.3s; }

/**
 * Layouts
 */

.container { width: 960px; margin: 0 auto; }

#main-page { margin: 30px 0; }

#main { padding: 30px; background: #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.single #main,
.page #main { padding: 0; }

#main-content { position: relative; padding: 30px; background: #fff; }
#main-content:before { position: absolute; top: 0; right: 300px; width: 1px; height: 100%; content: ''; background: #e5e5e5; }

#primary { float: left; width: 100%; margin-right: -300px; }
#primary #content { margin-right: 300px; }

#secondary { float: right; width: 240px; }

/**
 * Header
 */

#header { position: relative; padding: 15px 0; background: #333; border-top: 5px solid #25c86a; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
#header.fixed { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; }

#header .container { position: relative; }

#header .toggle-menu { display: none; float: left; margin-right: 15px; line-height: 30px; font-size: 20px; color: #fff; }

#header .logo { float: left; position: relative; z-index: 10; }
#header .logo a { display: block; width: 148px; height: 30px; text-indent: -99999em; background: url("assets/images/logo.png") no-repeat; }

#header .fly { position: absolute; top: 0; left: 0; padding-left: 181px; width: 100%; }
#header .fly.secondary { display: none; }

#header .tagline { float: left; line-height: 30px; font-weight: normal; color: #ccc; }

#header .account { float: right; }
#header .account li { float: left; position: relative; }
#header .account li .parent { display: block; position: relative; top: 5px; line-height: 40px; padding: 0 15px; margin-top: -10px; color: #fff; }
#header .account li .parent.has-avatar { padding: 0 5px; }
#header .account li:hover > .parent,
#header .account li .parent.active { background: #444; }
#header .account li img { position: relative; top: 5px; }
#header .account li ul { display: none; position: absolute; padding: 5px; top: 100%; right: 0; width: 150px; margin-top: 15px; background: #444; }
#header .account li ul li { float: none; margin-bottom: 5px; }
#header .account li ul li:last-child { margin-bottom: 0; }
#header .account li ul li a { display: block; padding: 3px 10px 2px 10px; color: #bbb; background: #333; border: 1px solid #333; }
#header .account li ul li a:hover { border-color: #25c86a; }

#header .secondary .title { margin-left: 45px; padding-right: 330px; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 600; color: #fff; }
#header .secondary .sharer { position: absolute; top: 0; right: 0; width: 300px; }
#header .secondary .sharer .item { float: left; width: 50%; }
#header .secondary .sharer .item.fb { padding-right: 5px; }
#header .secondary .sharer .item.tw { padding-left: 5px; }
#header .secondary .sharer .item a { display: block; position: relative; top: -5px; line-height: 40px; padding: 0 15px; text-align: center; color: #fff; border-radius: 4px; }
#header .secondary .sharer .item.fb a { background: #3b5999; }
#header .secondary .sharer .item.tw a { background: #55acee; }
#header .secondary .sharer .item a span { position: absolute; top: 12px; left: 15px; width: 8px; height: 16px; background: url("assets/images/sharer-icon.png") no-repeat; }
#header .secondary .sharer .item.fb a { padding-left: 24px; }
#header .secondary .sharer .item.fb a:hover { background: #2e4984; }
#header .secondary .sharer .item.tw a { padding-left: 31px; }
#header .secondary .sharer .item.tw a:hover { background: #4194d3; }
#header .secondary .sharer .item.tw a span { width: 16px; background-position: -8px 0; }

/**
 * Nav
 */

#nav { position: relative; height: 40px; background: #252525; }
#nav.fixed { position: fixed; top: 0; left: 0; width: 100%; z-index: 8888; }
#nav.fixed a { transition: none; }
#nav.invisible { visibility: hidden; }

#nav .container { position: relative; overflow: hidden; }

#nav .main-menu ul,
#nav .main-menu li { display: inline-block; }

#nav .main-menu { position: relative; max-width: 100%; white-space: nowrap; overflow-x: auto; }

#nav .main-menu li { margin-right: 15px; }
#nav .main-menu li:last-child { margin-right: 0; }
#nav .main-menu li a { display: block; line-height: 40px; color: #fff; }
#nav .main-menu li:hover > a,
#nav .main-menu .current_page_item > a,
#nav .main-menu .current_page_ancestor > a,
#nav .main-menu .current-menu-item > a,
#nav .main-menu .current-menu-ancestor > a { color: #25c86a; }
#nav .main-menu .open > a { padding: 0 15px; background: #454545; }

#nav .open-search { position: absolute; right: 0; z-index: 5; top: -1px; width: 40px; height: 40px; line-height: 40px; text-align: center; color: #fff; }

#nav .search-form { position: absolute; right: -200px; top: 5px; width: 100%; max-width: 200px; transition: 0.3s; }
#nav .search-form input[type=text] { width: 100%; height: 30px; padding: 0 40px 0 14px; background: #050505; border: 1px solid transparent; color: #fff; border-radius: 2px; }

/**
 * Dropdown Nav
 */

#dropdown-nav { display: none; position: relative; z-index: 100; padding: 7px 0 8px 0; background: #454545; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
#dropdown-nav li { float: left; width: 16.66666666666666666666666%; }
#dropdown-nav li a { display: block; padding-right: 15px; color: #fff; }
#dropdown-nav li:hover > a,
#dropdown-nav .main-menu .current_page_item > a,
#dropdown-nav .main-menu .current_page_ancestor > a,
#dropdown-nav .main-menu .current-menu-item > a,
#dropdown-nav .main-menu .current-menu-ancestor > a { color: #25c86a; }

/**
 * Mobile Menu
 */

#mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; background: rgba(0,0,0,0.8); }
#mobile-menu .main { position: fixed; top: 0; left: 0; width: 100%; max-width: 240px; height: 100%; background: #111; }
#mobile-menu #top { padding: 10px 5px; background: #333; }
#mobile-menu #top .left { float: left; }
#mobile-menu #top .right { float: right; }
/* FIX #19: Minimum 44×44px touch targets for mobile menu icons */
#mobile-menu #top a { float: left; min-width: 44px; min-height: 44px; padding: 0 10px; line-height: 44px; color: #fff; display: flex; align-items: center; justify-content: center; }
#mobile-menu .main-menu { padding: 7px 0 8px 0; }
#mobile-menu .main-menu li a { display: block; padding: 0 15px 0 15px; color: #fff; }
#mobile-menu .main-menu li:hover > a { color: #25c86a; }
#mobile-menu .main-menu li ul { display: none; position: relative; margin: -7px 0 0 15px; padding-bottom: 7px; }
#mobile-menu .main-menu .menu-item-has-children { margin: 7px 0 8px 0; background: #333; }
#mobile-menu .main-menu .menu-item-has-children > a { position: relative; padding: 7px 15px 8px 15px; background: #333; }
#mobile-menu .main-menu .menu-item-has-children > a:after { display: inline-block; text-rendering: auto; margin-left: 4px; line-height: 1; content: "\f0d7"; font-weight: 900; font-style: normal; font-variant: normal; font-family: 'Font Awesome 5 Free';  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; }

/**
 * Ad after header
 */

.ad-after-header { padding-bottom: 30px; text-align: center; }

/**
 * Featured
 */

#featured { background: #fff; }
#featured:hover { box-shadow: 0 0 15px rgba(0,0,0,0.3); }

#featured .primary { float: left; position: relative; width: 60%; height: 100%; min-height: 300px; }
#featured .primary .thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
#featured .primary .thumb img { height: 300px; object-fit: cover; }
#featured .primary .header { position: absolute; bottom: 0; left: 0; padding: 15px; width: 100%; text-shadow: 0 0 3px rgba(0,0,0,0.8); background: rgba(0,0,0,0.5); }
#featured .primary .header .title { margin: -7px 0 0 0; line-height: 29px; font-size: 20px; font-weight: 600; }
#featured .primary .header .title a { color: #fff; }
#featured .primary .header .by { margin-bottom: -7px; color: #ccc; }
#featured .primary .header .by a { color: #25c86a; }
#featured .primary .header .by a:hover { text-decoration: underline; }

#featured .secondary { float: right; width: 40%; padding: 15px; }
#featured .secondary .post { position: relative; margin-bottom: 15px; }
#featured .secondary .post:last-child { margin-bottom: 0; }
#featured .secondary .post .thumb { float: left; width: 120px; height: 80px; overflow: hidden; }
#featured .secondary .post .detail { margin-left: 135px; }
#featured .secondary .post .detail .title { position: relative; max-height: 50px; font-size: 14px; font-weight: 600; overflow: hidden; }
#featured .secondary .post .detail .title:before { position: absolute; bottom: 0; right: 0; width: 40px; height: 40px; content: ''; background: linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,1)); }
#featured .secondary .post .detail .title a { color: #222; }
#featured .secondary .post:hover > .detail .title a { color: #25c86a; }
#featured .secondary .post .detail .category { position: absolute; bottom: -7px; right: 0; text-transform: uppercase; text-align: right; }
#featured .secondary .post .detail .category a { font-weight: 600; color: #999; }

/**
 * Archive Title
 */

.archive-title { margin: -8px 0 -7px 0; line-height: 33px; font-size: 24px; font-weight: 600; }

/**
 * Search Filter
 */

#search-filter .query-field { margin-bottom: 15px; }
#search-filter .query-field input { width: 100%; }

#search-filter .advanced-fields-main { margin-right: -15px; }
#search-filter .advanced-fields { display: table; width: 100%; }
#search-filter .advanced-fields .field { display: table-cell; width: 25%; padding-right: 15px; vertical-align: top; }
#search-filter .advanced-fields .field label { display: block; margin: -8px 0 8px 0; }
#search-filter .advanced-fields .field label a { text-decoration: underline; color: #222; }
#search-filter .advanced-fields .field label a:hover { color: #25c86a; }
#search-filter .advanced-fields .field input,
#search-filter .advanced-fields .field select { width: 100%; margin-bottom: 15px; }
#search-filter .advanced-fields .field input:last-child,
#search-filter .advanced-fields .field select:last-child { margin-bottom: 0; }

/**
 * Content Nav
 */

#content-nav { margin-top: 30px; border-bottom: 3px solid #fff; }
#content-nav li { float: left; margin-right: 5px; }
#content-nav li:last-child { margin-right: 0; }
#content-nav li ul { display: none; }
#content-nav li a { display: block; padding: 8px 15px 7px 15px; text-transform: uppercase; font-weight: 600; background: #f5f5f5; color: #222; }
#content-nav li a:hover,
#content-nav .current > a { background: #fff; }

/**
 * Posts
 */

#posts { margin: 20px -10px 0 0; }

#posts .hentry { float: left; width: 50%; padding: 10px 10px 0 0; }
#posts .hentry.full { width: 100%; }
#posts .hentry .inner { background: #fff; }
#posts .hentry .inner:hover { box-shadow: 0 0 15px rgba(0,0,0,0.3); }
#posts .hentry .inner .thumb { position: relative; text-align: center; background: #f5f5f5; }
#posts .hentry .inner .thumb .video-icon { position: absolute; top: 50%; left: 50%; margin: -32px 0 0 -32px; width: 64px; height: 64px; padding: 16px 0 0 4px; text-align: center; font-size: 18px; background: rgba(0,0,0,0.3); color: #fff; border: 3px solid #fff; border-radius: 64px; }
#posts .hentry .inner .detail { padding: 7px 15px 15px 15px; }
#posts .hentry .inner .title { height: 60px; margin-bottom: 8px; line-height: 30px; overflow: hidden; text-align: center; font-size: 20px; font-weight: 600; }
#posts .hentry.full .inner .title { height: auto; margin-bottom: 23px; }
#posts .hentry .inner .title a { color: #222; }
#posts .hentry .inner .title a:hover { color: #25c86a; }
#posts .hentry .inner .summary { display: none; }
#posts .hentry.full .inner .summary { display: block; margin: -8px 0 23px 0; text-align: center; }
#posts .hentry .inner .meta { display: table; width: 100%; }
#posts .hentry .inner .meta .column { display: table-cell; width: 30%; line-height: 19px; vertical-align: top; font-size: 12px; }
#posts .hentry .inner .meta .left { color: #777; }
#posts .hentry .inner .meta .left a { font-weight: 600; color: #222; }
#posts .hentry .inner .meta .left a:hover { color: #25c86a; }
#posts .hentry .inner .meta .left a.avatar { float: left; width: 28px; }
#posts .hentry .inner .meta .left .right { position: relative; top: -5px; margin: 0 0 -10px 38px; }
#posts .hentry .inner .meta .left .right span { display: block; }
#posts .hentry .inner .meta .interactions { width: 40%; padding: 0 15px; text-align: center; }
#posts .hentry .inner .meta .cat { text-align: right; }
#posts .post-ad { float: left; width: 100%; padding: 10px 10px 0 0; }

.hentry .interactions .item { display: inline-block; line-height: 26px; padding: 0 6px; margin-right: 2px; text-align: center; border: 1px solid #ddd; color: #777; }
.hentry .interactions .item:last-child { margin-right: 0; }
.hentry .interactions span.item { cursor: default; }
.hentry .interactions .item i,
.hentry .interactions .item span { margin: 0 2px; }
.hentry .interactions .like.enabled:hover,
.hentry .interactions .like.active { border-color: #25c86a; color: #25c86a; }
.hentry .interactions .unlike.enabled:hover,
.hentry .interactions .unlike.active { border-color: #e23838; color: #e23838; }
.hentry .interactions .comments { position: relative; }
.hentry .interactions .comments:before { display: inline-block; text-rendering: auto; margin-right: 4px; line-height: 1; content: "\f075"; font-weight: 900; font-style: normal; font-variant: normal; font-family: 'Font Awesome 5 Free';  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; }
.hentry .interactions .comments:hover { color: #25c86a; }
.hentry .cat a { display: inline-block; position: relative; line-height: 28px; padding: 0 9px; margin-right: -15px; background: #222; color: #fff; }
.hentry .cat a span { display: inline-block; position: relative; top: -1px; width: 20px; height: 20px; line-height: 20px; margin-left: 5px; text-align: center; font-size: 9px; background: rgba(0,0,0,0.3); border-radius: 20px; }
.hentry .cat a span i { position: relative; top: 6px; vertical-align: top; }

.hentry .entry-meta { margin-bottom: 30px; }
.hentry .entry-meta.cat a span { top: -2px; }
.hentry .entry-title { margin: -8px 0 23px 0; line-height: 33px; font-size: 24px; font-weight: 600; }
.hentry .entry-meta.bottom { line-height: 19px; font-size: 12px; }
.hentry .entry-meta.bottom .left { float: left; margin-right: 30px; }
.hentry .entry-meta.bottom .left a.avatar { float: left; width: 48px; height: 48px; }
.hentry .entry-meta.bottom .left .right { position: relative; top: -5px; margin: 0 0 -10px 63px; }
.hentry .entry-meta.bottom .left .right span { display: block; }
.hentry .entry-meta.bottom .left .right a { color: #25c86a; }
.hentry .entry-meta.bottom .left .right a:hover { text-decoration: underline; }
.hentry .entry-meta.bottom .interactions { float: right; position: relative; top: 10px; }

.hentry .entry-content { margin: -8px 0 -7px 0; }
/* FIX #12: Replace fitvids.js — CSS handles responsive video natively */
.hentry .entry-content iframe,
.hentry .entry-content video,
.hentry .entry-content embed,
.hentry .entry-content object {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.hentry .entry-content h1,
.hentry .entry-content h2,
.hentry .entry-content h3,
.hentry .entry-content h4,
.hentry .entry-content h5,
.hentry .entry-content h6 { font-weight: 600; }
.hentry .entry-content h1 { line-height: 31px; font-size: 22px; }
.hentry .entry-content h2 { line-height: 30px; font-size: 20px; }
.hentry .entry-content h3 { line-height: 28px; font-size: 18px; }
.hentry .entry-content h4 { line-height: 27px; font-size: 16px; }
.hentry .entry-content h5 { line-height: 25px; font-size: 14px; }
.hentry .entry-content h6 { line-height: 24px; font-size: 12px; }
.hentry .entry-content ul { list-style: disc; }
.hentry .entry-content ol { list-style: decimal; }
.hentry .entry-content ul,
.hentry .entry-content ol { padding-left: 15px; list-style-position: inside; }
.hentry .entry-content blockquote { padding-left: 15px; line-height: 27px; font-size: 16px; font-style: italic; color: #777; }
.hentry .entry-content .alignleft,
.hentry .entry-content .alignright,
.hentry .entry-content .aligncenter,
.hentry .entry-content .alignnone { margin: 8px 0; }
.hentry .entry-content .alignleft { float: left; margin-right: 30px; margin-bottom: 23px; }
.hentry .entry-content .alignright { float: right; margin-left: 30px; margin-bottom: 23px; }
.hentry .entry-content .aligncenter { display: block; margin: 23px auto; }
.hentry .entry-content p,
.hentry .entry-content h1,
.hentry .entry-content h2,
.hentry .entry-content h3,
.hentry .entry-content h4,
.hentry .entry-content h5,
.hentry .entry-content h6,
.hentry .entry-content ul,
.hentry .entry-content ol,
.hentry .entry-content blockquote,
.hentry .entry-content pre { margin-bottom: 15px; }
.hentry .entry-content pre { max-width: 100%; overflow: auto; padding: 8px 15px 7px 15px; margin: 23px 0; overflow: auto; white-space: pre; white-space: pre-wrap; word-wrap: break-word; border: 1px solid #dbdddf; border-radius: 4px; }
.hentry .entry-content p:last-child,
.hentry .entry-content h1:last-child,
.hentry .entry-content h2:last-child,
.hentry .entry-content h3:last-child,
.hentry .entry-content h4:last-child,
.hentry .entry-content h5:last-child,
.hentry .entry-content h6:last-child,
.hentry .entry-content ul:last-child,
.hentry .entry-content ol:last-child,
.hentry .entry-content blockquote:last-child,
.hentry .entry-content pre:last-child { margin-bottom: 0; }

.content-end { float: left; width: 100%; }

.gallery-items { margin-bottom: 22px; }
.gallery-items:first-child { margin-top: 38px; }
.gallery-items:last-child { margin-bottom: 0; }
.gallery-items .gallery-item { margin-bottom: 30px; }
.gallery-items .gallery-item:last-child { margin-bottom: 0; }
.gallery-items .gallery-image { position: relative; }
.gallery-items .gallery-image span { position: absolute; top: 0; right: 100%; padding: 5px 10px; min-width: 30px; text-align: center; line-height: 19px; font-size: 12px; font-weight: 600; background: #ddd; }
.gallery-items .gallery-item:hover > .gallery-image span { background: #25c86a; color: #fff; }
.gallery-items .gallery-credit { margin: 10px 0 -5px 0; line-height: 19px; font-size: 12px; color: #999; }
.gallery-items .gallery-credit a { color: #999; }
.gallery-items .gallery-credit a:hover { text-decoration: underline; }
.gallery-items .gallery-caption { margin: 22px 0 -7px 0; }

.hentry .entry-sharer { margin: 30px -10px 0 0; }
.hentry .entry-sharer .inner { display: table; width: 100%; }
.hentry .entry-sharer .inner .item { display: table-cell; padding-right: 10px; vertical-align: top; }
.hentry .entry-sharer .inner .item a { display: block; line-height: 40px; height: 40px; padding: 0 15px; text-align: center; background: #eee; color: #fff; border-radius: 4px; }
.hentry .entry-sharer .inner .item a span { display: inline-block; position: relative; top: 2px; height: 16px; margin-right: 10px; background: url("assets/images/sharer-icon.png") no-repeat; }
.hentry .entry-sharer .inner .item.fb { width: 30%; }
.hentry .entry-sharer .inner .item.fb a { background: #3b5999; }
.hentry .entry-sharer .inner .item.fb a:hover { background: #2e4984; }
.hentry .entry-sharer .inner .item.fb a span { width: 8px; }
.hentry .entry-sharer .inner .item.tw { width: 30%; }
.hentry .entry-sharer .inner .item.tw a { background: #55acee; }
.hentry .entry-sharer .inner .item.tw a:hover { background: #4194d3; }
.hentry .entry-sharer .inner .item.tw a span { width: 16px; background-position: -8px 0; }
.hentry .entry-sharer .inner .item.pt { width: 10%; }
.hentry .entry-sharer .inner .item.pt a { background: #bd081c; }
.hentry .entry-sharer .inner .item.pt a:hover { background: #9f0415; }
.hentry .entry-sharer .inner .item.pt a span { width: 12px; margin-right: 0; background-position: -24px 0; }
.hentry .entry-sharer .inner .item.rd { width: 10%; }
.hentry .entry-sharer .inner .item.rd a { background: #ff6600; }
.hentry .entry-sharer .inner .item.rd a:hover { background: #de5b03; }
.hentry .entry-sharer .inner .item.rd a span { width: 16px; margin-right: 0; background-position: -36px 0; }
.hentry .entry-sharer .inner .item.ml { width: 10%; }
.hentry .entry-sharer .inner .item.ml a { background: #25c86a; }
.hentry .entry-sharer .inner .item.ml a:hover { background: #1aad58; }
.hentry .entry-sharer .inner .item.ml a span { width: 16px; margin-right: 0; background-position: -52px 0; }
.hentry .entry-sharer .inner .item.wa { width: 10%; }
.hentry .entry-sharer .inner .item.wa a { background: #25D366; }
.hentry .entry-sharer .inner .item.wa a:hover { background: #1bbb57; }
.hentry .entry-sharer .inner .item.wa a span { width: 16px; margin-right: 0; background-position: -68px 0; }

.hentry .single-post-ad.top { margin-bottom: 30px; }
.hentry .single-post-ad.bottom { margin-top: 30px; }

#related-comments { padding: 30px; border-top: 1px solid #eee; background: #fff; }

#related-comments #related { position: relative; margin-bottom: 15px; background: #eee; }
#related-comments #related .thumb,
#related-comments #related .detail { float: left; width: 50%; }
#related-comments #related .thumb img { object-fit: cover; max-height: 320px; }
#related-comments #related .detail { padding: 30px; }
#related-comments #related .detail .label { margin: -5px 0 30px 0; padding-bottom: 10px; line-height: 25px; font-size: 20px; text-transform: uppercase; color: #777; border-bottom: 1px solid #444; }
#related-comments #related .detail .title { margin: -8px 0 -7px 0; line-height: 33px; font-size: 24px; font-weight: 600; }
#related-comments #related .detail .title a { color: #222; }
#related-comments #related .detail .cat { position: absolute; bottom: 30px; right: 0; }
#related-comments #related .detail .cat a { display: inline-block; position: relative; line-height: 28px; padding: 0 9px; background: #222; color: #fff; }
#related-comments #related .detail .cat a span { display: inline-block; position: relative; top: -2px; width: 20px; height: 20px; line-height: 20px; margin-left: 5px; text-align: center; font-size: 9px; background: rgba(0,0,0,0.3); border-radius: 20px; }
#related-comments #related .detail .cat a span i { position: relative; top: 6px; vertical-align: top; }

#related-posts { padding: 30px; padding-top: 0; border-top: 1px solid #ddd; }

/**
 * Pagination
 */

#pagination { float: left; width: 100%; margin-top: 25px; }
#pagination a,
#pagination span { float: left; padding: 4px 9px; margin: 5px 5px 0 0; line-height: 20px; font-weight: 600; background: #fff; border: 1px solid #d5d5d5; color: #25c86a; }
#pagination a:hover { background: #e5e5e5; border-color: #c5c5c5; }
#pagination span { background: #25c86a; border-color: #16a553; color: #fff; }

/**
 * Nothing
 */

#nothing { margin: 25px 0 -5px 0; line-height: 22px; font-size: 16px; color: #777; }
#nothing a { color: #222; }
#nothing a:hover { color: #16a553; }

/**
 * Widgets
 */

.widgets { width: 240px; }

.widget { margin-bottom: 30px; overflow: hidden; }
.widget:last-child { margin-bottom: 0; }

.widget-title { margin: -5px 0 15px 0; padding-bottom: 10px; line-height: 22px; font-size: 16px; font-weight: 600; border-bottom: 1px solid #e5e5e5; }
.widget-title a { color: #333; }
.widget-title img { position: relative; top: -2px; margin-right: 6px; width: auto; max-height: 10px; vertical-align: middle; }

.widget ul { margin: -8px 0 -7px 0; list-style: circle; list-style-position: inside; }
.widget ul li ul { margin: 0 0 0 15px; }
.widget ul li:last-child > ul { margin-bottom: -7px; }
.widget ul li a { color: #333; }
.widget ul li a:hover { color: #25c86a; }

.widget_archive label,
.widget_categories label { display: none; }

.widget_archive select,
.widget_categories select { width: 100%; }

.widget .custom-html-widget,
.widget .textwidget { margin: -8px 0 -7px; }

#wp-calendar caption { text-align: left; margin: -8px 0 8px 0; color: #999; }
#wp-calendar th,
#wp-calendar tr,
#wp-calendar td { text-align: center; border: 1px solid #eee;  }
#wp-calendar th,
#wp-calendar td { padding: 2px 0 3px 0; }
#wp-calendar a { font-weight: bold; color: #25c86a; }
#wp-calendar a:hover { font-weight: bold; color: #333; }

.widget_recent_entries .post-date,
.widget_rss .rss-date,
.widget_rss cite { display: block; line-height: 24px; font-size: 13px; color: #999; }

.widget_rss cite { font-style: italic; }

.widget_search label { display: none; }
.widget_search input[type=text] { width: 100%; margin-bottom: 15px; }

.widget_tag_cloud .tagcloud { margin-top: -5px; }
.widget_tag_cloud .tagcloud a { display: inline-block; margin: 5px 2px 0 0; padding: 2px 10px 3px 10px; font-size: 12px !important; background: #f1f1f1; color: #333; border-radius: 3px; }
.widget_tag_cloud .tagcloud a:hover { background: #25c86a; color: #fff; }

.ds_widget_posts .post { position: relative; margin-bottom: 15px; padding-bottom: 15px; padding-left: 25px; border-bottom: 1px solid #e5e5e5; }
.ds_widget_posts .post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.ds_widget_posts .post .number { position: absolute; top: 23.5px; left: 0; line-height: 13px; width: 12px; overflow: hidden; font-size: 18px; font-weight: 600; }
.ds_widget_posts .post .thumb { float: left; width: 60px; }
.ds_widget_posts .post .thumb img { height: 60px; object-fit: cover; }
.ds_widget_posts .post .detail { margin-left: 75px; }
.ds_widget_posts .post .detail h2 { line-height: 20px; font-size: 14px; font-weight: 600; }
.ds_widget_posts .post .detail h2 a { color: #333; }
.ds_widget_posts .post .detail h2 a:hover { color: #25c86a; }

.ds_widget_app .imgs { margin: -15px -15px 0 0; }
.ds_widget_app .imgs p { float: left; width: 100%; padding: 10px 10px 0 0; }

/**
 * To Top
 */

#to-top { position: fixed; bottom: 30px; left: 0; right: 0; width: 100%; max-width: 960px; margin: auto; }
#to-top a { position: absolute; bottom: 0; right: -56px; width: 56px; height: 88px; text-indent: -99999em; background: url("assets/images/to-top-bg.png") no-repeat; }

#to-top.relative { position: relative; }

/**
 * Newsletter
 */

#newsletter { padding: 30px 0; text-align: center; background: #252525; }
#newsletter .title { margin: -5px 0; line-height: 28px; font-size: 23px; color: #25c86a; }
#newsletter .subtitle { margin: 25px 0; line-height: 30px; font-size: 27px; color: #fff; }
#newsletter form { width: 40%; margin: 0 auto; }
#newsletter form input { width: 100%; }
#newsletter form input[type=text] { margin-bottom: 15px; border: none; }
#newsletter form input[type=submit]:hover { background: #1bad59; }
#newsletter .message.show { margin: 23px 0 -7px 0; color: #25c86a; }
 
/**
 * Footer
 */

#footer { float: left; width: 100%; padding: 22px 0 23px 0; background: #333; color: #aaa; border-bottom: 5px solid #25c86a; }

#footer .widgets,
#footer .bottom { float: left; width: 100%; }

#footer .widgets { margin: 8px 0 23px 0; }
#footer .widgets .widget-items { margin: -30px -30px 0 0; }
#footer .widgets .widget-items .widget { float: left; width: 20%; padding: 30px 30px 0 0; margin-bottom: 0; }
#footer .widgets .widget-items .widget-title { padding: 0; margin-bottom: 10px; text-transform: uppercase; border-bottom: none; }
#footer .widgets .widget-items .widget ul { list-style: none; }
#footer .widgets .widget-items .widget ul li a { color: #fff; }
#footer .widgets .widget-items .widget ul li a:hover { color: #1bad59; }
#footer .widgets .widget-items .widget ul,
#footer .widgets .widget-items .widget .textwidget { margin: -8px 0 0 0; }

#footer .bottom { line-height: 24px; font-size: 12px; }

#footer .footer-menu { margin-right: 30px; }
#footer .footer-menu,
#footer .footer-menu ul,
#footer .footer-menu ul li { float: left; }
#footer .footer-menu ul li { margin-right: 15px; }
#footer .footer-menu ul li:last-child { margin-right: 0; }
#footer .footer-menu ul li a { color: #aaa; }
#footer .footer-menu ul li a:hover { color: #25c86a; }
#footer .footer-menu ul li ul { display: none; }

#footer .credit { float: right; }

/**
 * Sticky Bottom
 */

/* FIX #20: Safe area inset — prevents sticky ad overlapping iPhone home bar gesture area */
#sticky-bottom { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 50px; padding: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)); text-align: center; background: #fff; }
#sticky-bottom a { display: block; }

/**
 * Responsive
 */

@media (max-width: 1160px) {
	#to-top { display: none; }
}

@media (max-width: 1020px) {
	.container { width: auto; margin: 0 30px; }
}

@media (max-width: 980px) {
  #posts .hentry .inner .meta .interactions { display: none; }
}

@media (max-width: 860px) {
  #featured .primary { width: 50%; }
  #featured .secondary { width: 50%; }

	#footer .widgets .widget-items .widget { width: 33.33333333333333333%; }
}

@media (max-width: 820px) {
  #primary { width: 100%; }
  #primary,
  #primary #content { margin-right: 0; }
  #secondary { float: left; width: 100%; padding: 30px; background: #fff; }
  #main-content:before { display: none; }
	#newsletter form { width: 100%; margin: 0; }
}

@media (max-width: 760px) {
  #featured .primary,
  #featured .secondary { width: 100%; }
  #featured .primary { min-height: 100%; }
  #featured .primary .thumb { position: static; }
  #featured .primary .thumb img { width: 100%; height: auto; object-fit: cover; }

	#related-comments #related .thumb,
	#related-comments #related .detail { width: 100%; }
	#related-comments #related .thumb img { width: 100%; object-fit: cover; max-height: 100%; }
	#related-comments #related .detail .cat { position: static; margin-top: 30px; }
}

@media (max-width: 720px) {
  .main-container { margin: 0; }
  #main { margin: 0; padding: 0; background: #fff; }
  .archive-title { padding: 0 15px; }
  #search-filter { padding: 0 15px; }
  #search-filter .advanced-fields-main { margin-right: 0; }
  #search-filter .advanced-fields { display: initial; }
  #search-filter .advanced-fields .field { display: block; width: 100%; padding-right: 0; margin-bottom: 15px; }
  #search-filter .advanced-fields .field:last-child { margin-bottom: 0; }
  #related-posts { padding: 0 0 30px 0; }
  #pagination { padding: 0 15px; margin-top: 0; }
  #footer .footer-menu,
  #footer .credit { width: 100%; }
  #footer .credit { float: left; margin-top: 15px; }
}

@media (max-width: 600px) {
  #header .fly { display: none; }
  #header .toggle-menu { display: block; }

	#footer .widgets .widget-items .widget { width: 50%; }
}

@media (max-width: 560px) {
  .hentry .entry-sharer { margin: 30px -5px 0 0; }
  .hentry .entry-sharer .inner,
  .hentry .entry-sharer .inner .item { display: initial; }
  .hentry .entry-sharer .inner .item { float: left; width: 100% !important; padding-right: 5px; }
  .hentry .entry-sharer .inner .item.fb,
  .hentry .entry-sharer .inner .item.tw { margin-bottom: 5px; }
  .hentry .entry-sharer .inner .item.pt,
  .hentry .entry-sharer .inner .item.rd,
  .hentry .entry-sharer .inner .item.ml,
  .hentry .entry-sharer .inner .item.wa { width: 25% !important; padding-right: 5px; }
}

@media (max-width: 460px) {
  #main-content { padding: 15px; }
  .archive-title { padding: 0 15px; }
  .gallery-items .gallery-image span { left: -15px; }
  #related-posts { padding: 0 0 15px 0; }
  #pagination { padding: 0 15px; margin-top: 15px; }
  #related-comments,
  #secondary { padding: 15px; }
  #header .container,
  #footer .container { margin: 0 15px; }
  #search-filter { padding: 0 15px; }
  #newsletter { padding: 15px; }
  #newsletter .container { margin: 0; }
  #footer { padding: 7px 0 8px 0; }
  #footer .widgets { margin-bottom: 8px; }
  #footer .widgets .widget-items { margin: -15px -15px 0 0; }
  #footer .widgets .widget-items .widget { padding: 15px 15px 0 0; }
  #footer .widgets .widget-items .ds_widget_app .imgs p { width: 50%; }
  #footer .credit { margin-top: 0; }
}

@media (max-width: 400px) {
  #content-nav { line-height: 19px; font-size: 12px; }

	#footer .widgets .widget-items .widget { width: 100%; }
}

/**
 * Retina
 */

@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {
  #header .logo a {
    background-image: url("assets/images/logo@2x.png");
    background-size: 166px 30px;
  }

  .hentry .entry-sharer .inner .item a span {
    background-image: url("assets/images/sharer-icon@2x.png");
    background-size: 84px 16px;
  }

	#to-top a {
		background-image: url("assets/images/to-top-bg@2x.png");
    background-size: 56px 88px;
	}
}



/* ==========================================================================
   MOBILE HOMEPAGE REDESIGN — TheChive-inspired layout
   One block, no conflicts, !important used on rules that fight old base CSS
   ========================================================================== */

@media (max-width: 720px) {

  /* ── Feed wrapper ────────────────────────────────────────────── */
  #posts { margin: 0 !important; background: #fff; }
  #posts .hentry { width: 100% !important; padding: 0 !important; float: none !important; }
  #posts .hentry .inner:hover { box-shadow: none !important; }

  /* ── Content nav: compact tabs ───────────────────────────────── */
  #content-nav { margin: 0 !important; background: #fff; border-bottom: 1px solid #e5e5e5; }
  #content-nav li a { font-size: 12px; padding: 7px 12px 6px; }

  /* ── Featured section: primary hero + secondary list ─────────── */
  #featured .primary .header .by a { color: #25c86a; font-weight: 700; }
  #featured .secondary { width: 100% !important; padding: 0 !important; background: #fff; }
  #featured .secondary .post {
    display: flex !important;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 0;
    border-bottom: 1px solid #ebebeb;
  }
  #featured .secondary .post .thumb {
    flex: 0 0 120px !important;
    width: 120px !important;
    height: 80px !important;
    float: none !important;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 2px;
  }
  #featured .secondary .post .thumb img {
    width: 120px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 2px;
  }
  #featured .secondary .post .detail {
    flex: 1;
    min-width: 0;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #featured .secondary .post .detail .title {
    max-height: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    margin-bottom: 6px;
  }
  #featured .secondary .post .detail .title:before { display: none; }
  #featured .secondary .post .detail .category { position: static; text-align: left; bottom: auto; right: auto; }
  #featured .secondary .post .detail .category a { font-size: 12px; font-weight: 700; color: #25c86a !important; text-transform: uppercase; }

  /* ====================================================================
     HALF CARD — thumbnail left (145×100) | title + author right
     ==================================================================== */

  #posts .hentry.half { background: #fff; border-bottom: 1px solid #ebebeb; }

  /* Force flex on .inner — this kills the old float layout */
  #posts .hentry.half .inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    padding: 13px 14px !important;
    background: #fff;
  }

  /* Thumbnail: fixed left column */
  #posts .hentry.half .inner .thumb {
    flex: 0 0 145px !important;
    width: 145px !important;
    height: 100px !important;
    float: none !important;
    margin-right: 13px;
    margin-left: 0 !important;
    overflow: hidden;
    border-radius: 2px;
    background: #eee;
  }
  #posts .hentry.half .inner .thumb img {
    width: 145px !important;
    height: 100px !important;
    object-fit: cover;
    display: block;
    border-radius: 2px;
  }
  #posts .hentry.half .inner .thumb .video-icon { display: none; }

  /* Detail: flex right column */
  #posts .hentry.half .inner .detail {
    flex: 1 !important;
    min-width: 0;
    padding: 0 !important;
    margin-left: 0 !important;
    height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Title */
  #posts .hentry.half .inner .title {
    height: auto !important;
    max-height: 66px;
    margin: 0 0 10px 0 !important;
    line-height: 22px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: left !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
  #posts .hentry.half .inner .summary { display: none !important; }

  /* Meta row */
  #posts .hentry.half .inner .meta {
    display: flex !important;
    align-items: center;
    margin-top: auto;
    width: 100%;
  }
  #posts .hentry.half .inner .meta .column,
  #posts .hentry.half .inner .meta .left {
    display: flex !important;
    align-items: center;
    width: auto !important;
  }

  /* Avatar */
  #posts .hentry.half .inner .meta .left a.avatar {
    display: block !important;
    float: none !important;
    flex-shrink: 0;
    width: 28px !important;
    height: 28px !important;
    margin-right: 8px;
    border-radius: 50%;
    overflow: hidden;
  }
  #posts .hentry.half .inner .meta .left a.avatar img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Author name + time stacked */
  #posts .hentry.half .inner .meta .left .right {
    position: static !important;
    margin: 0 !important;
    top: 0;
  }
  /* Hide the "By: " text, show only the green <a> link */
  #posts .hentry.half .inner .meta .left .right span:first-child {
    display: block !important;
    font-size: 0 !important;
    line-height: 0;
    margin-bottom: 2px;
  }
  #posts .hentry.half .inner .meta .left .right span:first-child a {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #25c86a !important;
    line-height: 16px;
    display: inline-block;
  }
  /* Timestamp — show it (was hidden) */
  #posts .hentry.half .inner .meta .left .right span:last-child {
    display: block !important;
    font-size: 11px !important;
    color: #aaa !important;
    line-height: 14px;
  }

  /* Hide interactions + category badge on small cards */
  #posts .hentry.half .inner .meta .interactions { display: none !important; }
  #posts .hentry.half .inner .meta .cat          { display: none !important; }

  /* ====================================================================
     FULL CARD — feature post (every 5th)
     Full-width image → large title → author left / counts right
     ==================================================================== */

  #posts .hentry.full {
    background: #fff;
    border-top: 7px solid #f0f0f0;
    border-bottom: 7px solid #f0f0f0;
    padding: 0 !important;
  }
  #posts .hentry.full .inner { padding: 0 !important; }

  #posts .hentry.full .inner .thumb {
    float: none !important;
    width: 100% !important;
    height: auto;
    overflow: hidden;
  }
  #posts .hentry.full .inner .thumb img {
    width: 100% !important;
    height: auto;
    max-height: 260px;
    min-height: 180px;
    object-fit: cover;
    display: block;
  }

  #posts .hentry.full .inner .detail {
    padding: 14px 15px 15px !important;
    margin-left: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  #posts .hentry.full .inner .title {
    height: auto !important;
    margin: 0 0 13px 0 !important;
    line-height: 28px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: left !important;
  }
  #posts .hentry.full .inner .summary {
    display: block !important;
    margin: -4px 0 13px 0 !important;
    text-align: left !important;
    color: #777;
    font-size: 14px;
    line-height: 20px;
  }

  /* Full card meta: author flex-left, counts flex-right */
  #posts .hentry.full .inner .meta {
    display: flex !important;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 11px;
  }
  #posts .hentry.full .inner .meta .left {
    display: flex !important;
    align-items: center;
    flex: 1;
    min-width: 0;
    width: auto !important;
  }
  #posts .hentry.full .inner .meta .left a.avatar {
    display: block !important;
    float: none !important;
    flex-shrink: 0;
    width: 34px !important;
    height: 34px !important;
    margin-right: 9px;
    border-radius: 50%;
    overflow: hidden;
  }
  #posts .hentry.full .inner .meta .left a.avatar img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    object-fit: cover;
  }
  #posts .hentry.full .inner .meta .left .right {
    position: static !important;
    margin: 0 !important;
    top: 0;
  }
  #posts .hentry.full .inner .meta .left .right span:first-child {
    display: block !important;
    font-size: 0 !important;
    line-height: 0;
    margin-bottom: 2px;
  }
  #posts .hentry.full .inner .meta .left .right span:first-child a {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #25c86a !important;
    line-height: 17px;
    display: inline-block;
  }
  #posts .hentry.full .inner .meta .left .right span:last-child {
    display: block !important;
    font-size: 11px !important;
    color: #aaa !important;
    line-height: 14px;
  }

  /* Interaction counts: pill-style buttons on right */
  #posts .hentry.full .inner .meta .interactions {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 !important;
    width: auto !important;
    text-align: right;
  }
  #posts .hentry.full .inner .meta .interactions .item {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600;
    color: #777 !important;
    background: #fff;
    line-height: 1.3;
  }
  #posts .hentry.full .inner .meta .interactions .item i { font-size: 12px; margin: 0; }
  #posts .hentry.full .inner .meta .cat { display: none !important; }

  /* ── Mobile header clean-up ──────────────────────────────────── */
  #header { padding: 10px 0; }
  #header .toggle-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    line-height: 1;
    font-size: 20px;
  }
}

/* ── Small phones (≤460px): shrink thumbnail a touch ─────────── */
@media (max-width: 460px) {
  #posts .hentry.half .inner .thumb {
    flex: 0 0 120px !important;
    width: 120px !important;
    height: 86px !important;
  }
  #posts .hentry.half .inner .thumb img {
    width: 120px !important;
    height: 86px !important;
  }
  #posts .hentry.half .inner .title {
    font-size: 15px !important;
    line-height: 21px !important;
  }
  #posts .hentry.full .inner .title {
    font-size: 20px !important;
    line-height: 26px !important;
  }
  #featured .secondary .post .thumb {
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 70px !important;
  }
  #featured .secondary .post .thumb img {
    width: 100px !important;
    height: 70px !important;
  }
}


/* ==========================================================================
   DESKTOP REDESIGN + GLASS BUTTONS + FOOTER CLEANUP
   Inspired by the clean mobile layout — colours/background unchanged
   ========================================================================== */

/* ── 1. WIDER CONTAINER (1100px on big screens) ────────────────────────── */
@media (min-width: 1140px) {
  .container { width: 1100px; }
  #to-top { max-width: 1100px; }
}

/* ── 2. POST CARDS — cleaner, lift-on-hover, image zoom ─────────────────── */

/* Card wrapper: rounded corners, overflow hidden for image zoom to work */
#posts .hentry .inner {
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
#posts .hentry .inner:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(-3px);
  border-color: rgba(37,200,106,0.15);
}

/* Thumbnail container — clip for zoom effect */
#posts .hentry .inner .thumb { overflow: hidden; }
#posts .hentry .inner .thumb img {
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
  height: auto;
}
#posts .hentry .inner:hover .thumb img { transform: scale(1.05); }

/* Post title: drop fixed height, use line-clamp, left-align */
#posts .hentry .inner .title {
  height: auto;
  min-height: 54px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  margin-bottom: 10px;
  color: #1a1a1a;
}
#posts .hentry.full .inner .title {
  -webkit-line-clamp: unset;
  min-height: 0;
  font-size: 22px;
  line-height: 30px;
  margin-bottom: 15px;
}
#posts .hentry .inner .title a { color: #1a1a1a; }
#posts .hentry .inner .title a:hover { color: #25c86a; }

/* Author links → green on desktop (matches mobile) */
#posts .hentry .inner .meta .left a { color: #25c86a; font-weight: 700; }
#posts .hentry .inner .meta .left a:hover { color: #1aad58; }

/* ── 3. GLASS CATEGORY BADGES ────────────────────────────────────────────── */

.hentry .cat a {
  background: rgba(37, 200, 106, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 200, 106, 0.35);
  color: #25c86a;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  margin-right: 0;
}
.hentry .cat a:hover {
  background: rgba(37, 200, 106, 0.22);
  border-color: rgba(37, 200, 106, 0.6);
  color: #18a853;
}
.hentry .cat a span {
  background: rgba(37, 200, 106, 0.18);
  border-radius: 20px;
}

/* Single post category meta */
.hentry .entry-meta.cat a {
  background: rgba(37, 200, 106, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 200, 106, 0.3);
  color: #25c86a;
  border-radius: 4px;
  font-weight: 700;
}

/* ── 4. GLASS INTERACTION PILLS ──────────────────────────────────────────── */

.hentry .interactions .item {
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid #e4e4e4;
  transition: all 0.2s ease;
  font-weight: 600;
}
.hentry .interactions .like.enabled:hover,
.hentry .interactions .like.active {
  background: rgba(37,200,106,0.1);
  border-color: rgba(37,200,106,0.5);
  color: #25c86a;
}
.hentry .interactions .unlike.enabled:hover,
.hentry .interactions .unlike.active {
  background: rgba(226,56,56,0.08);
  border-color: rgba(226,56,56,0.4);
  color: #e23838;
}

/* ── 5. GLASS CONTENT-NAV TABS ───────────────────────────────────────────── */

#content-nav { border-bottom: 2px solid rgba(37,200,106,0.25); margin-top: 25px; }
#content-nav li a {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.07);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
#content-nav li a:hover,
#content-nav .current > a {
  background: rgba(255,255,255,1);
  color: #25c86a;
  border-color: rgba(37,200,106,0.3);
}

/* ── 6. GLASS PAGINATION BUTTONS ─────────────────────────────────────────── */

#pagination a,
#pagination span {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(37,200,106,0.25);
  border-radius: 6px;
  color: #25c86a;
  font-weight: 700;
  transition: all 0.2s ease;
}
#pagination a:hover {
  background: rgba(37,200,106,0.10);
  border-color: #25c86a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,200,106,0.2);
}
#pagination span {
  background: linear-gradient(135deg, rgba(37,200,106,0.92), rgba(22,165,77,0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: #25c86a;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37,200,106,0.35);
}

/* ── 7. GLASS NEWSLETTER BUTTON & INPUT ─────────────────────────────────── */

#newsletter form input[type=email],
#newsletter form input[type=text] {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff;
  border-radius: 4px;
}
#newsletter form input[type=email]::placeholder,
#newsletter form input[type=text]::placeholder { color: rgba(255,255,255,0.45); }
#newsletter form input[type=email]:focus,
#newsletter form input[type=text]:focus { border-color: rgba(37,200,106,0.5) !important; outline: none; }

#newsletter form input[type=submit] {
  background: linear-gradient(135deg, rgba(37,200,106,0.88), rgba(22,165,77,0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37,200,106,0.5);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(37,200,106,0.3);
  letter-spacing: 0.5px;
  font-weight: 700;
  transition: all 0.25s ease;
}
#newsletter form input[type=submit]:hover {
  background: linear-gradient(135deg, #25c86a, #16a54a);
  box-shadow: 0 6px 22px rgba(37,200,106,0.5);
  transform: translateY(-2px);
}

/* ── 8. GLASS NAV SEARCH INPUT ───────────────────────────────────────────── */

#nav .search-form input[type=text] {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
}
#nav .search-form input[type=text]:focus { border-color: rgba(37,200,106,0.5); }

/* ── 9. GLASS ACCOUNT DROPDOWN ───────────────────────────────────────────── */

#header .account li ul {
  background: rgba(30,30,30,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
#header .account li ul li a {
  background: transparent;
  border: none;
  border-radius: 3px;
  color: #ccc;
  transition: all 0.18s;
}
#header .account li ul li a:hover {
  background: rgba(37,200,106,0.15);
  color: #25c86a;
  border-color: transparent;
}

/* ── 10. FEATURED SECTION — glass title overlay + rounded ────────────────── */

#featured { border-radius: 6px; overflow: hidden; }
#featured:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.18); }

#featured .primary .header {
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
#featured .primary .header .title { font-size: 22px; font-weight: 700; }
#featured .primary .header .by a { color: #25c86a; font-weight: 700; }

#featured .secondary .post .detail .title a { color: #1a1a1a; font-weight: 700; }
#featured .secondary .post .detail .category a { color: #25c86a !important; font-weight: 700; }

/* ── 11. GLASS TAG CLOUD ─────────────────────────────────────────────────── */

.widget_tag_cloud .tagcloud a {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  color: #444;
  transition: all 0.2s;
}
.widget_tag_cloud .tagcloud a:hover {
  background: rgba(37,200,106,0.12);
  border-color: rgba(37,200,106,0.4);
  color: #25c86a;
}

/* ── 12. FOOTER — remove archives, reorganize, green titles ─────────────── */

/* Hide the Archives widget everywhere */
.widget_archive { display: none !important; }

/* Redistribute remaining footer widgets: 4 columns at 25% */
#footer .widgets .widget-items .widget { width: 25%; }

/* Green footer widget titles */
#footer .widgets .widget-items .widget-title {
  color: #25c86a;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

/* Footer links: softer white, turn green on hover */
#footer .widgets .widget-items .widget ul li { margin-bottom: 6px; line-height: 1.4; }
#footer .widgets .widget-items .widget ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: color 0.2s;
}
#footer .widgets .widget-items .widget ul li a:hover { color: #25c86a; }

/* Footer bottom bar: separated clearly */
#footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 15px;
  margin-top: 8px;
}

/* Footer credit link */
#footer .credit a { color: #25c86a; transition: color 0.2s; }
#footer .credit a:hover { color: #fff; }

/* Footer menu links */
#footer .footer-menu ul li a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
#footer .footer-menu ul li a:hover { color: #25c86a; }

/* Responsive footer: 2 columns on mid screens */
@media (max-width: 860px) {
  #footer .widgets .widget-items .widget { width: 50%; }
}

/* ── 13. SIDEBAR WIDGETS — glass-style widget titles ────────────────────── */

.widget-title {
  border-bottom: 2px solid rgba(37,200,106,0.3);
  padding-bottom: 8px;
}

/* ── 14. SMOOTH SCROLL & SCROLL-TO-TOP ───────────────────────────────────── */
html { scroll-behavior: smooth; }


/* ==========================================================================
   v1.1 — DARK MODE + FOOTER REDESIGN + GLASS MOBILE + WHITE BUTTONS + SEARCH
   ========================================================================== */

/* ── Hide old standalone newsletter section (now inside footer) ─────────── */
#newsletter { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   1. DARK MODE TOGGLE BUTTON (desktop account bar + mobile menu bar)
   ══════════════════════════════════════════════════════════════════════════ */

.dm-toggle {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.dm-toggle:hover {
  background: rgba(37,200,106,0.22);
  border-color: rgba(37,200,106,0.55);
  color: #25c86a;
}

/* Desktop: sits inside account <ul> */
#header .account .dm-li { display: flex; align-items: center; }
#header .account .dm-li .dm-toggle {
  position: relative;
  top: 0;
  margin: 0 2px;
  line-height: 1;
}

/* Mobile: in the mobile menu top-right bar */
#mobile-menu #top .dm-toggle {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. ALL BUTTONS → WHITE TEXT
   ══════════════════════════════════════════════════════════════════════════ */

/* Category badges */
.hentry .cat a,
.hentry .entry-meta.cat a { color: #fff !important; }
.hentry .cat a:hover,
.hentry .entry-meta.cat a:hover { color: #fff !important; opacity: 0.85; }

/* Content nav tabs */
#content-nav li a { color: #fff !important; }
#content-nav li a:hover,
#content-nav .current > a { color: #fff !important; }

/* Pagination buttons */
#pagination a { color: #fff !important; }

/* ══════════════════════════════════════════════════════════════════════════
   3. GLASS EFFECTS APPLIED EXPLICITLY TO MOBILE-VISIBLE ELEMENTS
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {

  /* Content nav tabs on mobile */
  #content-nav li a {
    background: rgba(37,200,106,0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
  }
  #content-nav li a:hover,
  #content-nav .current > a {
    background: rgba(37,200,106,0.92) !important;
  }

  /* Pagination on mobile */
  #pagination a,
  #pagination span {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #fff !important;
  }

  /* Full post interaction pills on mobile */
  #posts .hentry.full .inner .meta .interactions .item {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  /* Newsletter button on mobile — full green glass */
  .footer-newsletter input[type=submit] {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  /* Back to top: HIDE on mobile */
  #to-top { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   4. LIVE SEARCH DROPDOWN
   ══════════════════════════════════════════════════════════════════════════ */

/* Wrapper replaces the old .search-form positioning */
#nav .search-wrapper {
  position: absolute;
  right: -340px;
  top: 5px;
  width: 340px;
  max-width: 340px;
  transition: right 0.3s;
  z-index: 9999;
}
#nav .search-wrapper .search-form {
  position: static;
  right: auto;
  top: auto;
  max-width: 100%;
  width: 100%;
  transition: none;
}
#nav .search-wrapper .search-form input[type=search] {
  width: 100%;
  height: 30px;
  padding: 0 40px 0 14px;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 2px;
}
#nav .search-wrapper .search-form input[type=search]:focus {
  border-color: #25c86a;
}

/* Results dropdown */
#search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: rgba(15,15,15,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.5);
  z-index: 99999;
  overflow: hidden;
}
#search-results.active { display: block; }

.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #ddd;
  transition: background 0.15s;
  outline: none;
}
.sr-item:hover,
.sr-item.focused { background: rgba(37,200,106,0.12); color: #fff; }
.sr-item img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.sr-no-thumb {
  width: 54px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.sr-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sr-all {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #25c86a;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.sr-all:hover { background: rgba(37,200,106,0.1); }
.sr-all strong { font-weight: 700; }
.sr-empty,
.sr-loading {
  padding: 18px 14px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   5. FOOTER REDESIGN — TheChive-inspired dark unified layout
   ══════════════════════════════════════════════════════════════════════════ */

#footer {
  float: left;
  width: 100%;
  background: #141414;
  color: #aaa;
  border-top: 4px solid #25c86a;
  border-bottom: none;
  padding: 0;
}

/* ── Newsletter ── */
.footer-newsletter {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-newsletter .container { max-width: 480px; }
.fn-row { display: flex; flex-direction: column; gap: 12px; }
.fn-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fn-input-wrap i {
  position: absolute;
  right: 16px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  pointer-events: none;
}
.fn-input-wrap input[type=email] {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 18px;
  background: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  color: #222;
  font-family: inherit;
}
.fn-input-wrap input[type=email]::placeholder { color: #bbb; }
.fn-input-wrap input[type=email]:focus { outline: 3px solid rgba(37,200,106,0.5); }

.footer-newsletter input[type=submit] {
  width: 100%;
  height: 52px;
  background: #25c86a;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
  box-shadow: 0 4px 20px rgba(37,200,106,0.35);
}
.footer-newsletter input[type=submit]:hover {
  background: #1faf5c;
  box-shadow: 0 6px 26px rgba(37,200,106,0.52);
  transform: translateY(-2px);
}
.fn-message { display: none; color: #25c86a; font-size: 14px; margin-top: 10px; text-align: center; }
.fn-message.show { display: block; }

/* ── Brand Box ── */
.footer-brand {
  padding: 36px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fb-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 50px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.fb-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}
.fb-name:first-letter { color: #25c86a; }
.fb-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Widgets Grid ── */
.footer-widgets {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fw-grid { width: 100%; }
.footer-widgets .widget {
  float: left;
  width: 25%;
  padding: 0 40px 0 0;
  margin-bottom: 0;
  overflow: hidden;
}
.footer-widgets .widget:last-child { padding-right: 0; }
.footer-widgets .widget_archive { display: none !important; }
.footer-widgets .widget-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: none;
  padding: 0 0 14px 0;
  margin-bottom: 0;
}
.footer-widgets .widget ul { list-style: none; margin: 0; }
.footer-widgets .widget ul li { padding: 5px 0; }
.footer-widgets .widget ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.18s;
}
.footer-widgets .widget ul li a:hover { color: #25c86a; }

/* ── App Downloads ── */
.footer-apps {
  padding: 26px 0;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fa-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fa-links { display: flex; justify-content: center; gap: 14px; align-items: center; }
.fa-links img { height: 38px; width: auto; transition: opacity 0.2s; }
.fa-links a:hover img { opacity: 0.75; }

/* ── Bottom Bar ── */
.footer-bottom {
  padding: 14px 0 15px;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .footer-menu { float: none; margin: 0; }
.footer-bottom .footer-menu ul { display: flex; gap: 20px; list-style: none; }
.footer-bottom .footer-menu ul li { float: none; margin: 0; }
.footer-bottom .footer-menu ul li ul { display: none; }
.footer-bottom .footer-menu ul li a {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  transition: color 0.18s;
}
.footer-bottom .footer-menu ul li a:hover { color: #25c86a; }
.footer-bottom .credit { color: rgba(255,255,255,0.35); font-size: 12px; float: none; }
.footer-bottom .credit a { color: #25c86a; transition: color 0.18s; }
.footer-bottom .credit a:hover { color: #fff; }

/* ── Footer mobile ── */
@media (max-width: 720px) {
  .footer-newsletter .container { max-width: 100%; padding: 0 15px; }
  .footer-widgets .widget { width: 50%; padding: 0 24px 20px 0; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom .footer-menu ul { justify-content: center; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 460px) {
  .footer-widgets .widget { width: 100%; padding-right: 0; margin-bottom: 20px; }
  .fb-box { padding: 18px 28px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   6. DARK MODE — html.dark-mode overrides (no-flash via inline <head> script)
   ══════════════════════════════════════════════════════════════════════════ */

html.dark-mode body {
  background-color: #0c0c0c;
  color: #d0d0d0;
}
/* Wrapper */
html.dark-mode #main { background: #111; }
html.dark-mode #main-page { background: transparent; }

/* Post cards */
html.dark-mode #posts .hentry .inner {
  background: #1b1b1b;
  border-color: rgba(255,255,255,0.04);
}
html.dark-mode #posts .hentry .inner .thumb { background: #222; }
html.dark-mode #posts .hentry .inner:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.5); border-color: rgba(37,200,106,0.18); }
html.dark-mode #posts .hentry .inner .title a { color: #e2e2e2; }
html.dark-mode #posts .hentry .inner .detail { background: #1b1b1b; }
html.dark-mode #posts .hentry .inner .summary { color: #888; }
html.dark-mode #posts .hentry .inner .meta .left { color: #777; }
html.dark-mode #posts .hentry .inner .meta .left .right span:last-child { color: #555; }

/* Category badges in dark */
html.dark-mode .hentry .cat a {
  background: rgba(37,200,106,0.15);
  border-color: rgba(37,200,106,0.3);
  color: #fff !important;
}

/* Interaction pills in dark */
html.dark-mode .hentry .interactions .item {
  background: rgba(28,28,28,0.9);
  border-color: #2e2e2e;
  color: #777;
}

/* Content nav in dark */
html.dark-mode #content-nav { border-bottom-color: rgba(37,200,106,0.18); }
html.dark-mode #content-nav li a {
  background: rgba(22,22,22,0.88) !important;
  color: #bbb !important;
  border-color: rgba(255,255,255,0.06) !important;
}
html.dark-mode #content-nav li a:hover,
html.dark-mode #content-nav .current > a {
  background: rgba(37,200,106,0.18) !important;
  color: #fff !important;
}

/* Pagination in dark */
html.dark-mode #pagination a {
  background: rgba(22,22,22,0.88);
  border-color: rgba(37,200,106,0.22);
  color: #fff !important;
}
html.dark-mode #pagination a:hover {
  background: rgba(37,200,106,0.14);
  border-color: #25c86a;
}

/* Featured section */
html.dark-mode #featured { background: #1b1b1b; }
html.dark-mode #featured .secondary { background: #1b1b1b; }
html.dark-mode #featured .secondary .post .detail .title a { color: #ddd; }
html.dark-mode #featured .secondary .post .detail .title:before {
  background: linear-gradient(to right, rgba(27,27,27,0), rgba(27,27,27,1));
}

/* Single post page */
html.dark-mode #main-content { background: #151515; }
html.dark-mode #main-content:before { background: #252525; }
html.dark-mode #secondary { background: #151515; }
html.dark-mode .hentry .entry-title { color: #e2e2e2; }
html.dark-mode .hentry .entry-content { color: #c8c8c8; }
html.dark-mode .hentry .entry-content a { color: #25c86a; }
html.dark-mode .hentry .entry-content h1,
html.dark-mode .hentry .entry-content h2,
html.dark-mode .hentry .entry-content h3 { color: #e0e0e0; }
html.dark-mode .hentry .entry-content blockquote { border-left-color: #25c86a; color: #aaa; background: rgba(255,255,255,0.04); }
html.dark-mode #related-comments,
html.dark-mode #related-posts { background: #111; border-top-color: #222; }
html.dark-mode #related-comments #related { background: #1b1b1b; }

/* Sidebar widgets */
html.dark-mode .widget-title { color: #ccc; border-bottom-color: rgba(37,200,106,0.18); }
html.dark-mode .widget ul li a { color: #aaa; }
html.dark-mode .widget_tag_cloud .tagcloud a {
  background: rgba(32,32,32,0.88);
  border-color: #2e2e2e;
  color: #bbb;
}

/* Search filter page */
html.dark-mode #search-filter input[type=text],
html.dark-mode #search-filter select {
  background: #1b1b1b;
  border-color: #2e2e2e;
  color: #ccc;
}
html.dark-mode .archive-title { color: #e0e0e0; }
html.dark-mode #nothing { color: #777; }
html.dark-mode #nothing a { color: #bbb; }

/* Footer in dark (already dark, just deepen it slightly) */
html.dark-mode #footer { background: #0c0c0c; }
html.dark-mode .footer-newsletter { border-bottom-color: rgba(255,255,255,0.04); }
html.dark-mode .footer-brand { border-bottom-color: rgba(255,255,255,0.04); }
html.dark-mode .fb-box { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.01); }
html.dark-mode .footer-widgets { border-bottom-color: rgba(255,255,255,0.04); }
html.dark-mode .footer-apps { background: rgba(0,0,0,0.2); border-bottom-color: rgba(255,255,255,0.04); }
html.dark-mode .footer-bottom { border-top-color: rgba(255,255,255,0.04); }

/* Header/Nav in dark — slightly more contrast */
html.dark-mode #header { background: #0e0e0e; border-top-color: #25c86a; }
html.dark-mode #nav { background: #161616; }
html.dark-mode #dropdown-nav { background: #1e1e1e; }



/* ==========================================================================
   SEO FIX — Button resets for elements converted from <a href="javascript:;">
   All UI-action elements are now proper <button> tags.
   ========================================================================== */

/* Universal reset for all converted UI buttons */
button.toggle-menu,
button.close-menu,
button.open-search,
#header .account li button.parent,
#mobile-menu #top button,
#to-top-btn,
button.reset-search-filter {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  text-align: inherit;
  display: inline-block;
  outline: none;
}

/* Preserve existing visual styles on converted elements */
button.toggle-menu  { display: none; float: left; margin-right: 15px; line-height: 30px; font-size: 20px; color: #fff; }
button.close-menu   { float: left; min-width: 44px; min-height: 44px; padding: 0 10px; line-height: 44px; color: #fff; display: flex; align-items: center; justify-content: center; }
button.open-search  { position: absolute; right: 0; z-index: 5; top: -1px; width: 40px; height: 40px; line-height: 40px; text-align: center; color: #fff; }

/* To-top button (was <a>, now <button>) */
#to-top a,
#to-top-btn {
  position: absolute;
  bottom: 0;
  right: -56px;
  width: 56px;
  height: 88px;
  text-indent: -99999em;
  background: url("assets/images/to-top-bg.png") no-repeat;
  cursor: pointer;
}

/* Like/unlike interaction buttons — inherit all existing .item styles */
.hentry .interactions button.item {
  line-height: 26px;
  padding: 0 6px;
  margin-right: 2px;
  text-align: center;
  border: 1px solid #ddd;
  color: #777;
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hentry .interactions button.item i,
.hentry .interactions button.item span { margin: 0 2px; }
.hentry .interactions button.like.enabled:hover,
.hentry .interactions button.like.active  { border-color: #25c86a; color: #25c86a; background: rgba(37,200,106,0.1); }
.hentry .interactions button.unlike.enabled:hover,
.hentry .interactions button.unlike.active { border-color: #e23838; color: #e23838; background: rgba(226,56,56,0.08); }

/* Reset filter button on search page */
button.reset-search-filter {
  text-decoration: underline;
  color: #222;
  font-size: 14px;
}
button.reset-search-filter:hover { color: #25c86a; }

/* h1/h2 hierarchy fix: .logo now uses <h1> on home, <p> elsewhere */
/* The tagline was h3 — correct to h2 since it's the next heading after logo */
#header .tagline { float: left; line-height: 30px; font-weight: normal; color: #ccc; font-size: 14px; }

/* Mobile adjustments for converted buttons */
@media (max-width: 720px) {
  #to-top-btn { display: none !important; }
}

/* Retina to-top-btn */
@media only screen and (min-resolution: 1.5dppx) {
  #to-top-btn {
    background-image: url("assets/images/to-top-bg@2x.png");
    background-size: 56px 88px;
  }
}


/* ==========================================================================
   GLASS CONTRAST FIX + DARK MODE COMPLETENESS PATCH
   ========================================================================== */

/* ── 1. GLASS CONTRAST — Dark glass on light surfaces, Green glass for accents
   Light glass + white text = invisible. Rule: dark or green glass everywhere.
   ══════════════════════════════════════════════════════════════════════════ */

/* Category badges → solid green glass, white text always readable */
.hentry .cat a,
.hentry .entry-meta.cat a {
  background: rgba(29, 147, 79, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(37, 200, 106, 0.7) !important;
  color: #fff !important;
  font-weight: 700;
}
.hentry .cat a:hover,
.hentry .entry-meta.cat a:hover {
  background: rgba(37, 200, 106, 0.98) !important;
  color: #fff !important;
  opacity: 1 !important;
}
.hentry .cat a span { background: rgba(0,0,0,0.18) !important; }

/* Content nav tabs → dark glass on light bg, green glass on active */
#content-nav li a {
  background: rgba(22, 22, 22, 0.80) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-bottom: none !important;
  border-radius: 5px 5px 0 0 !important;
  color: rgba(255,255,255,0.82) !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
#content-nav li a:hover,
#content-nav .current > a {
  background: rgba(37, 200, 106, 0.88) !important;
  border-color: rgba(37, 200, 106, 0.5) !important;
  color: #fff !important;
}

/* Pagination → dark glass on light bg, green for current page */
#pagination a,
#pagination span {
  background: rgba(22, 22, 22, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 700;
  transition: all 0.2s ease;
}
#pagination a:hover {
  background: rgba(37, 200, 106, 0.85) !important;
  border-color: rgba(37, 200, 106, 0.6) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,200,106,0.3);
}
#pagination span {
  background: linear-gradient(135deg, #25c86a, #16a54a) !important;
  border-color: #25c86a !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(37,200,106,0.4);
}

/* Interaction pill buttons → dark glass so counts stay readable */
.hentry .interactions .item,
.hentry .interactions button.item {
  background: rgba(22, 22, 22, 0.78) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.75) !important;
  border-radius: 20px !important;
}
.hentry .interactions .item i,
.hentry .interactions button.item i { color: rgba(255,255,255,0.6); }
.hentry .interactions .like.enabled:hover,
.hentry .interactions .like.active,
.hentry .interactions button.like.enabled:hover,
.hentry .interactions button.like.active {
  background: rgba(37,200,106,0.25) !important;
  border-color: rgba(37,200,106,0.6) !important;
  color: #25c86a !important;
}
.hentry .interactions .unlike.enabled:hover,
.hentry .interactions .unlike.active,
.hentry .interactions button.unlike.enabled:hover,
.hentry .interactions button.unlike.active {
  background: rgba(226,56,56,0.2) !important;
  border-color: rgba(226,56,56,0.5) !important;
  color: #e23838 !important;
}

/* Mobile: content nav on white bg → same dark glass treatment */
@media (max-width: 720px) {
  #content-nav li a {
    background: rgba(22, 22, 22, 0.82) !important;
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: none !important;
  }
  #content-nav li a:hover,
  #content-nav .current > a {
    background: rgba(37, 200, 106, 0.88) !important;
    color: #fff !important;
  }
}

/* ── 2. DARK MODE COMPLETENESS PATCH ─────────────────────────────────────── */

/* Body: remove bg.png texture AND background-color in one rule */
html.dark-mode body {
  background: #0d0d0d !important;   /* !important removes bg.png texture too */
  color: #d0d0d0;
}

/* Global form inputs — were still white in dark mode */
html.dark-mode input[type=text],
html.dark-mode input[type=search],
html.dark-mode input[type=email],
html.dark-mode input[type=password],
html.dark-mode input[type=number],
html.dark-mode select,
html.dark-mode textarea {
  background: #1e1e1e !important;
  border-color: #2e2e2e !important;
  color: #d0d0d0 !important;
}
html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder { color: #666 !important; }
html.dark-mode select option { background: #1e1e1e; color: #d0d0d0; }

/* Submit/button inputs stay green */
html.dark-mode input[type=submit] { background: #25c86a !important; color: #fff !important; }

/* Newsletter email input in footer — was bright white box on dark bg */
html.dark-mode .fn-input-wrap input[type=email] {
  background: #1e1e1e !important;
  border: 1px solid #333 !important;
  color: #d0d0d0 !important;
}
html.dark-mode .fn-input-wrap i { color: rgba(255,255,255,0.2) !important; }

/* Mobile content areas — these hardcoded #fff weren't overridden */
html.dark-mode #content-nav,
html.dark-mode #posts,
html.dark-mode #posts .hentry,
html.dark-mode #posts .hentry.half,
html.dark-mode #posts .hentry.full,
html.dark-mode #featured .secondary,
html.dark-mode #featured .secondary .post { background: #111 !important; }

html.dark-mode #posts .hentry.half { border-bottom-color: #222 !important; }
html.dark-mode #posts .hentry.full { border-top-color: #222 !important; border-bottom-color: #222 !important; }

/* Sidebar mobile fallback */
html.dark-mode #secondary { background: #151515 !important; }

/* Sticky bottom ad */
html.dark-mode #sticky-bottom {
  background: #111 !important;
  border-top: 1px solid #2a2a2a;
}

/* Search filter page */
html.dark-mode #search-filter { background: transparent; }
html.dark-mode .archive-title { color: #e0e0e0; }

/* Related comments / posts sections */
html.dark-mode #related-comments { background: #151515 !important; border-top-color: #222; }
html.dark-mode #related-comments #related { background: #1b1b1b !important; }
html.dark-mode #related-posts { background: #111 !important; border-top-color: #222; }

/* Comments / respond area */
html.dark-mode #respond,
html.dark-mode .comments-area { background: #161616 !important; }
html.dark-mode .comment-list .comment-body { border-bottom-color: #2a2a2a; }

/* Search dropdown in dark mode — already dark glass, just verify */
html.dark-mode #search-results {
  background: rgba(10,10,10,0.98) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Interaction pills dark mode override */
html.dark-mode .hentry .interactions .item,
html.dark-mode .hentry .interactions button.item {
  background: rgba(28,28,28,0.92) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.6) !important;
}

/* Content nav dark mode */
html.dark-mode #content-nav li a {
  background: rgba(18,18,18,0.9) !important;
  border-color: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.7) !important;
}
html.dark-mode #content-nav li a:hover,
html.dark-mode #content-nav .current > a {
  background: rgba(37,200,106,0.2) !important;
  border-color: rgba(37,200,106,0.3) !important;
  color: #25c86a !important;
}

/* Pagination dark mode */
html.dark-mode #pagination a {
  background: rgba(22,22,22,0.88) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.75) !important;
}
html.dark-mode #pagination a:hover {
  background: rgba(37,200,106,0.2) !important;
  border-color: rgba(37,200,106,0.4) !important;
  color: #25c86a !important;
}

