/* =========================================================
   DIGITALSKILLEARNHUB – MASTER CSS (SITE + BLOG)
   ========================================================= */

/* ================= ROOT VARIABLES ================= */
:root {
  --indigo: #4F46E5;
  --indigo-soft: #6366F1;
  --bg: #f7f9fc;
  --text: #111827;
  --text-soft: #374151;
  --muted: #5e6a87;
  --border: #eef0fb;
  --card-shadow: 0 10px 28px rgba(20,20,60,.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Footer logo fix */

footer .logo-footer {
  width: 72px;        /* KEY CHANGE */
  height: auto;
  max-width: none;
  display: block;
}


.toc a.active {
  color: var(--indigo);
  font-weight: 700;
}

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg,var(--indigo),var(--indigo-soft));
  z-index: 200;
}
.faq-item {
  cursor: default;
}

.faq-item.collapsible {
  cursor: pointer;
}

.faq-item.collapsible .faq-a {
  display: none;
}

.faq-item.collapsible.open .faq-a {
  display: block;
}

/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ================= FONTS ================= */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  src: url('/Assets/fonts/Inter-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  src: url('/Assets/fonts/Inter-Bold.woff2') format('woff2');
  font-display: swap;
}

/* ================= HEADER ================= */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(20,20,60,.04);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--indigo);
  text-decoration: none;
}

.logo-header {
  height: 56px;
  width: auto;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--indigo);
  transition: width .25s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ================= BUTTONS ================= */
.cta-btn {
  background: var(--indigo);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79,70,229,.35);
}

/* ================= HERO ================= */
.hero {
  padding: 80px 18px;
  background: linear-gradient(90deg,#eef2ff 60%,#f9f8ff);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(79,70,229,.15), transparent 60%);
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

/* ================= GRID & CARDS ================= */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.card {
  background: rgba(255,255,255,.94);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--card-shadow);
  transition: all .3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(30,30,80,.15);
}

.card h3 {
  margin-top: 0;
}

/* ================= BLOG LAYOUT ================= */
.blog-wrap,
article,
.container {
  max-width: 980px;
  margin: auto;
  padding-inline: 20px;
}

article {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ================= BLOG HEADINGS ================= */
article h1 {
  font-size: 2.3rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}

article h2 {
  font-size: 1.6rem;
  margin-top: 56px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

article h3 {
  font-size: 1.25rem;
  margin-top: 34px;
  color: var(--text);
}

/* ================= BLOG SECTIONS ================= */
article section {
  background: #fff;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  margin: 56px 0;
  box-shadow: var(--card-shadow);
}

/* ================= TEXT ================= */
article p { margin: 16px 0; }

article ul,
article ol {
  margin: 16px 0 22px 22px;
}

article li {
  margin: 8px 0;
}

/* ================= LINKS ================= */
article a {
  color: var(--indigo);
  font-weight: 600;
}

article a:hover {
  text-decoration: underline;
}

/* ================= META ================= */
.meta,
.author-cred {
  font-size: .9rem;
  color: var(--muted);
}

/* ================= TOC ================= */
.toc {
  background: linear-gradient(135deg,#eef2ff,#f8faff);
  border-left: 5px solid var(--indigo);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  margin: 30px 0;
}

.toc strong,
.toc h2 {
  font-size: 1.05rem;
}

.toc ol {
  margin-left: 18px;
}

.toc li {
  margin: 8px 0;
}

/* ================= TABLES ================= */
.compare-table,
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

article th {
  background: var(--indigo);
  color: #fff;
  padding: 14px;
  text-align: left;
}

article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

/* ================= NOTE / CALLOUT ================= */
.note {
  background: #eef2ff;
  border-left: 5px solid var(--indigo);
  padding: 16px 18px;
  margin: 24px 0;
  border-radius: var(--radius-md);
}

/* ================= FAQ ================= */
.faq-item {
  background: #f9fafb;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.faq-q {
  font-weight: 700;
  color: var(--text);
}

.faq-a {
  color: var(--text-soft);
}

/* ================= CTA ================= */
.cta-box {
  background: linear-gradient(135deg,var(--indigo),var(--indigo-soft));
  color: #fff;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  margin: 50px 0;
}

.cta-box a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

/* ================= CODE ================= */
pre {
  background: #0f172a;
  color: #e5e7eb;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: .9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ================= IMAGES ================= */
article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  box-shadow: 0 8px 26px rgba(20,20,60,.08);
}

/* ================= SCROLL OFFSET ================= */
section[id] {
  scroll-margin-top: 120px;
}

/* ================= FOOTER ================= */
footer {
  background: linear-gradient(135deg,#0f1228,#151a3a);
  color: #c6c9ea;
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-desc {
  color: #b7bce2;
}

footer a {
  color: #c6c9ea;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ================= MOBILE ================= */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav { display: none; }
  nav.show { display: flex; flex-direction: column; }
  .nav-toggle { display: block; }
}

@media (max-width: 768px) {
  article h1 { font-size: 1.8rem; }
  article h2 { font-size: 1.35rem; }
  article section { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ================= ACCESSIBILITY ================= */
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

@media print {
  header, footer, .cta-box, nav { display: none; }
  body { background: #fff; color: #000; }
  article { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

nav a.active {
  color: var(--indigo);
  font-weight: 700;
}

figcaption {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .logo-header { width: 52px; }
}
@media (max-width: 768px) {
  footer .logo-footer {
    width: 64px;
  }
}
footer .footer-left > div:first-child {
  gap: 14px;   /* increase spacing between logo and text */
}

footer .footer-left strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
footer img {
  max-width: none;
}


