/* =========================================================
   CyberSilo Universal Blog Styles
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark:#1d4ed8;
  --text-dark: #0f172a;
  --text-body: #475569;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* ------------------------------
   Reset & Base
-------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: var(--text-body);
  line-height: 1.7;
}

/* ------------------------------
   Blog Hero
-------------------------------- */
.blog-hero {
  background:
    linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.75)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 120px 20px 70px;
  text-align: center;
  color: #fff;
}

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

.blog-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-hero .subtitle {
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ------------------------------
   Blog Layout
-------------------------------- */
.blog-container {
  max-width: 960px;
  margin: -50px auto 60px;
  padding: 0 16px;
}

.blog-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 42px 40px;
}

/* ------------------------------
   Typography
-------------------------------- */
.blog-content h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.blog-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  color: #1e293b;
}

.blog-content p {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

/* ------------------------------
   Intro Section
-------------------------------- */
.intro-section p {
  font-size: 1.15rem;
  color: #334155;
}

/* ------------------------------
   Feature Image
-------------------------------- */
.feature-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------
   Lists
-------------------------------- */
.blog-content ul {
  padding-left: 1.4rem;
  margin: 1.4rem 0;
}

.blog-content li {
  margin-bottom: 0.6rem;
}

/* ------------------------------
   Callout Box
-------------------------------- */
.callout-box {
  background: #f5f5f5;
  color: #fff;
  padding: 26px;
  border-radius: 12px;
  margin: 2.8rem 0;
   border:solid 1px #d9d9d9;
}

.callout-box p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

/* ------------------------------
   Process / Steps
-------------------------------- */
.process-list {
  margin: 1rem 0;
}

.process-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0rem;
  margin-bottom: 0rem;
}

.process-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0rem;
}

.process-step {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-title {
  font-size: 1.4rem;
  margin: 0;
}

/* ------------------------------
   Links
-------------------------------- */
.blog-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.blog-content a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Reading Progress
-------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--border);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
}

/* ------------------------------
   Back To Top
-------------------------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ------------------------------
   Responsive
-------------------------------- */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.1rem;
  }

  .blog-content {
    padding: 26px 22px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 90px 16px 50px;
  }

  .blog-hero h1 {
    font-size: 1.8rem;
  }
}


/* =========================================================
   CyberSilo Styled Table
   ========================================================= */

/* =========================================================
   Flexible CyberSilo Table
   ========================================================= */

/* Table container */
.data-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto; /* allow horizontal scroll if many columns */
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

/* Header row */
.table-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

/* Rows */
.table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
  transition: background 0.3s;
}

/* Zebra striping for readability */
.table-row:nth-child(even):not(.table-header) {
  background-color: #f8fafc;
}

/* Hover effect */
.table-row:hover {
  background-color: var(--bg-light);
}

/* Cells */
.cell {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  line-height: 1.6;
  word-break: break-word;
  text-align: left;
}

/* Remove last column border */
.cell:last-child {
  border-right: none;
}

/* Remove last row border */
.table-row:last-child {
  border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-header,
  .table-row {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .cell {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .table-header,
  .table-row {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}
