/*
Theme Name: GetCloud Tech
Theme URI: https://getcloud.in
Author: GetCloud Team
Author URI: https://getcloud.in
Description: A professional, fast and SEO-friendly news magazine WordPress theme for cloud hosting and technical blogs. Built with Bootstrap 5 and optimized for Google AdSense.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getcloud-tech
Tags: blog, news, magazine, responsive, adsense, seo, bootstrap, two-columns, custom-menu, featured-images
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --accent: #ff5722;
    --accent-dark: #e64a19;
    --dark: #212530;
    --dark-light: #2c3040;
    --cream: #fff2ee;
    --white: #ffffff;
    --bg: #f9f9f9;
    --border: #e8e8e8;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --font: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08);
    --transition: .2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 .5em;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.125rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin: 0 0 1em;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-light);
}

.topbar a {
    color: var(--text-light);
    margin-right: 16px;
    font-size: 13px;
}

.topbar a:hover {
    color: var(--accent);
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--dark);
    color: #fff !important;
    margin: 0 0 0 4px;
    font-size: 12px;
}

.topbar-social a:hover {
    background: var(--accent);
}

/* ==========================================================================
   Header / Branding
   ========================================================================== */
.site-header-main {
    background: var(--white);
    padding: 18px 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.site-title a {
    color: var(--dark);
}

.site-title span {
    color: var(--accent);
}

.site-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Main Navigation (red active, dark bg)
   ========================================================================== */
.main-nav {
    background: var(--dark);
    position: relative;
    z-index: 100;
}

/* Nav inner – flex container for brand, menu, actions */
.nav-inner {
    display: flex;
    align-items: center;
    min-height: 46px;
}

/* Desktop nav list */
.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.desktop-nav .nav-item {
    position: relative;
}

.desktop-nav .nav-link,
.main-nav .navbar-nav .nav-link {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 12px 16px;
    transition: all var(--transition);
    border-right: 1px solid rgba(255, 255, 255, .08);
    display: block;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active,
.desktop-nav .nav-item.current-menu-item>.nav-link,
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active,
.main-nav .navbar-nav .nav-item.current-menu-item>.nav-link {
    background: var(--accent);
    color: #fff;
}

/* First nav item – HOME active style */
.desktop-nav .nav-item:first-child .nav-link {
    background: var(--accent);
}

/* Dropdown menus (desktop) */
.desktop-nav .dropdown-menu,
.main-nav .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    padding: 0;
    min-width: 220px;
    border-top: 3px solid var(--accent);
}

.desktop-nav .dropdown-menu .dropdown-item,
.main-nav .dropdown-menu .dropdown-item {
    font-size: 13px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--gray-100);
}

.desktop-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item:hover {
    background: var(--cream);
    color: var(--accent);
}

/* Right actions (search + hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0;
}

/* Mobile Brand (GetCloud) */
.main-nav .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    padding: 8px 0;
    margin-right: auto;
    text-decoration: none;
}

.main-nav .navbar-brand span {
    color: var(--accent);
}

/* Search button */
.nav-search-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition);
    border-radius: 0;
    line-height: 1;
}

.nav-search-btn:hover {
    background: var(--accent-dark);
}

/* ====== Hamburger Toggle Button ====== */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====== Mobile Dropdown Menu ====== */
.mobile-menu-dropdown {
    background: var(--dark-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu-dropdown.open {
    max-height: 600px;
    overflow-y: auto;
}

.mobile-menu-inner {
    padding: 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav-list .nav-link {
    display: block;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 500;
    padding: 13px 20px;
    text-decoration: none;
    transition: all var(--transition);
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link:focus {
    background: rgba(255, 255, 255, .05);
    color: var(--accent);
}

.mobile-nav-list .nav-item:first-child .nav-link {
    color: var(--accent);
}

/* Mobile nav item wrapper (link + expand arrow) */
.mobile-nav-item-wrap {
    display: flex;
    align-items: center;
}

.mobile-nav-item-wrap .nav-link {
    flex: 1;
    min-width: 0;
}

/* Remove Bootstrap's dropdown caret in mobile */
.mobile-nav-list .dropdown-toggle::after {
    display: none;
}

/* Expand/collapse arrow button */
.mobile-submenu-toggle {
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .6);
    padding: 13px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-submenu-toggle:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, .03);
}

.mobile-submenu-toggle.active {
    color: var(--accent);
}

.mobile-submenu-toggle.active i {
    transform: rotate(180deg);
}

.mobile-submenu-toggle i {
    transition: transform 0.3s ease;
}

/* Mobile dropdown submenu */
.mobile-nav-list .dropdown-menu {
    position: static !important;
    float: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(0, 0, 0, .15);
    padding: 0;
    margin: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: block;
}

.mobile-nav-list .dropdown-menu.open {
    overflow: visible;
}

.mobile-nav-list .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    padding: 11px 20px 11px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    display: block;
}

.mobile-nav-list .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--accent);
}

