/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4 {
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: var(--dark-color) !important;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary-color);
  color: #ffffff;
  z-index: 2;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-image img {
  animation: float 3s ease-in-out infinite;
}

.hero-icon {
  max-width: 500px; /* roughly matches fa-10x */
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.hero-icon:hover {
  transform: scale(1.05);
  opacity: 0.4;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===== SKILL CARDS ===== */
.skill-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background: white;
}

/* ===== PROSE (Markdown content) ===== */
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose pre {
  background: #1e1e1e;
  color: #fff;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.prose p code {
  background: #f8f9fa;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #d63384;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.prose table th, .prose table td {
  border: 1px solid #e9ecef;
  padding: 0.5rem 0.75rem;
}

.prose blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  color: #6c757d;
}

/* ===== MyST Admonitions ===== */
.admonition {
  border-left: 6px solid var(--secondary-color);
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.admonition .admonition-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admonition p:last-child {
  margin-bottom: 0;
}

/* Type-specific colors */
.admonition.note {
  border-color: var(--info-color);
  background: #e7f7fb;
}

.admonition.note .admonition-title::before {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--info-color);
}

.admonition.warning {
  border-color: var(--warning-color);
  background: #fff7e6;
}

.admonition.warning .admonition-title::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--warning-color);
}

.admonition.tip, .admonition.hint {
  border-color: var(--success-color);
  background: #e8f7ef;
}

.admonition.tip .admonition-title::before, .admonition.hint .admonition-title::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--success-color);
}

.admonition.danger, .admonition.error {
  border-color: var(--danger-color);
  background: #fdecec;
}

.admonition.danger .admonition-title::before, .admonition.error .admonition-title::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--danger-color);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon i {
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon i {
  transform: scale(1.1);
}

#skills h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===== PROJECT CARDS ===== */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.project-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-img-top {
  transform: scale(1.05);
}

.project-card .card-footer {
  padding: 1rem 1.25rem;
}

.project-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}


