/* Corptech Blog */
:root {
  --bg:        #090F11;
  --bg-card:   #0d1a22;
  --bg-card2:  #101e28;
  --primary:   #6098AB;
  --primary-h: #7ab5ca;
  --accent:    #4ac8f0;
  --text:      #e0eaf0;
  --text-muted:#7fa8b8;
  --text-soft: #9ab8c8;
  --border:    rgba(96,152,171,0.11);
  --border-h:  rgba(96,152,171,0.26);
  --header-h:  70px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 16px rgba(0,0,0,0.35);
  --transition:0.22s ease;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-h); }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; letter-spacing: 0.02em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 13px; }
h4 { font-size: 12px; }
p { color: var(--text-muted); line-height: 1.75; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-block; font-family: var(--font-head); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary);
  background: rgba(96,152,171,0.08); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid rgba(96,152,171,0.4); }
.btn-outline:hover { background: rgba(96,152,171,0.08); color: var(--primary-h); }
.btn-danger { background: #922b21; color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 0.65rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Header ──────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h); transition: background var(--transition), box-shadow var(--transition);
}
.site-header--solid {
  background: linear-gradient(135deg, #1b4d60 0%, #1e5f72 40%, #2a7d8f 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.nav-container {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; object-fit: contain; filter: brightness(1.1); }
.logo-text { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--primary); letter-spacing: 0.1em; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links li > a {
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); padding: 8px 12px;
  border-radius: var(--radius); transition: all var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.nav-links li > a:hover, .nav-links li > a.active { color: var(--text); background: rgba(96,152,171,0.07); }
.nav-cta { background: var(--primary) !important; color: #fff !important; padding: 8px 18px !important; box-shadow: 0 2px 12px rgba(96,152,171,0.3); }
.nav-cta:hover { background: var(--primary-h) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }


/* ─── Page hero ───────────────────────────── */
.page-hero {
  padding: calc(var(--header-h) + 52px) 0 52px;
  background: radial-gradient(ellipse at 50% 120%, rgba(96,152,171,0.05) 0%, transparent 65%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero--post { padding-bottom: 44px; }
.page-hero-content { text-align: center; }
.page-hero-content h1 { margin: 10px 0 6px; }
.page-hero-content p { font-size: 0.95rem; }

/* ─── Blog listing (row layout) ───────────── */
.blog-listing { padding: 64px 0 80px; }

.blog-list { display: flex; flex-direction: column; }

.blog-row {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-row:first-child { padding-top: 0; }
.blog-row:last-child  { border-bottom: none; }

.blog-row-img {
  width: 240px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-card);
  border: 1px solid var(--border);
}
.blog-row-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-row:hover .blog-row-img img { transform: scale(1.04); }
.blog-row-img--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

.blog-row-body { flex: 1; padding-top: 2px; }

.blog-date {
  font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
  display: block;
}

.blog-row-title {
  font-size: 14px !important; font-family: var(--font-head);
  line-height: 1.35; margin-bottom: 10px;
}
.blog-row-title a { color: var(--text); transition: color var(--transition); }
.blog-row-title a:hover { color: var(--primary); }

.blog-row-excerpt {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); transition: gap var(--transition), color var(--transition);
}
.read-more:hover { gap: 9px; color: var(--primary-h); }
.read-more span { transition: transform var(--transition); }
.read-more:hover span { transform: translateX(2px); }

.empty-state { text-align: center; padding: 80px 0; color: var(--text-muted); font-size: 0.9rem; }

/* ─── Pagination ──────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--text-muted); transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Post hero ───────────────────────────── */
.post-hero {
  height: 420px; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,15,17,0.97) 0%, rgba(9,15,17,0.55) 45%, rgba(9,15,17,0.15) 100%);
}
.post-hero-content { position: relative; z-index: 1; padding-bottom: 44px; max-width: 740px; }
.post-hero-content h1 { font-size: 20px !important; color: #fff; margin-top: 10px; line-height: 1.3; }
.post-lead { font-size: 0.9rem; color: rgba(224,234,240,0.75); margin-top: 10px; line-height: 1.7; }
.back-link {
  font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.back-link:hover { color: var(--primary-h); }
.post-meta { font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); }

/* ─── Post layout ─────────────────────────── */
.post-layout {
  display: grid; grid-template-columns: 1fr 290px;
  gap: 48px; padding: 56px 0 80px; align-items: start;
}

/* ─── Post body (unified article design) ──── */
.post-body { font-size: 0.96rem; line-height: 1.85; color: var(--text-soft); }

.post-body h2 {
  font-size: 16px !important; color: var(--text); margin: 44px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.post-body h3 {
  font-size: 13px !important; color: var(--primary); margin: 32px 0 10px;
  letter-spacing: 0.03em;
}
.post-body h4 {
  font-size: 12px !important; color: var(--text); margin: 22px 0 8px;
  text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head);
}
.post-body p { margin-bottom: 18px; color: var(--text-soft); font-size: 0.96rem; }
.post-body > p:first-child { font-size: 1.02rem; color: var(--text-muted); }

.post-body ul, .post-body ol { padding-left: 20px; margin-bottom: 20px; }
.post-body ul { list-style: none; padding-left: 0; }
.post-body ul li {
  padding-left: 18px; position: relative; margin-bottom: 7px;
  color: var(--text-soft); font-size: 0.96rem;
}
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); opacity: 0.7;
}
.post-body ol { list-style: decimal; }
.post-body ol li { margin-bottom: 7px; color: var(--text-soft); font-size: 0.96rem; padding-left: 4px; }
.post-body li strong { color: var(--text); }

.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { color: var(--text-muted); }
.post-body a { color: var(--primary); }
.post-body a:hover { text-decoration: underline; }

.post-body blockquote {
  border-left: 2px solid var(--primary); padding: 14px 20px;
  margin: 28px 0; background: rgba(96,152,171,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted); font-size: 0.95rem;
}

.post-body table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.post-body th {
  background: rgba(96,152,171,0.08); padding: 10px 14px; text-align: left;
  color: var(--primary); font-family: var(--font-head); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.post-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: rgba(96,152,171,0.03); }

.post-body img { border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow); }
.post-body pre {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; overflow-x: auto; font-size: 0.82rem; color: var(--accent); margin: 20px 0;
}
.post-body code {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 6px; font-size: 0.82rem; color: var(--accent);
}

.post-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }

/* ─── Sidebar ─────────────────────────────── */
.post-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px;
}
.sidebar-widget h3 {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.sidebar-widget p { font-size: 0.82rem; margin-bottom: 14px; line-height: 1.65; }
.sidebar-phone, .sidebar-email {
  display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; line-height: 1.5;
}
.sidebar-phone:hover, .sidebar-email:hover { color: var(--primary); }
.sidebar-contact { background: linear-gradient(135deg, rgba(96,152,171,0.08), rgba(96,152,171,0.03)); }

.related-posts { margin-top: 6px; }
.related-posts li { margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.related-posts li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-posts a { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }
.related-posts a:hover { color: var(--text); }
.related-posts img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }

/* ─── Footer ──────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 28px 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ─── AOS ─────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* ─── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .blog-row-img { width: 200px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .blog-row { flex-direction: column; gap: 16px; }
  .blog-row-img { width: 100%; aspect-ratio: 16/9; }
  .post-hero { height: 300px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(9,15,17,0.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; padding: 16px; gap: 4px;
    transform: translateY(-100%); opacity: 0; transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li > a { font-size: 0.82rem; padding: 12px 16px; }
  .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; background: none; border: none; padding: 0 0 0 16px; box-shadow: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .page-hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
}