/* ==========================================================================
   Breaking / Top News Bar
   ========================================================================== */
.breaking-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.breaking-label {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 4px 12px;
    margin-right: 14px;
    flex-shrink: 0;
    display: inline-block;
}

.breaking-text {
    flex: 1;
    min-width: 0;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.breaking-nav {
    margin-left: auto;
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.breaking-nav button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition);
}

.breaking-nav button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==========================================================================
   Section Heading (Red label + View All)
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.section-label {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 6px 16px;
    display: inline-block;
    position: relative;
}

.section-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 15px solid var(--accent);
    border-bottom: 15px solid var(--accent);
    border-right: 8px solid transparent;
}

.section-view-all {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    padding-bottom: 6px;
}

.section-view-all:hover {
    color: var(--accent);
}

/* Simple heading variant */
.section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

/* ==========================================================================
   Featured Hero Section
   ========================================================================== */
.featured-section {
    padding: 24px 0 8px;
}

.featured-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    display: block;
    height: 400px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, transparent 55%);
}

.featured-main .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
    z-index: 2;
}

.featured-main .caption .cat-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-main .caption h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.featured-main .caption h2 a {
    color: #fff;
}

.featured-main .caption h2 a:hover {
    opacity: .85;
}

.featured-main .caption .meta {
    font-size: 12px;
    opacity: .8;
}

.featured-main .caption .meta i {
    margin-right: 3px;
}

/* Side featured */
.featured-side {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    display: block;
    height: 192px;
    margin-bottom: 16px;
}

.featured-side:last-child {
    margin-bottom: 0;
}

.featured-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.featured-side:hover img {
    transform: scale(1.04);
}

.featured-side .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 50%);
}

.featured-side .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    color: #fff;
    z-index: 2;
}

.featured-side .caption .cat-badge {
    background: var(--accent);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 6px;
    color: #fff;
}

