/*
Theme Name: ITSYS Solutions Blog
Theme URI: https://www.itsyssolutions.com/
Author: ITSYS Solutions
Author URI: https://www.itsyssolutions.com/
Description: Exact match WordPress blog theme for ITSYS Solutions - Web Data Scraping & Competitor Price Monitoring company
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: itsys-solutions
*/

/* ============================================================
   EXACT ITSYS SOLUTIONS COLOR PALETTE
   Reverse-engineered from https://www.itsyssolutions.com/
   ============================================================ */
:root {
  /* Header - WHITE background */
  --header-bg:         #ffffff;
  --header-border:     #e8e8e8;

  /* Hero - Dark Blue gradient */
  --hero-bg-start:     #1a3a6b;
  --hero-bg-end:       #0d2244;

  /* Brand colours */
  --blue-dark:         #1a3a6b;   /* main dark blue */
  --blue-mid:          #1e4fa0;   /* mid blue */
  --blue-light:        #2a6dd9;   /* light blue accent */
  --orange:            #e85d10;   /* orange CTA - exact match */
  --orange-hover:      #c94d08;

  /* Body */
  --white:             #ffffff;
  --grey-bg:           #f5f7fa;   /* section alternate bg */
  --grey-light:        #eaeef3;
  --border:            #dde3eb;
  --text-dark:         #2d3748;
  --text-mid:          #4a5568;
  --text-light:        #718096;

  /* Footer - very dark navy */
  --footer-bg:         #162040;
  --footer-border:     rgba(255,255,255,0.07);
  --footer-text:       #8fa8c8;
  --footer-heading:    #ffffff;
  --footer-link-hover: #ffffff;

  /* Typography */
  --font-sans:   'Open Sans', 'Segoe UI', Arial, sans-serif;
  --font-head:   'Montserrat', 'Open Sans', 'Segoe UI', sans-serif;

  /* Misc */
  --radius:      4px;
  --radius-md:   8px;
  --shadow-sm:   0 2px 8px rgba(26,58,107,0.08);
  --shadow-md:   0 4px 20px rgba(26,58,107,0.14);
  --shadow-lg:   0 8px 40px rgba(26,58,107,0.20);
  --transition:  all 0.3s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
a { color: var(--blue-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-dark);
}
p { margin-bottom: 1rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
/* .container { max-width: 1170px; margin: 0 auto; padding: 0 15px; } */
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,16,0.4);
}
.btn-white {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.section-heading p {
  color: var(--text-mid);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   KEYFRAME ANIMATIONS - matching itsyssolutions.com style
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-25px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(25px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 50px; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   HEADER — WHITE background, logo left, nav right
   Exactly like itsyssolutions.com
   ============================================================ */
#site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 3px 15px rgba(0,0,0,0.10);
  border-bottom-color: transparent;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

/* Logo area */
.site-logo { display: flex; align-items: center; }
.site-logo a { display: flex; align-items: center; }
.site-logo img {
  /* height: 48px; */
  width: auto;
}
/* Fallback text logo if no image */
.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.5px;
}
.site-logo .logo-text span { color: var(--orange); }

/* ── Primary navigation — dark text on white header ── */
.nav-wrap { display: flex; align-items: center; }

#primary-nav {
  display: flex;
  align-items: center;
  list-style: none;
}
#primary-nav > li { position: relative; }

#primary-nav > li > a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: #333333;              /* DARK text on WHITE header */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  white-space: nowrap;
}
#primary-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
#primary-nav > li > a:hover { color: var(--orange); }
#primary-nav > li > a:hover::after,
#primary-nav > li.current-menu-item > a::after,
#primary-nav > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}
#primary-nav > li.current-menu-item > a,
#primary-nav > li.current-menu-ancestor > a {
  color: var(--orange);
}

/* Dropdown */
#primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 999;
}
#primary-nav > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#primary-nav .sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}
#primary-nav .sub-menu li:last-child a { border-bottom: none; }
#primary-nav .sub-menu li a:hover {
  background: #f9f9f9;
  color: var(--orange);
  padding-left: 22px;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger .line {
  display: block;
  width: 25px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.is-active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-active .line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   PAGE HERO BANNER — dark blue, matches main site
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
  padding: 155px 0 45px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(42,109,217,0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(232,93,16,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeInDown 0.5s ease both;
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  animation: fadeInUp 0.5s ease 0.15s both;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.85); }
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav .sep { opacity: 0.5; }
.breadcrumb-nav .crumb-current { color: #fff; }

/* ============================================================
   BLOG MAIN LAYOUT
   ============================================================ */
.blog-wrap {
  background: var(--grey-bg);
  padding: 55px 0 65px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

/* ============================================================
   POST CARDS — clean white cards matching site style
   ============================================================ */
.posts-loop { display: flex; flex-direction: column; gap: 25px; }

.post-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  /* reveal starts hidden */
  opacity: 0;
  transform: translateY(20px);
}
.post-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.35s ease;
}
.post-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg);
}

