:root {
  --primary:      #0ba376;
  --primary-dark: #0b7080;
  --dark:         #222222;
  --text:         #555555;
  --text-light:   #888888;
  --border:       #e5e5e5;
  --bg-light:     #f5f5f5;
  --bg-card:      #fcfcfc;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  margin: 0;
}

.card-container {
  background: #fff;
  width: 100%;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  position: relative;
  overflow: hidden;
}

/* ── Profile Sidebar — Full Gradient ───────────────────────── */
.profile-sidebar-wrap {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Dot pattern overlay */
.profile-dots-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
}

/* Circular profile photo */
.profile-photo-wrap {
  position: relative;
  display: inline-block;
}
.profile-photo-circle {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(255,255,255,0.80);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

/* Sidebar button (on gradient bg) */
.btn-sidebar {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 30px;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-sidebar:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

/* ── Left Sidebar Nav ──────────────────────────────────────── */
#left-sidebar {
  background: #fff;
  box-shadow: 2px 0 20px -8px rgba(0,0,0,0.08);
}

.nav-icon {
  color: #b5b6b7;
  transition: color 0.25s ease;
  cursor: pointer;
}
.nav-icon:hover  { color: var(--primary); }
.nav-icon.active { color: var(--primary); }

/* Sidebar expansion */
#left-sidebar.expanded { width: 14rem; }
#left-sidebar.expanded .nav-text {
  width: auto;
  opacity: 1;
  margin-left: 0.5rem;
}

/* ── Primary Button ────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 30px;
  box-shadow: 0 10px 24px rgba(11, 163, 118, 0.30);
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 28px rgba(11, 163, 118, 0.40);
  transform: translateY(-2px);
  color: #fff;
}

/* ── Section Titles (dotted underline) ─────────────────────── */
.section-title {
  position: relative;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 8px;
  background: repeating-radial-gradient(
    circle,
    var(--primary) 0px,
    var(--primary) 1.5px,
    transparent 1.5px,
    transparent 100%
  );
  background-size: 7px 7px;
  border-radius: 4px;
}

/* ── Info Labels ───────────────────────────────────────────── */
.info-label {
  background: rgba(11, 163, 118, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Skill / Service Icon ──────────────────────────────────── */
.service-icon {
  color: var(--primary);
  background: rgba(11, 163, 118, 0.1);
}

/* ── Section Spacing ───────────────────────────────────────── */
.section-content {
  padding-bottom: 4rem;
  padding-top: 2rem;
  border-bottom: 1px solid #f3f4f6;
}
.section-content:last-child { border-bottom: none; }

main { scroll-behavior: smooth; }

/* ── Reading Mode ──────────────────────────────────────────── */
body.reading-mode #left-sidebar,
body.reading-mode #profile-sidebar {
  display: none !important;
}

@media (max-width: 767px) {
  .profile-photo-circle {
    width: 120px;
    height: 120px;
  }
  body.reading-mode #main-scroll {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    z-index: 50;
    padding: 1.25rem;
  }
}

/* ── Reading Progress Bar ──────────────────────────────────── */
.blog-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
}
.blog-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Blog Cards ────────────────────────────────────────────── */
.blog-card { cursor: pointer; }

.blog-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.blog-img-wrap img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-img-wrap .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  border-radius: 10px;
}
.blog-card:hover .blog-img-wrap img    { transform: scale(1.07); }
.blog-card:hover .blog-img-wrap .img-overlay { background: rgba(0, 0, 0, 0.14); }

/* Category badge (sits on image) */
.blog-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 3;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.blog-card .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Blog Detail Typography ────────────────────────────────── */
.blog-body-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  letter-spacing: 0.01em;
}