/* ===== BLOG CARDS ===== */
.blog-card {
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding-bottom: 10px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.blog-card .blog-img {
  height: 180px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card .blog-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.blog-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card .blog-img .bg-gradient-primary {
  height: 100%;
  width: 100%;
}

.blog-card .btn {
  display: inline-block;
  width: auto;
  padding: 6px 25px;
  font-size: 0.875rem;
  border-radius: 6px;
  margin-top: auto;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.blog-card .btn:hover {
  transform: scale(1.03);
}

.blog-card .blog-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 2rem;
}

.blog-card .blog-info p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* show 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog {
  background-color: #ffffff;
  padding: 100px 0;
}

.blog-info h5 {
  color: #2a2a2a;
  font-weight: 700;
}

.blog-info p {
  color: #555;
}

.post-meta {
  font-size: 0.875rem;
}

.tags .badge,
.technologies .badge {
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  padding: 5rem 0;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* ===== SECTION HEADERS ===== */
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--secondary-color);
}

/* ===== FOOTER ===== */
footer a:hover {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;
}

.social-links a {
  transition: transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* ===== BADGE STYLES ===== */
.badge {
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

/* ===== PAGINATION ===== */
.pagination {
  gap: 0.5rem;
}

.pagination .page-link {
  border-radius: 8px;
  border: none;
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background: var(--primary-color);
  color: white;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0 !important;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .skill-card,
  .project-card {
    margin-bottom: 1.5rem;
  }
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: var(--primary-color);
  color: white;
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== UTILITIES ===== */
.shadow-sm-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-sm-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  border: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

/* Code highlighting */
code, pre {
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  background-color: #1e1e1e;
  color: #f8f8f2;
  border-radius: 8px;
  padding: 1em;
  overflow-x: auto;
}

/* ===== Work Experience Timeline ===== */
.work-experience {
  background: #f9f9f9;
  padding: 100px 0;
  position: relative;
}

.work-experience .section-title h5 {
  color: var(--primary-color, #007bff);
  font-weight: 600;
  margin-bottom: 10px;
}

.work-experience .section-title h2 {
  font-weight: 700;
  color: #2a2a2a;
}

.work-experience .line {
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color, #007bff);
  margin: 10px auto 40px;
  border-radius: 3px;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--primary-color, #007bff);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.timeline-circle {
  position: absolute;
  top: 15px;
  right: -30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color, #007bff);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-weight: 700;
  font-size: 18px;
  z-index: 10;
}

.timeline-item.right .timeline-circle {
  left: -30px;
  right: auto;
}

.timeline-item.right .timeline-content {
  margin-left: 30px;
}

.timeline-item.left .timeline-content {
  margin-right: 30px;
}

.timeline-content h4 {
  color: #2a2a2a;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content h6 {
  color: var(--primary-color, #007bff);
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-content .date {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 25px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-circle {
    left: -5px;
    right: auto;
  }

  .timeline-item.right .timeline-circle {
    left: -5px;
  }

  .timeline-content {
    margin-left: 30px;
  }
}

/* ===== Portfolio Section ===== */
.portfolio {
  background-color: #f9f9f9;
  padding: 100px 0;
}

.portfolio-card {
  height: 430px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.portfolio-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  padding: 1.25rem;
  height: 100%;
}

.portfolio-card .portfolio-img {
  height: 350px;
  width: 100%;
  overflow: hidden;
}

.portfolio-card .portfolio-img img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  height: 100%;
}

.portfolio-info p {
  margin-bottom: 3rem;
}

.portfolio-info .btn {
  margin-top: auto;
  align-self: flex-start;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-info h5 {
  color: #2a2a2a;
  font-weight: 700;
}

.portfolio-info p {
  color: #555;
}

.portfolio-card .btn {
  width: auto;
  padding: 6px 25px;
  font-size: 0.875rem;
  border-radius: 6px;
  margin-top: auto;
  align-self: flex-start;
}

/*==== SECTION HEADERS =====*/
.section-title h5 {
  color: var(--primary-color, #007bff);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title h2 {
  font-weight: 700;
  color: #2a2a2a;
}

.section-title .line {
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color, #007bff);
  margin: 10px auto 40px;
  border-radius: 3px;
}

.icon-img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.logo-icon {
  height: 28px;
  width: 28px;
  vertical-align: middle;
  margin-right: 8px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* MyST Admonition Styles */
.admonition {
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-left: 5px solid;
  border-radius: 6px;
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admonition.note {
  border-color: #0d6efd;
  background: linear-gradient(to right, #e7f1ff 0%, #f8f9fa 100%);
}

.admonition.warning {
  border-color: #ffc107;
  background: linear-gradient(to right, #fff8e1 0%, #f8f9fa 100%);
}

.admonition.important {
  border-color: #dc3545;
  background: linear-gradient(to right, #ffe6e6 0%, #f8f9fa 100%);
}

.admonition.tip {
  border-color: #28a745;
  background: linear-gradient(to right, #d4edda 0%, #f8f9fa 100%);
}

.admonition.caution {
  border-color: #fd7e14;
  background: linear-gradient(to right, #ffe5d0 0%, #f8f9fa 100%);
}

.admonition-title {
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  text-transform: capitalize;
}

.admonition-title::before {
  margin-right: 0.75rem;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1.2em;
}

.note .admonition-title {
  color: #0d6efd;
}

.warning .admonition-title {
  color: #856404;
}

.important .admonition-title {
  color: #dc3545;
}

.tip .admonition-title {
  color: #28a745;
}

.caution .admonition-title {
  color: #fd7e14;
}

/* Math styling */
.math {
  font-family: 'Times New Roman', 'Latin Modern Math', serif;
  font-size: 1.05em;
}

mjx-container {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

/* Definition lists */
dl {
  margin: 1.5rem 0;
}

dt {
  font-weight: 600;
  font-size: 1.05em;
  color: #212529;
  margin-top: 0.5rem;
}

dd {
  margin-left: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid #e9ecef;
}

/* Task lists */
.task-list-item {
  list-style-type: none;
  margin-left: -1.5rem;
}

.task-list-item input[type="checkbox"] {
  margin-right: 0.75rem;
  cursor: pointer;
}

/* Content typography */
.post-content h1 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.post-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Code blocks */
.post-content pre {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-content code {
  font-family: 'Fira Code', 'Courier New', Consolas, monospace;
  font-size: 0.9em;
}

.post-content p code,
.post-content li code {
  background: #f1f3f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #c7254e;
  font-size: 0.9em;
}

/* Images */
.post-content img {
  max-width: 1200px;
  max-height: 800px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  .project-image {
    width: 1200px;
    height: 800px;
    overflow: hidden;
    margin: 0 auto; /* centers it */
    border-radius: 16px; /* optional, for a nice clean edge */
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* maintains aspect ratio, fills the box */
    object-position: center; /* keeps focal point centered */
    display: block;
  }

  .post-content figure {
    margin: 2rem 0;
  }

  .post-content figcaption {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9em;
  }

  /* Tables */

  .post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .post-content table th,
  .post-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
  }

  .post-content table th {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #212529;
  }

  .post-content table tr:nth-child(even) {
    background-color: #f8f9fa;
  }

  /* Blockquotes */

  .post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 4px 4px 0;
  }

  .post-content blockquote p:last-child {
    margin-bottom: 0;
  }

  /* Links */

  .post-content a:not(.btn) {
    color: #0d6efd;
    text-decoration: underline;
    text-decoration-color: rgba(13, 110, 253, 0.3);
    transition: all 0.2s;
  }

  .post-content a:not(.btn):hover {
    color: #0a58ca;
    text-decoration-color: rgba(10, 88, 202, 0.6);
  }

  /* Lists */

  .post-content ul,
  .post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
  }

  .post-content li {
    margin: 0.5rem 0;
  }

  /* Horizontal rules */

  .post-content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 2px solid #e9ecef;
  }

  /* Print styles */
  @media print {
    .post-content {
      font-size: 11pt;
    }

    .post-content pre {
      page-break-inside: avoid;
    }
  }

  .article-info-box, .table-of-contents {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .article-info-box {
    background-color: #fff;
  }

  .table-of-contents {
    background-color: #fff;
  }

  .table-of-contents ul {
    padding-left: 0;
    list-style: none;
  }

  .table-of-contents a {
    color: #333;
    font-weight: 500;
  }

  .table-of-contents a:hover {
    color: var(--primary-color);
  }

  .post-sidebar h5 i {
    color: #e83e8c;
  }

  .feature-card {
    transition: all 0.3s ease;
    background: #fff;
  }

  .feature-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
  }

  .project-full-description {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .project-full-description h2,
  .project-full-description h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .project-full-description pre {
    background: #1e1e1e;
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
  }

  .project-full-description code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
  }

  .project-full-description p code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #e83e8c;
  }

  .project-full-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
  }

  /* Typography normalization for post/portfolio content */

  .prose h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .prose h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .prose p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }
}