.post-card .card-thumb {
  position: relative;
  overflow: hidden;
}
.post-card .card-thumb a { display: block; }
.post-card .card-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.05); }

.card-cat-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body { padding: 22px 24px 24px; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.card-meta a { color: var(--text-light); }
.card-meta a:hover { color: var(--orange); }
.card-meta i { margin-right: 3px; }
.card-meta .divider { color: var(--border); }

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.card-title a { color: var(--blue-dark); }
.card-title a:hover { color: var(--blue-mid); }

.card-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--grey-light);
  padding-top: 14px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: var(--transition);
}
.read-more .arr { transition: transform 0.2s ease; }
.read-more:hover { color: var(--orange-hover); }
.read-more:hover .arr { transform: translateX(4px); }
.read-time {
  font-size: 12px;
  color: var(--text-light);
}
.read-time i { margin-right: 3px; }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-article {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease both;
}
.single-article .post-title {
  font-size: 28px;
  line-height: 1.3;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.single-article .post-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.single-article .post-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Entry content styling */
.entry-content { font-size: 15px; line-height: 1.85; color: var(--text-dark); }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; color: var(--blue-dark); }
.entry-content h3 { font-size: 18px; margin: 22px 0 10px; color: var(--blue-dark); }
.entry-content h4 { font-size: 16px; margin: 18px 0 8px; }
.entry-content p  { margin-bottom: 1.2rem; }
.entry-content ul { list-style: disc; margin: 0 0 1.2rem 1.5rem; }
.entry-content ol { list-style: decimal; margin: 0 0 1.2rem 1.5rem; }
.entry-content li { margin-bottom: 5px; }
.entry-content a  { color: var(--blue-mid); text-decoration: underline; }
.entry-content a:hover { color: var(--orange); }
.entry-content strong { font-weight: 700; color: var(--blue-dark); }
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  background: var(--grey-bg);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}
.entry-content img { border-radius: var(--radius); margin: 14px 0; }
.entry-content code {
  background: #eef3ff;
  color: var(--blue-dark);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 13px;
  font-family: monospace;
}
.entry-content pre {
  background: var(--blue-dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.65;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.entry-content th { background: var(--blue-dark); color: #fff; padding: 10px 14px; text-align: left; }
.entry-content td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--grey-bg); }
.entry-content hr { border: none; border-top: 2px solid var(--grey-light); margin: 24px 0; }

/* Tags */
.post-tag-list {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.post-tag-list .lbl { font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.post-tag-list a {
  background: var(--grey-bg);
  color: var(--text-mid);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.post-tag-list a:hover {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}

/* Author box */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 26px;
}
.author-card img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.author-card .author-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.author-card .author-bio  { font-size: 13px; color: var(--text-mid); margin: 0; }

/* Post navigation */
.post-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}
.post-nav-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: var(--transition);
}
.post-nav-box:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.post-nav-box .nav-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.post-nav-box .nav-ttl { font-size: 13px; font-weight: 700; color: var(--blue-dark); line-height: 1.4; }
.post-nav-box.next { text-align: right; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 38px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.comments-box h2 {
  font-size: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--grey-light);
  position: relative;
}
.comments-box h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--orange);
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-bg);
}
.comment-item img.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.comment-author { font-weight: 700; font-size: 14px; color: var(--blue-dark); }
.comment-date   { font-size: 12px; color: var(--text-light); }
.comment-body p { font-size: 14px; margin: 0; }
.comment-reply-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-mid);
  transition: var(--transition);
}
.comment-reply-link:hover { color: var(--orange); }

/* Comment form */
.comment-form-wrap { margin-top: 30px; }
.comment-form-wrap h3 { font-size: 17px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--blue-dark); margin-bottom: 5px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--grey-bg);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,79,160,0.08);
}
.form-group textarea { height: 120px; resize: vertical; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 90px; }

.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  /* reveal */
  opacity: 0;
  transform: translateX(15px);
}
.widget.in-view {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.widget-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--blue-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--grey-light);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.8s ease 0.3s;
}
.widget.in-view .widget-title::after { width: 36px; }

