/*
Theme Name: TUNIP Corporate Theme
Theme URI: https://tunipinfo.com
Author: TUNIP Info Services
Author URI: https://tunipinfo.com
Description: Hikvision Industrial Enterprise WordPress Theme based on Hikvision design.md specifications.
Version: 4.1.0
Text Domain: tunip-corporate
*/

:root {
  /* Hikvision Industrial Design System Tokens */
  --hik-primary: #2596be !important;
  --hik-primary-hover: #1b7a9e !important;
  --hik-secondary: #094f9c;
  --hik-tertiary: #e5e7eb;
  --hik-neutral: #333333;
  --hik-surface: #ffffff;
  --hik-on-surface: #333333;
  --hik-bg: #ffffff;
  --hik-border: #e5e7eb;

  /* Typography */
  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radii */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 60px;
  --space-gutter: 24px;
  --space-section: 60px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--hik-neutral);
  background-color: var(--hik-bg);
  font-size: 14px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--hik-neutral);
}

a {
  color: var(--hik-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2596be;
}

/* Container */
.tunip-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}

/* Header & Utility Bar */
.tunip-top-bar {
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 12px;
  line-height: 20px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0 !important;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569 !important;
  font-size: 12px;
}

.top-bar-item i {
  color: #2596be;
}

.site-logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.site-logo img,
.tunip-logo-img,
.tunip-footer-logo-img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hik-border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  color: var(--hik-neutral);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-toggle:hover,
.mobile-toggle.active {
  background: #f8fafc;
  color: #2596be;
  border-color: #2596be;
}

/* Button Components */
.btn-primary-hik,
.tunip-header .btn-primary-hik,
a.btn-primary-hik {
  background-color: #2596be !important;
  border-color: #2596be !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 150, 190, 0.35) !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.btn-primary-hik:hover,
.tunip-header .btn-primary-hik:hover,
a.btn-primary-hik:hover {
  background-color: #1b7a9e !important;
  border-color: #1b7a9e !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37, 150, 190, 0.5) !important;
}

/* Footer Layout & Styling */
.tunip-footer {
  background: #111827 !important;
  color: #9ca3af !important;
  padding: 60px 0 30px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1.2fr 1.5fr 1.8fr !important;
  gap: 40px !important;
  margin-bottom: 50px !important;
  align-items: start !important;
}

.footer-col {
  display: flex !important;
  flex-direction: column !important;
}

.footer-col h4 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  position: relative !important;
  padding-bottom: 10px !important;
  letter-spacing: 0.3px !important;
}

.footer-col h4::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 32px !important;
  height: 2px !important;
  background: #2596be !important;
}

.footer-col p {
  color: #9ca3af !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.footer-socials {
  display: flex !important;
  gap: 12px !important;
  margin-top: 10px !important;
}

.social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s ease !important;
}

.social-icon:hover {
  background: #2596be !important;
  color: #ffffff !important;
  border-color: #2596be !important;
  transform: translateY(-2px) !important;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links li {
  margin-bottom: 10px !important;
  list-style: none !important;
}

.footer-links li a {
  color: #9ca3af !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.footer-links li a svg {
  stroke: #2596be !important;
  flex-shrink: 0 !important;
}

.footer-links li a:hover {
  color: #2596be !important;
  transform: translateX(4px) !important;
}

.footer-contact-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  margin-bottom: 14px !important;
  line-height: 1.5 !important;
}

.footer-contact-item svg {
  stroke: #2596be !important;
  flex-shrink: 0 !important;
  margin-top: 3px !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 25px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  color: #64748b !important;
  font-size: 13px !important;
}

/* ==========================================================================
   TUNIP MEGA MENU & HEADER STYLING
   ========================================================================== */
.tunip-header {
  position: relative !important;
  z-index: 1000 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.nav-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
}

.primary-menu-container {
  display: flex !important;
  align-items: center !important;
  margin-left: 24px !important;
  margin-right: auto !important;
}