.featured-side .caption h4 {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

.featured-side .caption h4 a {
    color: #fff;
}

.featured-side .caption .meta {
    font-size: 11px;
    opacity: .7;
    margin-top: 4px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.site-content {
    padding: 24px 0 40px;
}

/* ==========================================================================
   Post Card (Vertical - for grid)
   ========================================================================== */
.post-card {
    background: var(--white);
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow var(--transition);
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.post-card .thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.post-card:hover .thumb img {
    transform: scale(1.03);
}

.post-card .cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
}

.post-card .card-body {
    padding: 14px 0 0;
}

.post-card .card-body h3 {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.post-card .card-body h3 a {
    color: var(--text);
}

.post-card .card-body h3 a:hover {
    color: var(--accent);
}

.post-card .card-body .meta {
    font-size: 12px;
    color: var(--text-muted);
}

.post-card .card-body .meta i {
    color: var(--text-muted);
    margin-right: 3px;
    font-size: 11px;
}

.post-card .card-body .meta span {
    margin-right: 10px;
}

/* ==========================================================================
   Horizontal Post Card (List style – like reference images)
   ========================================================================== */
.hpost {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.hpost:first-child {
    padding-top: 0;
}

.hpost:last-child {
    border-bottom: none;
}

.hpost .hpost-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 90px;
    overflow: hidden;
    border-radius: var(--radius);
}

.hpost .hpost-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpost .hpost-body h4 {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.hpost .hpost-body h4 a {
    color: var(--text);
}

.hpost .hpost-body h4 a:hover {
    color: var(--accent);
}

.hpost .hpost-body .meta {
    font-size: 12px;
    color: var(--text-muted);
}

.hpost .hpost-body .meta i {
    margin-right: 3px;
    font-size: 11px;
}

.hpost .hpost-body .meta span {
    margin-right: 10px;
}

.hpost .hpost-body .excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 6px;
}

/* Featured horizontal (larger) */
.hpost-featured {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hpost-featured .hpost-thumb {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
}

.hpost-featured .hpost-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpost-featured .hpost-thumb .cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
}

.hpost-featured .hpost-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.hpost-featured .hpost-body h3 a {
    color: var(--text);
}

.hpost-featured .hpost-body h3 a:hover {
    color: var(--accent);
}

.hpost-featured .hpost-body .meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hpost-featured .hpost-body .excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar .widget {
    background: var(--white);
    margin-bottom: 28px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    border: 1px solid rgba(0, 0, 0, .02);
    overflow: hidden;
}

/* Widget title – red bar style */
.sidebar .widget-title,
.sidebar .sw-title {
    background: var(--dark);
    color: #fff;
    font-size: 14px;
    font-family: var(--font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 18px;
    margin: 0;
    display: inline-block;
    position: relative;
    box-shadow: var(--shadow);
}

/* Follow Us widget */
.follow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
}

.follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    transition: opacity var(--transition);
}

.follow-btn:hover {
    opacity: .9;
    color: #fff;
}

.follow-btn i {
    font-size: 15px;
}

.follow-btn.fb {
    background: #1877f2;
}

.follow-btn.tw {
    background: #333;
}

.follow-btn.yt {
    background: #ff0000;
}

.follow-btn.lin {
    background: #0077b5;
}

.follow-btn.ig {
    background: #e4405f;
}

.follow-btn.wa {
    background: #25d366;
}

.follow-btn.pin {
    background: #e60023;
}

.follow-btn.tg {
    background: #0088cc;
}

/* Ad container */
.ad-container {
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    text-align: center;
    padding: 30px 15px;
    margin: 20px 0;
    overflow: hidden;
}

.ad-container--header {
    margin: 0;
    padding: 15px 10px;
    border: 1px dashed var(--gray-300);
}

.ad-placeholder {
    font-size: 14px;
    color: var(--gray-400);
    font-style: italic;
}

.ad-container ins {
    max-width: 100%;
}

/* Sidebar tabs (POPULAR | RECENTS | COMMENTS) */
.sidebar-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.sidebar-tabs .tab-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: center;
    cursor: pointer;
    background: var(--gray-200);
    color: var(--text-light);
    border: none;
    transition: all var(--transition);
}

.sidebar-tabs .tab-btn.active,
.sidebar-tabs .tab-btn:hover {
    background: var(--accent);
    color: #fff;
}

.tab-content {
    display: none;
    padding: 12px 0;
}

.tab-content.active {
    display: block;
}

/* Sidebar list cards */
.sidebar-post {
    display: flex;
    gap: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.sidebar-post:hover {
    background: var(--gray-100);
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post .sp-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    overflow: hidden;
    border-radius: 3px;
}

.sidebar-post .sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post .sp-body h4 {
    font-size: 14px;
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px;
}

.sidebar-post .sp-body h4 a {
    color: var(--text);
}

.sidebar-post .sp-body h4 a:hover {
    color: var(--accent);
}

.sidebar-post .sp-body .meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Updates widget */
.updates-list {
    padding: 10px 0;
}

.update-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.update-item:hover {
    background: var(--gray-100);
}

.update-item:last-child {
    border-bottom: none;
}

.update-item .date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.update-item .date i {
    color: var(--accent);
    margin-right: 3px;
}

.update-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: block;
}

.update-item a:hover {
    color: var(--accent);
}

/* Categories widget */
.cat-list {
    padding: 14px;
    list-style: none;
    margin: 0;
}

.cat-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.cat-list li:last-child {
    border-bottom: none;
}

.cat-list li a {
    color: var(--text);
    display: flex;
    justify-content: space-between;
}

.cat-list li a:hover {
    color: var(--accent);
}

.cat-list li .count {
    color: var(--text-muted);
    font-size: 13px;
}

/* Tags widget */
.tags-wrap {
    padding: 14px;
}

.tags-wrap a {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    margin: 0 4px 6px 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-light);
    transition: all var(--transition);
}

.tags-wrap a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Search widget */
.search-widget {
    padding: 14px;
}

.search-widget .search-form {
    display: flex;
}

.search-widget .search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-right: none;
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--font);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    box-sizing: border-box;
}

.search-widget .search-form input[type="search"]:focus {
    border-color: var(--accent);
}

