:root {
  --accent: #0ff;
  --bg-dark: #0d0d0d;
  --bg-card: #181818;
  --text-main: #e0e0e0;
  --text-secondary: #888;
  --border-soft: #232323;
}

/* Body */
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', 'Roboto', 'sans-serif';
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 1040;
  padding: 0.75rem 0;
}
.navbar-brand {
  color: var(--accent) !important;
  font-weight: 700;
  letter-spacing: .06em;
}
.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 1rem;
  letter-spacing: .02em;
  padding: .5rem 1rem;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

/* Mega menu */
.dropdown-menu.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 8px;
  pointer-events: none;
  opacity: 0;
  transform-origin: top center;
  transition: opacity .18s, transform .18s;
}
.mega-inner {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,255,255,0.08);
  display: flex;
  gap: 1.25rem;
  padding: 22px;
  border-left: 3px solid rgba(0,255,255,0.05);
}
.mega-title {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
}
.mega-col {
  flex: 1 1 0;
  min-width: 180px;
}
.dropdown-item {
  color: var(--text-main);
  background: transparent;
  padding: .35rem 0;
  display: block;
  border-radius: 8px;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.dropdown-item:hover {
  color: var(--accent);
  background: rgba(0,255,255,0.03);
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover>.dropdown-menu.mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(6px) scaleY(1);
  }
}
.dropdown-menu.mega-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
  .dropdown-menu.mega-menu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 0;
  }
  .mega-inner {
    flex-direction: column;
    max-width: 100%;
    border-radius: 10px;
    padding: 16px;
  }
  .mega-col {
    min-width: 0;
  }
  .nav-item.dropdown .nav-link::after {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 1.2rem;
  letter-spacing: .02em;
}
.hero .lead {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Main Section Titles */
.section-title {
  color: var(--accent);
  font-weight: bold;
  font-size: 2rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 2.2rem;
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .section-title, .hero h1 { font-size: 1.4rem; }
}

/* Cards and Boxes */
.card, .tool-box, .blog-card {
  background: var(--bg-card);
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,255,255,0.06);
  color: var(--text-main);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 2rem;
  padding: 1.3rem 1.3rem;
  position: relative;
}
.card:hover, .tool-box:hover, .blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,255,255,0.09);
  transform: translateY(-4px) scale(1.01);
}
.card-title, .tool-box h5, .blog-card h6 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card-text, .tool-box p, .blog-card p {
  color: var(--text-main);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* Blog thumbnails */
.blog-thumb {
  min-height: 110px;
  background: linear-gradient(135deg, #0ff2, #0ff4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--accent);
  font-weight: bold;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Buttons */
.btn-geek {
  background: var(--accent);
  color: #111 !important;
  font-weight: 600;
  border-radius: 8px;
  border: 0;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
  padding: 0.6rem 1.2rem;
}
.btn-geek:hover, .btn-geek:focus {
  background: #20e0e0;
  color: #000 !important;
}

/* Filter button */
.filter-btn {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 0.98rem;
  /* margin-right: 8px; */
  transition: background .2s, color .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #000;
}

/* Form controls */
.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: none;
}

/* Post/article content */
/* .post-header {
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 30px 0;
  color: var(--accent);
} */
article {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 32px;
  border-radius: 14px;
  line-height: 1.7;
}
article h2 {
  color: var(--accent);
  font-weight: bold;
}
article code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
}

/* Section spacing */
section {
  margin-bottom: 3.2rem;
}

/* Textarea */
textarea {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  width: 100%;
  padding: 16px;
  min-height: 150px;
  font-size: 1.08rem;
}

/* Footer */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 44px;
}

/* Code font for actual code blocks */
code, pre, kbd {
  font-family: 'Fira Code', monospace;
}

/* Misc UX */
::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

@keyframes blink {
  50% { opacity: 0; }
}
.cursor {
  display: inline-block;
  width: 10px;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1s infinite;
}

/* .blog-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
} */

/* .badge.bg-dark {
  background: #181818 !important;
  color: var(--accent) !important;
  font-weight: 500;
  letter-spacing: .03em;
} */

.card-footer {
  margin-top: auto;
}

.blog-card h5 {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.blog-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}
.blog-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px #0ff2;
}
.badge.bg-dark {
  background: var(--accent) !important;
  color: #181818 !important; 
  font-weight: 500;
}
.filter-btn i {
  margin-right:4px;
  font-size:1.1em;
  vertical-align:-0.1em;
}
.form-select, .form-control {
  background: #181818;
  color: #e0e0e0;
  border: 1px solid #232323;
}

.blog-banner img {
  margin-bottom: 16px;
  box-shadow: 0 4px 20px #0ff6;
}