.tunip-nav-menu {
  display: flex !important;
  list-style: none !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

.tunip-nav-menu > li {
  position: static !important;
}

.tunip-nav-menu > li > a {
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 22px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.tunip-nav-menu > li:hover > a,
.tunip-nav-menu > li.active > a,
.tunip-nav-menu > li.current-menu-item > a {
  color: #2596be !important;
}

.tunip-nav-menu > li > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  width: 0 !important;
  height: 3px !important;
  background: #2596be !important;
  transition: width 0.25s ease !important;
}

.tunip-nav-menu > li:hover > a::after,
.tunip-nav-menu > li.active > a::after,
.tunip-nav-menu > li.current-menu-item > a::after {
  width: 100% !important;
}

/* Header Right Actions */
.hdr-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

/* Full Width Mega Menu Dropdown Panel */
.tunip-mega-menu-panel {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1) !important;
  padding: 36px 0 44px 0 !important;
  display: none !important;
  z-index: 9999 !important;
}

.tunip-nav-menu > li.has-mega-menu:hover > .tunip-mega-menu-panel {
  display: block !important;
  animation: megaMenuSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes megaMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 36px !important;
  align-items: start !important;
}

.mega-submenu-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.mega-submenu-list li a {
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-block !important;
}

.mega-submenu-list li a:hover {
  color: #2596be !important;
  transform: translateX(4px) !important;
}

/* Mega Menu Promo Card */
.mega-promo-card {
  background: #f0f4f9 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  border: 1px solid #e2e8f0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow 0.25s ease !important;
}

.mega-promo-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

.promo-card-graphic {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  height: 110px !important;
}

.promo-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
}

.promo-card-desc {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #64748b !important;
  margin-bottom: 20px !important;
}

.promo-card-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2596be !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
}

.promo-card-link:hover {
  color: #1b7a9e !important;
  gap: 10px !important;
}

.promo-card-dots {
  display: flex !important;
  gap: 6px !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 16px !important;
}

.promo-card-dots .dot {
  width: 8px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: #cbd5e1 !important;
}

.promo-card-dots .dot.active {
  width: 20px !important;
  background: #0f172a !important;
}

@media (max-width: 992px) {
  .mega-menu-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .mega-promo-card-col {
    grid-column: span 2 !important;
  }
}

@media (max-width: 640px) {
  .mega-menu-grid {
    grid-template-columns: 1fr !important;
  }
  .mega-promo-card-col {
    grid-column: span 1 !important;
  }
}

/* ==========================================================================
   TUNIP BLOG & SINGLE POST SYSTEM STYLING
   ========================================================================== */

/* Blog Hero Section */
.tunip-blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 50px 0 60px 0;
  position: relative;
  border-bottom: 3px solid #2596be;
}

.blog-hero-content {
  max-width: 900px;
}

.tunip-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tunip-breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tunip-breadcrumbs a:hover {
  color: #2596be;
}

.tunip-breadcrumbs .sep {
  color: #64748b;
}

.tunip-breadcrumbs .current {
  color: #2596be;
  font-weight: 600;
}

.blog-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.blog-hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Category Filter Bar & Search */
.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cat-pill:hover,
.cat-pill.active {
  background: #2596be;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
}

.blog-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 25px;
  padding: 4px 6px 4px 16px;
  width: 280px;
  max-width: 100%;
}

.blog-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #1e293b;
}

.blog-search-btn {
  background: #2596be;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.blog-search-btn:hover {
  background: #1b7a9e;
}

/* Main Layout */
.tunip-blog-main-wrapper {
  background: #f8fafc;
  padding: 60px 0;
}

/* Featured Post Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.featured-img-wrap {
  position: relative;
  min-height: 320px;
  background: #0f172a;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #2596be;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}

.meta-cat {
  color: #2596be;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.featured-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.featured-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: #2596be;
}

.featured-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2596be;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2596be;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.read-more-btn:hover {
  gap: 10px;
  color: #1b7a9e;
}

/* Posts Grid */
.posts-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.posts-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.tunip-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.tunip-post-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tunip-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.card-thumb-wrap {
  position: relative;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tunip-post-card:hover .card-thumb {
  transform: scale(1.06);
}

.card-cat-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: #2596be;
}

