:root{
    --primary-color: #059669;
    --accent-color: #0891b2;
    --text-color: #000000;
    --body-color: #edf2f9;
    --border-color: #AAAAAA;
	--code-preview-bg-color: #FEFEFE;
	--font-family: 'Open Sans', sans-serif;
}
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}


html {
	scroll-behavior: smooth;
  }

body {
    font-family: var(--font-family);
    font-size: 16px;
	text-rendering: optimizeLegibility;
}

article, aside, audio,
footer, header, nav, section, video {
	display: block;
}


a.skip-main {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 1em;
	background-color: black;
	color: white;
	opacity: 0;
}

.navbar-brand sup{
	color: var(--primary-color);
	font-weight: bold;
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show>.nav-link{
	color: var(--primary-color);
	font-weight: bold;
}
h1, h2, h3, h4, h5, h6{
	padding-bottom: 0.5em;
}
h1{
	color: var(--primary-color);
    font-weight: bold;
}
h2 {
	color: var(--primary-color);
}
h3 {
	color: var(--accent-color);
	font-size: 1.5em;
}

ul{
	list-style-type: circle;
}


div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span{
	color: var(--primary-color);
	margin-right: 24px;
}
.code-toolbar{
	margin: 1em 0 2em 0;
}
@media screen and (max-width: 769px) {
	.code-toolbar{
		margin: 1em 1em 2em 1em;
	}
}

ul.stylish{
	list-style-type: circle;
}

.code-preview, .cp{
	background: var(--code-preview-bg-color);
	border: 1px solid var(--border-color);
	padding: 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

code > a {
    color: inherit;
}

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

.privacy-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #333;
	color: white;
	text-align: center;
	padding: 10px;
	z-index: 1000;
}
details {
    box-shadow: 0 0px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);
    width: 100%;
    background: #ffffff;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    margin: 2em 1em;
}
.make-list {
    columns: 240px;
}

/* ===== Homepage Redesign ===== */
.hero-section {
  background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}

.hero-badge {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon.purple {
  background: #cffafe;
  color: #0e7490;
}

.category-icon.teal {
  background: #e0f2fe;
  color: #0891b2;
}

.category-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}

.category-icon.green {
  background: #ecfdf5;
  color: #059669;
}

.category-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0;
}

.category-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef1f6;
}

/* ===== Project tiles ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.project-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.project-tile-icon {
  flex-shrink: 0;
  font-size: 1.5em;
  line-height: 1.2;
}

.project-tile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-tile-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.4;
  white-space: normal;
}

.project-tile:hover .project-tile-desc {
  color: #64748b;
}

.project-tile:hover {
  border-color: #a7f3d0;
  background: #f0fdf9;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.10);
  transform: translateY(-2px);
  color: #059669;
}

.project-tile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-tile-arrow {
  flex-shrink: 0;
  align-self: center;
  color: #cbd5e1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.project-tile:hover .project-tile-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #059669;
}

.tutorial-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.2s ease;
  background: #fff;
  height: 100%;
}

.tutorial-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tutorial-card .card-body {
  padding: 1.5rem;
}

.tutorial-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.tutorial-card .card-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.difficulty-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
}

.difficulty-badge.beginner {
  background: #dcfce7;
  color: #16a34a;
}

.difficulty-badge.intermediate {
  background: #fef3c7;
  color: #d97706;
}

.difficulty-badge.advanced {
  background: #fce7f3;
  color: #db2777;
}

.view-all-btn {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.category-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.125rem;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1.5rem;
  }
  .hero-section h1 {
    font-size: 1.875rem;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem;
  }
  .project-tile {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* ===== Examples Section (Homepage Cards) ===== */
.example-card {
  display: block;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.example-card:hover {
  border-color: var(--primary-color, #059669);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12);
  transform: translateY(-3px);
}

.example-card-body {
  padding: 1.25rem 1.5rem;
}

.example-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color, #059669);
  background: #ecfdf5;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.example-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.example-card:hover .example-title {
  color: var(--primary-color, #059669);
}

/* ===== Category List Page ===== */
.list-group-item {
  border-left: none;
  border-right: none;
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item-action:hover {
  background: #f0fdf9;
}

.list-group-item strong {
  color: #0f172a;
}

.list-group-item:hover strong {
  color: var(--primary-color, #059669);
}