.light-theme {  
    --background-primary: hsl(0, 0%, 100%);
    --background-secondary: hsl(210, 100%, 98%);
  
    --action-primary: hsl(213, 49%, 89%);
    --action-secondary: hsl(210, 56%, 94%);
  
    --foreground-primary: hsl(218, 24%, 18%);
    --foreground-secondary: hsl(216, 12%, 47%);
    --foreground-tertiary: hsl(214, 22%, 70%);
  
    --accent: hsl(229, 94%, 62%);
}
.dark-theme {
    --background-primary: hsl(218, 23%, 23%);
    --background-secondary: hsl(220, 26%, 14%);
  
    --action-primary: hsl(216, 15%, 52%);
    --action-secondary: hsl(218, 23%, 23%);
  
    --foreground-primary: hsl(210, 38%, 95%);
    --foreground-secondary: hsl(211, 25%, 84%);
    --foreground-tertiary: hsl(214, 20%, 69%);
  
    --accent: hsl(229, 94%, 62%);
}
:root {
    --white: hsl(0, 0%, 100%);

    --fs-base: 0.85rem;
    --fs-1: 1.875rem;
    --fs-2: 1.5rem;
    --fs-3: 1.25rem;
    --fs-4: 0.875rem;
    --fs-5: 0.75rem;
  
    --py: 5rem;
}
/* Reset code - used for re-setting the browser default styling and font-types */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) hsl(0, 0%, 90%);
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
img {
  max-width: 100%;
}
img,
button {
  display: block;
}
a,
span {
  display: inline-block;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-base); /* base font-size (0.85rem = 13.6px) */
  line-height: 1.8;
}
:focus {
  outline-offset: 4px;
}
/* Here we've attempted to style the default browser scrollbar */
::-webkit-scrollbar {
  width: 16px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
  border: 4px solid;
}
.light-theme::-webkit-scrollbar-thumb {
  border-color: hsl(0, 0%, 90%);
}
.dark-theme::-webkit-scrollbar-thumb {
  border-color: hsl(219, 27%, 20%);
}
.light-theme::-webkit-scrollbar-track {
  background: hsl(0, 0%, 90%);
}
.dark-theme::-webkit-scrollbar-track {
  background: hsl(219, 27%, 20%);
}
/* The aforementioned base codes are a pre-requisite for modifying the browser and default styles.
 (It's adviced to always incorporate these into your stylesheets) */

 /* Style the necessary headings and text, and assign default font sizes to them! */
 .h1, .h2, .h3, .h4 {
  display: block;
  color: var(--foreground-primary);
}
.h1 {
  font-size: var(--fs-1);
  font-weight: 900;
}
h1 span {
  display: block;
  margin-top: 10px; /* Control spacing between the lines */
}
.h2 {
  font-size: var(--fs-2);
  font-weight: 700;
}
.h3 {
  font-size: var(--fs-3);
  font-weight: 700;
}
.h4 {
  font-size: var(--fs-3);
  font-weight: 700;
}
/* Default font size declaration for small and tiny fonts */
.text-sm {
  font-size: var(--fs-4);
}
.text-tiny {
  font-size: var(--fs-5);
}

/* Re-Useable CSS classes */
.container {
  padding: 0 15px;
  margin-inline: auto;
  margin: auto; /* Fallback, in-case "margin-inline" doesn't function properly! */
}
.btn {
  min-width: 10rem;
  text-align: center;
  border-radius: 100px;
  transition: all .2s ease-in-out;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.2rem;
}
.btn-primary:hover {
  background: var(--foreground-secondary);
  color: var(--action-primary);
}
.btn-secondary {
  background: var(--action-secondary);
  color: var(--foreground-secondary);
  padding: 0.6rem 1.2rem;
  border: 3px solid var(--foreground-tertiary);
}
.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
/* Dark Mode styling */
.dark-theme .btn-primary:hover {
  color: var(--background-primary);
}
.dark-theme .blog-topic {
  background: var(--action-primary);
  color: var(--foreground-secondary);
}
.dark-theme .blog-topic:hover {
  background: var(--foreground-primary);
  color: var(--action-primary);
}
.dark-theme .load-more:hover {
  color: var(--white);
}
.dark-theme .aside .h2 {
  color: var(--foreground-primary);
}
/* Header Styling */
header {
  background: var(--background-primary);
}
header .flex-wrapper {
  display: none;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}
.logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--foreground-primary);
}
.logo span {
  color: var(--accent);
}
header .btn-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
.theme-btn-mobile,
.nav-menu-btn,
.nav-close-btn {
  background: var(--action-secondary);
  color: var(--foreground-tertiary);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 25px;
  transition: all 0.2s ease-in;
}
:is(.theme-btn-mobile, .nav-menu-btn, .nav-close-btn):hover {
  background: var(--accent);
  color: var(--white);
  margin-right: 5px;
}
.theme-btn-mobile ion-icon {
  display: none;
}
.theme-btn-mobile.light .sun,
.theme-btn-mobile.dark .moon {
  display: block;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--background-primary);
  padding: 70px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: 0.5s cubic-bezier(1, 0, 0.3, 0.7);
  z-index: 10;
}
.mobile-nav.active {
  transform: translate(0);
  visibility: visible;
}
.nav-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
}
.mobile-nav .wrapper {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--action-primary);
}
.mobile-nav .nav-title {
  margin-bottom: 1rem;
}
.mobile-nav .nav-item {
  margin-bottom: 0.5rem;
}
.mobile-nav .nav-link {
  font-size: var(--fs-3);
  color: var(--foreground-secondary);
  transition: all 0.2s;
}
.mobile-nav .nav-link:hover {
  color: var(--accent);
}
/* Hero section styling */
.hero {
  background: var(--background-primary);
  padding: 2rem 0px var(--py) 0px;
  text-align: center;
}
.hero .h1 {
  margin: 0px 0px 1rem 0px;
  line-height: 1.6;
}
.hero strong {
  color: var(--accent);
  font-weight: inherit;
}
.hero .h3 {
  color: var(--foreground-secondary);
  margin: 0ox 0px 2rem 0px;
}
.hero ,.btn-group {
  gap: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .right {
  display: none;
}
/* Blog section styling */
.main {
  background: var(--background-secondary);
  padding: var(--py) 0;
}
.blog .h2 {
  line-height: 1.3;
  margin-bottom: 3rem;
  text-align: center;
}
.blog-card-group {
  margin-bottom: 3rem;
}
.blog-card {
  background: var(--background-primary);
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 10px hsla(0, 0%, 0%, 0.05);
  transition: 0.25s ease-in-out;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 10px hsla(0, 0%, 0%, 0.1); /* Adjusted opacity from 0.01 to 0.1 */
}
.blog-card .h3 {
  line-height: 1.4;
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.blog-card .h3:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.blog-card-banner img {
  width: 100%;
  border-radius: 10px;
}
.blog-content-wrapper {
  padding: 10px 5px;
}
.blog-topic {
  font-weight: 600;
  border-radius: 5px;
  margin-bottom: 1rem;
  transition: all 0.2s;
  padding: 0.25rem 1rem;
  background: var(--action-primary);
  color: var(--foreground-secondary);
}
.blog-topic:hover {
  background: var(--foreground-secondary);
  color: var(--action-secondary);
}
.blog-text,
.profile-wrapper {
  display: none !important;
}
.blog .wrapper {
  gap: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  flex-wrap: wrap;
}
.blog .h4 {
  color: var(--foreground-secondary);
  transition: all 0.25s;
}
.blog .h4:hover {
  color: var(--accent);
}
.blog .text-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: var(--foreground-tertiary);
}
.blog .separator {
  height: 3px;
  margin: 0 4px;
  margin-inline: 3px;
  border-radius: 3px;
  background: var(--foreground-tertiary);
}
.blog ion-icon {
  --ionicon-stroke-width: 50px;
}
.load-more {
  margin: auto;
  background: var(--foreground-secondary);
  color: var(--background-secondary);
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
}
.load-more:hover {
  background: var(--accent);
}
/* Aside section styling */
.aside {
  display: none;
}
/* Footer & copyright section styling */
footer {
  background: var(--background-primary);
}
footer .container {
  padding: var(--py) 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
footer .wrapper {
  text-align: center;
}
.footer-text {
  color: var(--foreground-secondary);
  max-width: 300px;
  margin: auto;
}
.footer-title {
  color: var(--foreground-primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.footer-link {
  color: var(--foreground-secondary);
}
.footer-link:hover {
  color: var(--accent);
}
.copyright {
  color: var(--foreground-secondary);
  font-size: var(--fs-4);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--action-primary);
}
.copyright a {
  color: var(--accent);
  font-weight: 500;
}
.copyright a:hover {
  text-decoration: underline;
}
/* This program was developed by ©I-am-Programming-the-World */