/* Search widget */
.widget-search-form { display: flex; }
.widget-search-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 13px;
  outline: none;
  background: var(--grey-bg);
  transition: var(--transition);
}
.widget-search-form input:focus { border-color: var(--blue-mid); background: #fff; }
.widget-search-form button {
  background: var(--blue-dark);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}
.widget-search-form button:hover { background: var(--orange); }

/* Recent posts */
.recent-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--grey-bg);
  align-items: flex-start;
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}
.recent-item:hover img { opacity: 0.85; }
.recent-item .ri-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: var(--transition);
}
.recent-item .ri-title:hover { color: var(--orange); }
.recent-item .ri-date { font-size: 11px; color: var(--text-light); }
.recent-item .ri-date i { margin-right: 2px; }

/* Categories */
.cat-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-size: 13px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.cat-list a::before { content: '›'; color: var(--orange); font-size: 16px; font-weight: 700; }
.cat-list a:hover { color: var(--orange); padding-left: 4px; }
.cat-list .cnt {
  background: var(--grey-bg);
  color: var(--text-light);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list a {
  background: var(--grey-bg);
  color: var(--text-mid);
  padding: 4px 11px;
  border-radius: var(--radius);
  font-size: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tag-list a:hover {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

/* About widget */
.about-widget-text { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin: 12px 0; }
.widget-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.widget-visit-btn:hover { background: var(--orange-hover); color: #fff; transform: translateY(-1px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  transition: var(--transition);
}
.pager a:hover, .pager .current {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,58,107,0.25);
}

/* ============================================================
   FOOTER — EXACT MATCH to itsyssolutions.com
   Dark navy (#162040), 4 columns:
   About Company | Important Links | Definition | Contacts
   ============================================================ */
#site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-main {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--footer-border);
}

/* 4-column grid exactly like itsyssolutions.com */
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-col {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.footer-col.in-view { opacity: 1; transform: translateY(0); }
.footer-col:nth-child(1) { transition-delay: 0.05s; }
.footer-col:nth-child(2) { transition-delay: 0.15s; }
.footer-col:nth-child(3) { transition-delay: 0.25s; }
.footer-col:nth-child(4) { transition-delay: 0.35s; }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--footer-heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--orange);
}

/* About column */
.footer-logo-wrap {
  margin-bottom: 14px;
}
.footer-logo-wrap img {
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.footer-logo-text span { color: var(--orange); }
.footer-about-text { font-size: 13px; line-height: 1.75; color: var(--footer-text); }

/* Link columns */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a {
  font-size: 13px;
  color: var(--footer-text);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}
.footer-links li a::before {
  content: '›';
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  opacity: 0.85;
}
.footer-links li a:hover {
  color: var(--footer-link-hover);
  padding-left: 5px;
}

/* Contact column */
.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-contact-item .ico {
  color: var(--orange);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}
.footer-contact-item .val {
  font-size: 13px;
  color: var(--footer-text);
  line-height: 1.55;
}
.footer-contact-item .val a { color: var(--footer-text); }
.footer-contact-item .val a:hover { color: #fff; }

/* Footer bottom bar */
.footer-bottom {
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   BACK TO TOP — orange square, like site's CTA style
   ============================================================ */
#back-top {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 40px; height: 40px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(232,93,16,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 998;
}
#back-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-top:hover { background: var(--orange-hover); }

/* ============================================================
   MISC — 404, no results
   ============================================================ */
.no-results-box, .error-404-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 70px 30px;
}
.error-404-box .big-404 {
  font-size: 90px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  font-family: var(--font-head);
  margin-bottom: 12px;
}
.no-results-box h2, .error-404-box h2 { font-size: 22px; margin-bottom: 12px; }
.no-results-box p, .error-404-box p { color: var(--text-mid); margin-bottom: 20px; }

/* ============================================================
   READING PROGRESS BAR (single posts)
   ============================================================ */
#reading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--orange);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 270px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hamburger { display: flex; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 3px solid var(--orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
  }
  #primary-nav.open { display: flex; animation: slideDown 0.25s ease; }
  #primary-nav > li > a {
    padding: 11px 20px;
    border-bottom: 1px solid var(--grey-light);
    color: #333;
  }
  #primary-nav > li > a::after { display: none; }
  #primary-nav .sub-menu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    background: var(--grey-bg);
    padding-left: 16px;
    display: none;
  }
  #primary-nav li.has-open > .sub-menu { display: block; }

  .page-hero h1 { font-size: 22px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .post-nav-row { grid-template-columns: 1fr; }
  .single-article { padding: 22px 20px; }
  .comments-box { padding: 22px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 18px; }
  .card-title { font-size: 16px; }
  .single-article .post-title { font-size: 20px; }
}