.search-widget .search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   No Posts Found – Empty State
   ========================================================================== */
.no-posts {
    background: var(--white);
    text-align: center;
    padding: 60px 30px;
    border: 1px solid var(--border);
}

.no-posts .icon {
    font-size: 60px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.no-posts p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
}

.no-posts .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 20px;
}

.no-posts .search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--border);
    border-right: none;
    padding: 11px 16px;
    font-size: 14px;
    font-family: var(--font);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    box-sizing: border-box;
}

.no-posts .search-form input[type="search"]:focus {
    border-color: var(--accent);
}

.no-posts .search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    font-size: 15px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    flex-shrink: 0;
}

.no-posts .btn-home {
    display: inline-block;
    background: var(--dark);
    color: #fff;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.no-posts .btn-home:hover {
    background: var(--accent);
    color: #fff;
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-header {
    margin-bottom: 20px;
}

.single-header .cat-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.single-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.single-header .meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.single-header .meta i {
    color: var(--accent);
    margin-right: 4px;
}

.single-featured-img {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: var(--radius);
}

.single-content {
    background: var(--white);
    padding: 28px;
    margin-bottom: 24px;
}

.single-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1.4em;
}

.single-content h2 {
    font-size: 1.35rem;
    margin: 1.8em 0 .6em;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.single-content h3 {
    font-size: 1.15rem;
    margin: 1.5em 0 .5em;
}

.single-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5em 0;
    padding: 14px 20px;
    background: var(--cream);
    color: var(--gray-700);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.single-content pre {
    background: var(--dark);
    color: #e5e5e5;
    padding: 18px 22px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 1.5em 0;
}

.single-content code {
    background: var(--cream);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: .9em;
}

.single-content pre code {
    background: none;
    padding: 0;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.4em;
    padding-left: 1.3em;
}

.single-content li {
    margin-bottom: 5px;
}

/* Post tags */
.post-tags {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.post-tags a {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    margin: 0 4px 6px 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-light);
}

.post-tags a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.author-box img {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-box h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.author-box p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Post nav */
.post-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.post-nav a {
    flex: 1;
    display: block;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.post-nav a:hover {
    border-color: var(--accent);
}

.post-nav .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 3px;
}

.post-nav .title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* Share buttons */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.share-bar .label {
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}

.share-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-section {
    background: var(--white);
    padding: 24px;
}

.comments-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 14px;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    margin: 0 2px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all var(--transition);
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px 0;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .sep {
    margin: 0 5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
}

.footer-top {
    padding: 40px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-widget h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    position: relative;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.7;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    padding: 5px 0;
    font-size: 13px;
}

.footer-widget ul li a {
    color: var(--gray-400);
}

.footer-widget ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    padding: 14px 0;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom a {
    color: var(--accent);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent-dark);
}

/* Reading progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width .1s linear;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.error-page h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
    font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .featured-main {
        height: 300px;
    }

    .featured-side {
        height: 142px;
        margin-bottom: 12px;
    }

    .hpost-featured {
        flex-direction: column;
    }

    .hpost-featured .hpost-thumb {
        width: 100%;
        height: 200px;
    }

    .single-content {
        padding: 20px;
    }

    .post-nav {
        flex-direction: column;
    }

    .sidebar {
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .topbar {
        display: none;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .featured-main {
        height: 220px;
    }

    .featured-main .caption h2 {
        font-size: 1.1rem;
    }

    .featured-side {
        height: 160px;
    }

    .hpost {
        gap: 12px;
    }

    .hpost .hpost-thumb {
        width: 100px;
        height: 72px;
    }

    .single-header h1 {
        font-size: 1.3rem;
    }

    .single-content {
        padding: 16px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .section-label {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Mobile Search Fix */
@media (max-width: 991px) {
    .nav-search-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Search Modal responsive */
@media (max-width: 575px) {
    .modal-sm-fullwidth .modal-content {
        margin: 10px;
    }

    .search-modal-group .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }

    .search-modal-group .btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media print {

    .topbar,
    .site-header-main,
    .main-nav,
    .sidebar,
    .site-footer,
    .back-to-top,
    .reading-progress,
    .ad-container,
    .post-nav,
    .comments-section {
        display: none !important;
    }

    .single-content {
        box-shadow: none;
        padding: 0;
    }
}