.post-header {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin: 30px 0 24px 0;
  color: var(--accent);
}
.post-header .badge {
  background: #181818;
  color: var(--accent);
}
article h3, article h4 {
  color: var(--accent);
  margin-top: 2rem;
}
pre code {
  background: #181818;
  color: #0ff;
  border-radius: 6px;
  padding: 1em;
  display: block;
  font-size: 0.95em;
  font-family: 'Fira Code', monospace;
}

.pagination-info,
.pagination .small, /* Laravel summary in Bootstrap 5 */
.pagination .text-secondary {
  color: var(--accent) !important;
  font-weight: 600;
  margin-right: 1.5rem;
}

.pagination {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pagination */
.pagination {
  --bs-pagination-bg: #181818;
  --bs-pagination-border-color: #232323;
  --bs-pagination-color: #0ff;
  --bs-pagination-hover-bg: #1a1a1a;
  --bs-pagination-active-bg: #0ff;
  --bs-pagination-active-border-color: #0ff;
  --bs-pagination-active-color: #0d0d0d;
  justify-content: right;
  gap: 0.4rem;
  margin-bottom: 0;
  margin-top: 0.8rem;
}
.page-link {
  background: var(--bs-pagination-bg);
  color: var(--bs-pagination-color);
  border: 1px solid var(--bs-pagination-border-color);
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.page-link:hover, .page-link:focus {
  background: var(--bs-pagination-hover-bg);
  color: var(--bs-pagination-color);
  border-color: var(--bs-pagination-hover-bg);
}
.page-item.active .page-link {
  background: var(--bs-pagination-active-bg);
  border-color: var(--bs-pagination-active-border-color);
  color: var(--bs-pagination-active-color);
  font-weight: 600;
  box-shadow: 0 2px 8px #0ff3;
}

.blog-card .card-footer {
  gap: 1rem;
  font-size: 1.02rem;
  border-top: 1px solid #222;
  margin-top: auto;
  padding-top: 0.9rem;
}
.blog-card .bi-heart-fill,
.blog-card .bi-eye, 
.blog-card .bi-chat{
  font-size: 1.1em;
  vertical-align: -0.1em;
  margin-right: 2px;
}

/* .bg-category {
  background: linear-gradient(90deg, #0ff 60%, #111);
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 6px !important;
  padding: 5px 12px;
  font-size: 0.95em;
} */

.comment.bg-dark-subtle {
  background: #1a1a1a;
  border: 1px solid #232323;
  box-shadow: 0 1px 5px #0ff2;
}
.comment .bi-person-circle {
  font-size: 1.1em;
  vertical-align: -0.15em;
}

input.form-control::placeholder {
  color: #fff !important;
  opacity: 1;
}
.blog-list-root {
  margin-top: 0.5rem;
}
.blog-list-item {
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,255,255,0.05);
  border: 1px solid #232323;
  transition: box-shadow .18s, background .18s, transform .16s;
  padding: 1.1rem 1.3rem;
}
.blog-list-item:hover {
  background: #111 !important;
  transform: translateY(-3px) scale(1);
  box-shadow: 0 8px 32px #0ff4;
}
.blog-list-thumb {
  width: 150px;
  min-width: 100px;
  max-width: 160px;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0ff2;
  background: #222;
}
.blog-list-title {
  font-size: 1.32rem;
  font-weight: 700;
  transition: color .15s;
  line-height: 1.25;
}
.blog-list-title:hover {
  color: #0ff;
  text-decoration: underline;
}
.bg-category {
  background: linear-gradient(90deg, #0ff 65%, #181818 100%);
  color: #181818;
  font-weight: 700;
  border-radius: 6px !important;
  padding: 4px 12px;
  font-size: 1em;
}
.blog-list-stats {
  font-size: 1.09em;
  gap: 1.2rem;
}
.blog-stat {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 600;
}
.blog-stat i {
  vertical-align: -0.12em;
  font-size: 1.18em;
  margin-right: 2px;
}
@media (max-width: 991.98px) {
  .blog-list-item {
    flex-direction: column !important;
    gap: 1.3rem !important;
    box-shadow: 0 8px 20px #0ff1;
    padding: 1.2rem 0.9rem;
  }
  .blog-list-thumb {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin-bottom: .7rem;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px #0ff3;
  }
  .blog-list-title {
    margin-top: .3rem;
  }
  .blog-list-item {
    border-radius: 16px;
    margin-bottom: 2rem !important;
  }
}

.geek-card {
    background: var(--bg-card);
    border-radius: 14px;
    transition: box-shadow 0.2s;
}
.geek-card:hover {
    box-shadow: 0 0 22px #0ff5;
}
.geek-card-emoji {
    display: block;
    margin-bottom: 10px;
}
.geek-card-title {
    color: var(--accent);
    font-weight: 600;
}
.geek-card-desc {
    font-size: 1.07rem;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
.footer-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Custom scrollbar for sidebar filter boxes */
.sidebar-scroll {
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-dark);
}

/* Chrome, Edge, Safari */
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
  background: var(--bg-dark);
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.sticky-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}