.card-excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-footer {
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  margin-top: auto;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.author-icon {
  color: #2596be;
  display: flex;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2596be;
  text-decoration: none;
}

.card-link:hover {
  color: #1b7a9e;
}

/* Pagination */
.tunip-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 60px;
}

.tunip-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tunip-blog-pagination .page-numbers.current,
.tunip-blog-pagination .page-numbers:hover {
  background: #2596be;
  color: #ffffff;
  border-color: #2596be;
}

/* Bottom CTA Banner */
.blog-bottom-cta {
  background: linear-gradient(135deg, #094f9c 0%, #2596be 100%);
  border-radius: 16px;
  padding: 40px 50px;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(37, 150, 190, 0.25);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 14px;
  color: #e0f2fe;
  max-width: 680px;
  line-height: 1.55;
}

/* Single Post Hero */
.tunip-single-hero {
  background: #0f172a;
  color: #ffffff;
  padding: 45px 0 55px 0;
  border-bottom: 3px solid #2596be;
}

.single-hero-inner {
  max-width: 860px;
}

.single-cat-badge {
  display: inline-block;
  background: #2596be;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.single-post-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.single-post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-post-meta .author-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

/* Single Body Layout */
.tunip-single-body-wrapper {
  background: #f8fafc;
  padding: 50px 0 80px 0;
}

.single-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.single-main-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.single-featured-image-wrap {
  margin: -40px -40px 35px -40px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  max-height: 440px;
  background: #0f172a;
}

.single-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prose Typography */
.tunip-prose {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.tunip-prose h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 35px 0 16px 0;
}

.tunip-prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 14px 0;
}

.tunip-prose p {
  margin-bottom: 20px;
}

.tunip-prose ul, .tunip-prose ol {
  margin: 0 0 24px 24px;
}

.tunip-prose li {
  margin-bottom: 8px;
}

.tunip-prose blockquote {
  border-left: 4px solid #2596be;
  background: #f0f9ff;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #0369a1;
  margin: 30px 0;
}

/* Post Footer & Social Share */
.single-post-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.tags-label, .share-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-right: 6px;
}

.post-tag-item {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2596be;
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 4px;
}

.single-social-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.linkedin { background: #0a66c2; }
.share-btn.twitter { background: #0f172a; }
.share-btn.whatsapp { background: #25d366; }

/* Author Card */
.single-author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.author-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2596be;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.author-role {
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.author-details .author-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 2px 0 6px 0;
}

.author-bio {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* Post Navigation */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.nav-prev, .nav-next {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.nav-next {
  text-align: right;
}

.nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #2596be;
  margin-bottom: 6px;
}

.nav-link-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link-title:hover {
  color: #2596be;
}

/* Inline CTA Box */
.single-inline-cta {
  background: #0f172a;
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid #2596be;
}

.single-inline-cta .cta-badge {
  color: #2596be;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.single-inline-cta h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
}

.single-inline-cta p {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Sidebar Styling */
.sidebar-widget {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: #2596be;
}

.sidebar-search-form {
  display: flex;
  gap: 8px;
}

.sidebar-search-input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.sidebar-search-btn {
  background: #2596be;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.widget-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-cat-list li {
  margin-bottom: 10px;
}

.widget-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget-cat-list li a:hover {
  color: #2596be;
}

.cat-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recent-thumb-link {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.recent-title a {
  color: #1e293b;
  text-decoration: none;
}

.recent-title a:hover {
  color: #2596be;
}

.recent-date {
  font-size: 11px;
  color: #94a3b8;
}

/* Related Posts Section */
.single-related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

.related-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .tunip-blog-grid, .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tunip-blog-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .single-post-nav {
    grid-template-columns: 1fr;
  }
}
